From 856fda413d757bd774627fe594d10cb6b294d29c Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 11 Aug 2023 15:04:26 +0300 Subject: [PATCH] make tilt award not stack --- files/assets/css/awards.css | 50 +++++------------------------------ files/templates/comments.html | 4 +-- files/templates/post.html | 2 +- 3 files changed, 10 insertions(+), 46 deletions(-) diff --git a/files/assets/css/awards.css b/files/assets/css/awards.css index b16adc862..d31526617 100644 --- a/files/assets/css/awards.css +++ b/files/assets/css/awards.css @@ -144,53 +144,17 @@ 100% {transform: translateX(-15vw) rotate(180deg); top: 0; bottom: unset;} } -.tilt { - animation-duration: 60s !important; - animation-iteration-count: infinite !important; - animation-direction: alternate !important; - animation-timing-function: linear !important; -} - -@keyframes tilt-1 { +@keyframes tilt { 0% {transform: rotate(0deg);} 25% {transform: rotate(1deg);} 75% {transform: rotate(-1deg);} 100% {transform: rotate(0deg);} } -.tilt-1 { - animation-name: tilt-1; -} - -@keyframes tilt-2 { - 0% {transform: rotate(0deg);} - 25% {transform: rotate(2deg);} - 75% {transform: rotate(-2deg);} - 100% {transform: rotate(0deg);} -} - -.tilt-2 { - animation-name: tilt-2; -} - -@keyframes tilt-3 { - 0% {transform: rotate(0deg);} - 25% {transform: rotate(3deg);} - 75% {transform: rotate(-3deg);} - 100% {transform: rotate(0deg);} -} - -.tilt-3 { - animation-name: tilt-3; -} - -@keyframes tilt-4 { - 0% {transform: rotate(0deg);} - 25% {transform: rotate(4deg);} - 75% {transform: rotate(-4deg);} - 100% {transform: rotate(0deg);} -} - -.tilt-4 { - animation-name: tilt-4; +.tilt { + animation-duration: 60s !important; + animation-iteration-count: infinite !important; + animation-direction: alternate !important; + animation-timing-function: linear !important; + animation-name: tilt; } diff --git a/files/templates/comments.html b/files/templates/comments.html index 62f407c5c..7dfa7715f 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -29,7 +29,7 @@
-
+