feat: vote button reset cntr, replace old votes cntr in some components

This commit is contained in:
MTG2000
2022-05-18 10:33:08 +03:00
parent 7c266bc138
commit c30566cf14
10 changed files with 127 additions and 38 deletions

View File

@@ -8,11 +8,11 @@
}
.btn_content.clicked_1 {
animation: shake_1 0.2s 1 ease-out;
animation: shake_1 0.14s 1 ease-in-out;
}
/* Same animation, two classes so that the animation restarts between clicks */
.btn_content.clicked_2 {
animation: shake_2 0.2s 1 ease-out;
animation: shake_2 0.14s 1 ease-in-out;
}
@keyframes shake_1 {
@@ -21,11 +21,11 @@
}
33% {
transform: rotate(calc(clamp(10, var(--increments) / 2, 30) * 1deg));
transform: rotate(calc(clamp(5, var(--increments) / 3, 20) * 1deg));
}
66% {
transform: rotate(calc(-1 * clamp(10, var(--increments) / 2, 30) * 1deg));
transform: rotate(calc(-1 * clamp(5, var(--increments) / 2, 20) * 1deg));
}
100% {