Scroll-driven animations
Scrub animations with the scroll position using the While Scrolling event, with start and end points you choose.
With the While Scrolling event, an animation's progress follows the scroll position instead of time. You choose where the range starts and ends relative to the element and the screen. Delay and duration are expressed as a share of that range, so several actions can be placed along the scroll. Use it for parallax, progress bars, reveal effects and story-telling sections.
How it works
- Event dh.scrolling ('While Scrolling'); the editor switches the action unit from seconds to percent when an event is scroll-linked.
- Range positions: topHitsTop, topHitsMiddle, topHitsBottom, middleHits*, bottomHits* for start and end.
- delay and duration are hundredths of a percent of the range (max 10000 = whole range).
- An element already inside the range on page load starts part way through.
- Reduced motion: nothing is scrubbed; the element shows its end state.
When to use it
- Parallax background movement
- A heading that slides while the section scrolls
- A progress line that fills as the visitor reads
Limitations
- An element inside the first screen may start part way through its range.
Availability
- Works in Designer.
- Included in every plan.
How to use it.
- Add an interaction with the While Scrolling event.
- Choose start and end positions.
- Add Animate actions and place them on the range with delay and duration.
Questions.
Is GSAP ScrollTrigger needed?
Related features.
Interactions
Build animations and behaviour without code: pick an event, then chain actions like animate, class, show/hide or scroll.
Scroll pinning and horizontal scroll
Pin a section while the visitor scrolls a set distance, vertically or with a horizontal track.
Scroll-scrubbed video
Play a video frame by frame with the scroll position, usually inside a pinned section.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→