CSS Tip! ✨ You can create these parallax effects and image cross-fades with scroll-driven animations…
@jh3yy15万 位关注者
242,205 次观看
10 条评论
评论来自 X (Twitter) 上的原帖

@jh3yy
Here's that @CodePen link! 🚀 You can jam on this demo today in all browsers. There is some JavaScript in place if the scroll-driven animations API isn't supported 🤙 GSAP to the rescue! 🏆
44 个赞

@Nexii
For a little history and insight behind cross-fading with plus-lighter for folks, here is @jaffathecake's excellent article behind it:
2 个赞

@jh3yy
Good share Martin! 🙏 Almost embedded in my mind from when I started working with View Transitions 😅 The number of times I pinged Jake and it was my own problem with a mix-blend-mode thing 🤦♂️ This is the spot from the View Transition docs for people interested 🤙 Jake's blog is also a gold mine of interesting deep dives, etc. 👉

@Ch1cx
Wow, how it would be in responsive mode?
1 个赞

@jh3yy
Ha – Great minds... 🤙
3 个赞

@happydesign_
So good. Thanks for tutorial.
1 个赞

@niftesty
Browser compatibility?
1 个赞

@jh3yy
Specifically the API is Chrome only atm. But, the demo will work everywhere as I've filled the functionality with GSAP and wrapped the API stuff in a supports query so it can be ripped out easy 🤙

@fermex95
Lo malo es que no está soportado en todos los navegadores
1 个赞

@jh3yy
The API isn't, but the demo is 🤙 Will work in all browsers