Perf: add custom css variable --animation-reward (#216)

This commit is contained in:
Cell
2022-10-28 09:59:13 +08:00
parent c641344213
commit d7eb199407
+1 -1
View File
@@ -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;
}