Interactions
Build animations and behaviour without code: pick an event, then chain actions like animate, class, show/hide or scroll.
Interactions are the no-code way to make a site move and react. Each interaction has an event (click, hover, view, while scrolling, page load...) and a list of actions that run on a target. Interactions can be attached to one element, to a class (every element with that class) or to the whole site (Global). They are edited in the Interactions tab of the right sidebar, with a preview button and a Live Mode to tweak values on the canvas. Use them for entrance animations, hover effects, menus, tabs, modals, scroll-driven motion and small logic like setting a cookie or redirecting.
How it works
- Places: tag (properties.interactions), class (class interactions), global (site setting dh.interactions). The Interactions tab shows Tag, Class or Global depending on what is selected.
- Interaction fields: Name, Event (default On Page Load), Once (yes/no), Loop (yes/no), Execution (Asynchronous: actions start together; Synchronous: each after the previous completes), Stagger (ms pause between elements), Scope, Pin (While Scrolling only).
- Action fields: Name, Action type, Target (default self; chain of jQuery-style functions Prev, Next, Parent, Find, Closest, Custom selector), Duration (ms), Delay (ms), Initial State (apply the from state on page load), Variable (for actions that store a value), plus the action's own fields.
- Timeline: actions can be placed with labels and 'at' positions (<, >, +=100, -=50, a label).
- Preview runs the actions on the canvas; Live Mode edits values while previewing.
- Saving is guarded by a revision check: if interactions were changed elsewhere the editor answers 'Interactions were changed elsewhere.
- New interactions run on engine 2 (dh.interactions engine); Scope and Pin are only available on engine 2.
- Reduced motion: every event and action declares its behaviour under prefers-reduced-motion (for example animations jump to their end state).
When to use it
- Fade sections in as they enter the viewport
- Open and close a mobile menu
- Animate a card on hover
- Run a scroll-scrubbed hero animation
Limitations
- Custom @keyframes cannot be written in a class; motion uses interactions, transitions or plugins.
- Two transform animations on the same element replace each other (the last one wins).
Availability
- Works in Designer and MCP.
- Included in every plan.
How to use it.
- Select an element (or a class, or nothing for Global).
- Open the Interactions tab in the right sidebar.
- Add an interaction and choose its event.
- Add actions, set target, duration and delay.
- Use Preview or Live Mode, then Save.
Questions.
Do I need GSAP or code?
Can one interaction affect many elements?
Related features.
Interaction events
Start interactions on clicks, hover, keys, scroll, view, forms, page changes, states and member login events.
Interaction actions
Animate, toggle classes or attributes, show or hide, scroll, redirect, send HTTP requests, set cookies and more.
Scroll-driven animations
Scrub animations with the scroll position using the While Scrolling event, with start and end points you choose.
Scroll pinning and horizontal scroll
Pin a section while the visitor scrolls a set distance, vertically or with a horizontal track.
Named states
Set named states like menu-open or tab=2 that CSS, other interactions and conditions can read.
Interaction scope
Limit an interaction to certain pages, screen sizes, pointer types or a named state.
Motion Agent (AI GSAP animations)
Describe an animation in words and the Motion Agent writes GSAP code for a section, the whole page or a reusable preset.
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.
→