I feel like this is either very dumb or very clever. Either way, I blogged about it: Using CSS animations as state machines to remember focus or hover states in CSS only. patrickbrosset.com/articles/202...
9 reposts39 likes
I feel like this is either very dumb or very clever. Either way, I blogged about it: Using CSS animations as state machines to remember focus or hover states in CSS only. patrickbrosset.com/articles/202...
9 reposts39 likes
And there I was feeling proud of myself, smart and all, when @janeori.propjockey.io had gone way further that. Seriously, check out Jane’s “Expert CSS: The CPU hack” article. Awesome stuff. dev.to/janeori/expe...
I just fixed a bug that prevented the demos from working on Chromium browsers. Turns out that a 0.00001s long animation works fine, but a 0.0000001s one doesn't. Reported at issues.chromium.org/issues/49114...
That's the technique I am using in most of my CSS-only games. Useful to track score and similar stuff. ex: frontendmasters.com/blog/how-key...