Interaction actions
Animate, toggle classes or attributes, show or hide, scroll, redirect, send HTTP requests, set cookies and more.
Actions are what an interaction does. Divhunt has actions for motion (Animate, Split Text, Video, Follow, Cursor), for the page (Class, Attribute, Text, HTML, Visibility, Scroll, Scroll Lock, Focus, State) and for logic (Redirect, HTTP Request, Cookie, Copy to Clipboard, Download File, Language, Notification, Custom JavaScript, Page). Actions can run together or in sequence, on the element itself or on targets found from it. This replaces most small scripts a site normally needs.
How it works
- Animate: properties with from/to values: opacity, translate/translateX/Y/Z, scale/scaleX/Y, rotate/rotateX/Y/Z, skew/skewX/Y, top/left/right/bottom, width, height, margin*, padding*, fontSize, fontWeight, letterSpacing, lineHeight, color, backgroundColor, borderColor, filters (blur, brightness, contrast, grayscale); units px, %, em, rem, vh, vw, dvh, deg, rad; easing (ease, linear, steps...) and Spring physics (mass, stiffness, damping).
- Class: add, remove, toggle. Attribute: add, remove, edit, toggle (on/off values). Text: change text. HTML: replace, append, prepend, insertBefore, insertAfter, remove, clear.
- Visibility: hide, show, toggle with none, fade or slide.
- Scroll: to the target with an offset. Scroll Lock: lock/unlock page scroll with a named key (no layout jump).
- Focus: move focus (first, last, next, prev, trigger, self, none), trap focus inside a modal (page behind becomes inert) and release it.
- State: set, toggle or clear a named state (see Named states).
- Redirect: URL, _self/_blank, rel values. HTTP Request: GET/POST/PUT/DELETE with parameters, headers and body.
- Cookie (add/remove/edit), Copy to Clipboard, Download File, Language (switch site language), Notification, Custom JavaScript, Page (change page).
- Split Text, Video, Follow, Cursor: see their own entries.
When to use it
- Toggle a class to open a menu
- Send a webhook on a button click
- Switch the site language from a custom switcher
- Copy a coupon code to the clipboard
Limitations
- Two transform animations on one element: the last one wins; Follow writes separate translate/rotate/scale properties so it can combine with a transform animation.
Availability
- Works in Designer and MCP.
- Included in every plan.
How to use it.
- In an interaction, add an action.
- Pick the action type, set the target and its fields.
- Set duration and delay, then save.
Questions.
Can actions run one after another?
Related features.
Interactions
Build animations and behaviour without code: pick an event, then chain actions like animate, class, show/hide or scroll.
Interaction events
Start interactions on clicks, hover, keys, scroll, view, forms, page changes, states and member login events.
Split text animation
Split a heading into words, characters or lines and animate each piece with a stagger.
Pointer effects (follow and custom cursor)
Magnetic and tilt effects that follow the pointer, plus a site-wide custom cursor that changes over elements.
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.
→