From d7eb199407742d0403e2a652354299bf0bce1f70 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 28 Oct 2022 09:59:13 +0800 Subject: [PATCH] :zap: Perf: add custom css variable --animation-reward (#216) --- assets/css/_partials/_single/_reward.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/_partials/_single/_reward.scss b/assets/css/_partials/_single/_reward.scss index cbf2efa0..554bf9cc 100644 --- a/assets/css/_partials/_single/_reward.scss +++ b/assets/css/_partials/_single/_reward.scss @@ -58,7 +58,7 @@ } &:hover span[data-animation] { - animation: jackInTheBox 0.8s infinite linear; + animation: var(--animation-reward, jackInTheBox) 0.8s infinite linear; // The animation may affect :hover of img in dark mode pointer-events: none; }