Scroll pinning and horizontal scroll
Pin a section while the visitor scrolls a set distance, vertically or with a horizontal track.
Pin keeps a section fixed at the top of the screen while the page scrolls through a distance you set, and the interaction's actions run over that distance. In Horizontal mode the first element inside the section moves sideways by how much wider it is than the section, giving a horizontal scroll gallery. Use it for product tours, step-by-step stories and horizontal card rails.
How it works
- Available on interactions with the While Scrolling event (engine 2).
- Fields: Pin (yes/no), Direction (Vertical or Horizontal), Distance (number with px, vh, svh, lvh or dvh, or auto for horizontal), Offset (px), Track.
- An interaction can hold a pin with no actions (it only pins).
- The editor warns: not on small screens or with reduced motion (set screens in Scope), not inside a flex or grid parent or under an element that scrolls or clips; near the top of the first screen it can shift the page on load. Horizontal pins should be below the first screen.
When to use it
- Horizontal scrolling case-study gallery
- A pinned phone mockup whose screens change as you scroll
Limitations
- Does not work inside a flex or grid parent, or under a scrolling or clipping ancestor.
- Not applied with reduced motion.
Availability
- Works in Designer.
- Included in every plan.
How to use it.
- Select the section and add a While Scrolling interaction.
- Set Pin to Yes and choose Direction and Distance.
- Add actions to run during the pin.
Questions.
What units can the distance use?
Related features.
Scroll-driven animations
Scrub animations with the scroll position using the While Scrolling event, with start and end points you choose.
Interactions
Build animations and behaviour without code: pick an event, then chain actions like animate, class, show/hide or scroll.
Interaction scope
Limit an interaction to certain pages, screen sizes, pointer types or a named state.
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.
→