正在加载视频...
视频加载失败
CSS Tip! ✨ You can use background-attachment to fix backgrounds to the viewport 🤙 card { background:radial-gradient(circle at var(--x) var(--y), ...); background-attachment:fixed; } JS to get the cursor position but use the same bg for a spotlight 🔦 CodePen.IO link below 👇
10 条评论

jhey ▲🐻🎈3 年前
Here's that @CodePen link! 🚀 Try hovering around the different cards Couple little tricks in this one that I'll elaborate on 🤓

Sara Soueidan3 年前
@CodePen Brilliant

jhey ▲🐻🎈3 年前
@CodePen "background" has so many interesting properties and use cases! 🤓

ɐʇɯon3ɹ ⚛3 年前
@CodePen I love it!!

Christian3 年前
@CodePen @TheXeii yeah okay im a dogshit dev im quitting

FK3 年前
@CodePen Hey Chief! you're an answered prayer! Your glowing cursor implementation was just what I needed for the "Hats I wear" section of my portfolio Hopefully the code override in Framer is pretty easy too

Dean Gibson2 年前
@CodePen I thought that looked familiar 🙂

Atif Riaz3 年前
@CodePen O man, this is beautiful 😍

𝕿𝖔𝖋𝖚 𝕯𝖆𝖉𝖉𝖞3 年前
@CodePen I can see Vercel using this effect on their site 👀

بدر3 年前
@CodePen Windows 10 vibes
