Dan Powell

Dan Powell

← Back to home
Preview of attr shuffleView on CodePen ↗

attr shuffle


Often times, I just set the "content" in pseudo elements to an empty string. It can be an annoying 'gotcha'. Here, however we set it to a data attribute on the html object.

This, paired with some hide/show z-indexing and the always lovely cubic-bezier, makes for a fun hover effect.

First spotted on LEEROY Creative's site (at bottom)