1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Further abt testing, v2

This commit is contained in:
tobspr
2022-06-15 21:29:10 +02:00
parent 0a733907d5
commit 9d28a1f2f6
4 changed files with 78 additions and 35 deletions

View File

@@ -39,15 +39,63 @@
@include IncreasedClickArea(0px);
@include S(margin-top, 15px);
@include InlineAnimation(5s ease-in-out) {
0% {
opacity: 0.05;
&[data-btn-variant="0"] {
// nothing
}
&[data-btn-variant="1"] {
@include InlineAnimation(1s ease-in-out) {
0% {
opacity: 0.05;
}
50% {
opacity: 0.05;
}
100% {
opacity: 1;
}
}
50% {
opacity: 0.05;
}
&[data-btn-variant="2"] {
@include InlineAnimation(2.5s ease-in-out) {
0% {
opacity: 0.05;
}
50% {
opacity: 0.05;
}
100% {
opacity: 1;
}
}
100% {
opacity: 1;
}
&[data-btn-variant="3"] {
@include InlineAnimation(5s ease-in-out) {
0% {
opacity: 0.05;
}
50% {
opacity: 0.05;
}
100% {
opacity: 1;
}
}
}
&[data-btn-variant="4"] {
@include InlineAnimation(10s ease-in-out) {
0% {
opacity: 0.05;
}
80% {
opacity: 0.05;
}
100% {
opacity: 1;
}
}
}
}