WebCraft

TAG ยท hover

Hover effects in CSS and HTML

Hover states that track the cursor, stay off touchscreens and quiet the rest of a list, with the source for each. 5 elements, each rendered live with its source and the one thing that breaks it.

  1. Hover that stays off touchscreens @media (hover: hover)
  2. An underline that slides in background-size
  3. A spotlight that follows the cursor radial-gradient at var()
  4. A card that tips towards the cursor perspective + rotate
  5. Hovering one row quiets the others :has() + :not()