Mastering GSAP Interactions in Webflow: Pin a Video on Scroll (Picture-in-Picture Effect)

In this episode of Mastering GSAP Interactions in Webflow, we build a smooth picture-in-picture style video interaction for long-form layouts — where a video follows the user as they scroll, shrinking into the bottom-right corner of the viewport.
This tutorial is a great example of how powerful Webflow’s new GSAP-powered interactions can be when combined with sticky positioning, Webflow Variables, and a bit of smart layout logic.
Along the way, we’ll cover:
✔ How to trigger the interaction when the video starts leaving the viewport
✔ How to pin the video cleanly using position: sticky
✔ How to animate movement and scale using a single Animate Variable action
✔ How to use Webflow Variables as a driver for multiple transforms
✔ How to compensate for sticky + translateY behavior with a clean layout technique
✔ How to keep the setup more thoughtful with responsive behavior and reduced motion support
👉 Watch on YouTube: https://youtu.be/7g71nPnreuY


