5 ms·
Bonus: Can this be a pure CSS library?
by vortico 5y ago
Bonus: Can this be a pure CSS library?
- jspash 5y agoI thought CSS was generated by JS these days? Apparently it was too difficult to remain its own thing.
- brundolf 5y agoI think you could do it with keyframes, though the "randomness" would have to be hard-coded (the same every time)
- roryokane 5y agoYes, most of it can. I remade this effect using CSS animations, as an exercise: Demo: https://css-demo-client-side-render-jankiness.roryokane1.repl.co/ https://css-demo-client-side-render-jankiness.roryokane1.rep... Source code: https://replit.com/@RoryOKane1/CSS-demo-client-side-render-jankiness#fake-client-side-render.css https://replit.com/@RoryOKane1/CSS-demo-client-side-render-j... However, a limitation of not using JavaScript is that I can’t randomize the changed properties: the page changes in the same way after every reload.