正在加载视频...
视频加载失败
Future CSS Tip! 🔮 Use scroll-driven animation to animate non-ancestor elements w/ timeline-scope 👀 main{ timeline-scope: --a; }👈 hoist! .a{ view-timeline: --a; } .i{ animation: indicate; animation-timeline: --a; } Peep the contact list indicators ✨ CodePen.IO link below! 👇
56,805 次观看 • 3 年前 •via X (Twitter)
5 条评论

jhey ʕ•ᴥ•ʔ3 年前
Here's that @CodePen link! 🚀 Remember, you'll need to be in Chrome Canary to see this in action 👀 Don't mind the JavaScript, I'm using @reactjs to generate the contact list markup for me 😉

Bruno Stasse3 年前
@CodePen Oh, that's new right? So you can animate elements completely unrelated to the scroll container with this? Like descendants of a sibling of an ancestor?

Rodney3 年前
@CodePen 🔥

アブドぅル🇦🇿 3 年前
@CodePen @kam

Ian Vieira3 年前
@CodePen @MilanDzenovljan 👀 I think that’s something we were missing…
