← Archive03 / 16
ExperimentNo. 03
Link Hovers
Twenty ways for a link to react when you point at it, each made with one small CSS trick.
- Made
- Dec 2022
- Type
- CSS study
- Stack
- CSS transitions / keyframes / @property
Idea
I wanted a set of link hover effects, and I used it as practice: each one uses a different CSS trick, as many as I could think of.
Notes
- Every effect is one trick: a growing background, a pseudo-element, a text shadow or a keyframe.
- The countdown uses
@property, so--countdownanimates as a whole number from 8 to 0. - The whole card is the hover target, and keyboard focus and taps play it too.
- Night is worth a look: Difference inverts the other way on a dark card, and Glow and Stack only really show up there.
Revisited
- Dec 2022: first version, made on CodePen (v1).
- Oct 2026: redesigned for the lab. Kept all 20 and toned down the loud ones (4, 6, 17, 18), named the trick on each card, and added a switch that shows every hover state at once.