Hacker News new | ask | show | jobs
by aegiso 4778 days ago
For the curious, the way this works is ::before/::after selectors with content: attr() to bind the data attributes, which are position: absolute 'd within the parent, possibly transitioned.

Zero JS.

If you haven't played with CSS3 lately you might be surprised what it can do. I know I was a blown away when I discovered it could do data binding. Brings to mind a great I/O talk that introduced me to a lot of this stuff:

http://www.htmlfivecan.com/