正在加载视频...
视频加载失败
Future CSS Tip! 🔮 You can create sweet scroll-driven micro-interactions using CSS scroll-driven animations 😎 .avatar { animation: scale-down; animation-timeline: scroll(); animation-range: var(--header-range); } @ keyframes scale-down { to { scale: 0.3; } } What's happening in this one? 👀 1. Avatar moves and scales down as the header... show more
10 条评论

jhey ▲🐻🎈2 年前
Here's that @CodePen link! 🚀 Hop into Chrome 115+ and take it for a spin 🤙

Taeho2 年前
Did you come up with this? This is mind blowing since I’m just getting used to parent child relationships. Def gonna try this out!

jhey ▲🐻🎈2 年前
Yeah, it's a combination of a couple of demos I built last year for speaking at conferences ✨ Fun part was filming myself for the image 😅
Alex Hall2 年前
This looks so cool! I've got a slight issue on Chrome Android where the background image is halfway across the page. Definitely going to be having a play with this!

jhey ▲🐻🎈2 年前
Ahh – Thanks for pointing this out Alex 🙏 I think I've fixed it 🤞 Needed to set some max-widths, etc. Glad you like it!

Rob DiMarzo2 年前
I'm out here lookin at your css like

Jesse Schoberg2 年前
Well done 🫡

jhey ▲🐻🎈2 年前
Thanks Jesse 🙏

Art San Diego2 年前
Nooice 🔥

jhey ▲🐻🎈2 年前
@artsnux 🙏🙏
