Loading video...

Video Failed to Load

Go Home

CSS Tip! 🤙 You could use CSS :has() to power a context-aware custom cursor experience 👆 :root:has(.player:hover) {--active: 1;} .cursor {scale: var(--active);} :root:has(.player:hover > [aria-label="Pause"]) .cursor-pause-icon { display: block; } CodePen.IO link below! 👇

261,705 views • 3 years ago •via X (Twitter)

4 Comments

jhey ʕ•ᴥ•ʔ's profile picture
jhey ʕ•ᴥ•ʔ3 years ago

Here's that @CodePen link! 🚀 You'll need to be in a browser that supports CSS :has() ⚠️ Messing around with ideas for the play button challenge. The cursor is shared between the videos which is neat 😎

Heru Hermawan's profile picture
Heru Hermawan3 years ago

@CodePen Great tip. Thanks, jhey!

blank_'s profile picture
blank_3 years ago

@CodePen How u invent this kind of stuff man

ColdHolder's profile picture
ColdHolder3 years ago

@CodePen @SaveToNotion #thread

Related Videos