News for hackers. Stuff that matters.
Re:Ask HN: How can I make beautiful, professional programmat... by cbayram on Thursday January 19, 2023 @06:49PM (#34447306)
There are various approached you could take; CSS transition/animation, d3,...

Here is a quick dirty example of shuffling using CSS transition [1] on the left offset. https://jsfiddle.net/h2urfsjb/

It puts each character of a word in its own absolutely positioned span tag and maps its left offset.

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transit...

There are no comments on this comment yet.