正在加载视频...

视频加载失败

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 次观看 • 3 年前 •via X (Twitter)

4 条评论

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ3 年前

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 的头像
Heru Hermawan3 年前

@CodePen Great tip. Thanks, jhey!

blank_ 的头像
blank_3 年前

@CodePen How u invent this kind of stuff man

ColdHolder 的头像
ColdHolder3 年前

@CodePen @SaveToNotion #thread

相关视频