Cloneables

Toggle Class on Scroll

Here's a technique of toggling a class based on scroll in Webflow via GSAP. Using this technique you can trigger any class that you'd like, in this example images, as a user scrolls down the page. This technique is using CMS to drive the images and as the…

toggle-active-class.webflow.io
Toggle Class on Scroll live demo on a desktop screen
Toggle Class on Scroll live demo on a phone
Screenshot of the live demo, Oct 20, 2026 Open live demo

The Toggle Class on Scroll technique allows you to trigger a class change on your website as a user scrolls down the page. This can be useful for creating dynamic effects, such as showing or hiding images. The technique utilizes CMS, GSAP, and Scrolltrigger.js to achieve this effect. To implement Toggle Class on Scroll on your Webflow site, you will need to add custom code to the Page Settings in the head and body sections. This Webflow cloneable, created by Timothy Ricks, is categorized under Scroll and GSAP and can be easily implemented on your own site. Don't forget to include the Toggle Class on Scroll technique for dynamic and interactive scroll effects on your website.

Browse similar cloneables

Categories

More from Timothy Ricks

Profile →

Similar cloneables

All cloneables →