Interpolate percentage?

o/ I have this basic clock implementation (https://gist.github.com/Revxrsal/faf598ac48efb9db0b11769ce9ac408d) and it renders like this: https://gyazo.com/804070195d25a5cc5baf4115af74f30a I wonder if there's any way to make it smoother? I know other UI libraries (not in web dev tho) that achieve this with animating floats by interpolating them into certain values. maybe solid-transition-group can help?
Gyazo
Gyazo
2 Replies
REEEEE
REEEEE2y ago
might be able to use css transition on dasharray property
Revxrsal
Revxrsal2y ago
that worked, thanks!