Rework a little the toggle buttons animations
This commit is contained in:
@@ -174,19 +174,19 @@
|
|||||||
// List
|
// List
|
||||||
@keyframes layoutListOdd {
|
@keyframes layoutListOdd {
|
||||||
0% { transform: translateX(0); }
|
0% { transform: translateX(0); }
|
||||||
100% { transform: translateX(4px); }
|
50% { transform: translateX(2px); }
|
||||||
}
|
}
|
||||||
@keyframes layoutListEven {
|
@keyframes layoutListEven {
|
||||||
0% { transform: translateX(0); }
|
0% { transform: translateX(0); }
|
||||||
100% { transform: translateX(-4px); }
|
50% { transform: translateX(-4px); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Grid
|
// Grid
|
||||||
@keyframes layoutGridOdd {
|
@keyframes layoutGridOdd {
|
||||||
0% { transform: translateY(0); }
|
0% { transform: translateY(0); }
|
||||||
100% { transform: translateY(3px); }
|
50% { transform: translateY(2px); }
|
||||||
}
|
}
|
||||||
@keyframes layoutGridEven {
|
@keyframes layoutGridEven {
|
||||||
0% { transform: translateY(0); }
|
0% { transform: translateY(0); }
|
||||||
100% { transform: translateY(-3px); }
|
50% { transform: translateY(-3px); }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,19 +54,19 @@
|
|||||||
// List icon
|
// List icon
|
||||||
&[data-layout="list"]:hover {
|
&[data-layout="list"]:hover {
|
||||||
rect:nth-of-type(even) {
|
rect:nth-of-type(even) {
|
||||||
animation: layoutListEven 400ms $ease-cubic infinite alternate forwards;
|
animation: layoutListEven 600ms $ease-cubic infinite alternate forwards;
|
||||||
}
|
}
|
||||||
rect:nth-of-type(odd) {
|
rect:nth-of-type(odd) {
|
||||||
animation: layoutListOdd 400ms $ease-cubic infinite alternate forwards;
|
animation: layoutListOdd 600ms $ease-cubic infinite alternate forwards;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Grid icon
|
// Grid icon
|
||||||
&[data-layout="grid"]:hover {
|
&[data-layout="grid"]:hover {
|
||||||
rect:nth-of-type(even) {
|
rect:nth-of-type(even) {
|
||||||
animation: layoutGridEven 400ms $ease-cubic infinite alternate forwards;
|
animation: layoutGridEven 600ms $ease-cubic infinite alternate forwards;
|
||||||
}
|
}
|
||||||
rect:nth-of-type(odd) {
|
rect:nth-of-type(odd) {
|
||||||
animation: layoutGridOdd 400ms $ease-cubic infinite alternate forwards;
|
animation: layoutGridOdd 600ms $ease-cubic infinite alternate forwards;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user