Hacker News new | ask | show | jobs
by cbayram 1245 days ago
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...