CSS-only livesplit recreation (made in ~45 min)
https://lyra.horse/fun/livecssplit.html
https://lyra.horse/fun/livecssplit.html
@nirina could you right click in the middle of the timer and inspect element and send a screenshot
it should work in chrome/firefox/safari so idk what's broken
@rebane2001 haha yeah. Ive been slowly updating my css knowlage since I never caught up with css5. I think I learned it when css3 was the norm so uhhh ive been busy... and I dont hate css too much anymore.
Uhh I was able to throw this together for a really basic counter from what I saw (+ some stackoverflow and moz docs)
<style>
@property --timer {
syntax: '<integer>';
inherits: true; /* Some reason this is needed to animate? */
initial-value: 0;
}
.timer {
--timer: 0;
animation: timer-animation 32s linear 1;
}
.timer::after {
counter-set: timer var(--timer);
content: counter(timer);
}
@keyframes timer-animation {
from {
--timer: 0;
}
to {
--timer: 32000;
}
}
</style>
<span class="timer"></span>