[Glitch] Replace fav icon animation with CSS
Port 3a929dbedd to glitch-soc
And extend that to collapse button
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
@@ -1,3 +1,47 @@
|
||||
@keyframes spring-flip-in {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
30% {
|
||||
transform: rotate(-242.4deg);
|
||||
}
|
||||
|
||||
60% {
|
||||
transform: rotate(-158.35deg);
|
||||
}
|
||||
|
||||
90% {
|
||||
transform: rotate(-187.5deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spring-flip-out {
|
||||
0% {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
|
||||
30% {
|
||||
transform: rotate(62.4deg);
|
||||
}
|
||||
|
||||
60% {
|
||||
transform: rotate(-21.635deg);
|
||||
}
|
||||
|
||||
90% {
|
||||
transform: rotate(7.5deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
.status__content--with-action {
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -430,6 +474,24 @@
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.status__collapse-button.active > .fa-angle-double-up {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
|
||||
.no-reduce-motion .status__collapse-button {
|
||||
&.activate {
|
||||
& > .fa-angle-double-up {
|
||||
animation: spring-flip-in 1s linear;
|
||||
}
|
||||
}
|
||||
|
||||
&.deactivate {
|
||||
& > .fa-angle-double-up {
|
||||
animation: spring-flip-out 1s linear;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.status__info__account {
|
||||
|
||||
Reference in New Issue
Block a user