How to trigger an animation or event on scroll using Intersection Observer! This is a short clip from an episode where David Khourshid & Stephen Shaw live code a solution to a question on Twitter about transitioning from a static position to fixed with a scroll trigger.

🎥 Want more? Watch the full live episode: https://youtu.be/9nSv2Q_2VMI

🥊 Challenge: https://twitter.com/mxbck/status/1303970932655116295
💻 Code: https://cdpn.io/pen/NWNzeXz

Additional Resources:
* Scroll Out https://scroll-out.github.io/

Like what we're doing? There are many ways you can support @keyframers so we can keep live coding awesome animations!

* Like & subscribe on YouTube at https://youtube.com/keyframers
* Buy web dev shirts, stickers & more at https://keyframe.rs/merch
* Follow & tweet us at https://twitter.com/keyframers
* Support us on Patreon at https://patreon.com/keyframers