Animation Engine
Interactions
Hover, click, page-load, in-view and scrolled-past triggers that animate this element AND other elements: hover a card to lift it, zoom its picture and slide its arrow; click a button to open a panel; scroll past a heading to change something further down. Up to three steps per trigger, each with its own target, timing, easing and stagger.
Live demo
See it in action
The Animations tab
One trigger, many targets.
Add an Interactions card in any element’s Animations tab, pick a trigger, and give each step a target: this element, elements inside it, or any element on the page. Every example below is live.
On hover · three steps, three targets
Hover a card: it lifts, its picture zooms, its arrow slides.
One Interaction on the card. Step 1 lifts the card itself; step 2 zooms the picture inside it and step 3 nudges its arrow, both starting with step 1. Move away and it all plays backwards. On a tablet it moves 60% as far, on a phone 40%.
On click · a toggle
Click the button, open the panel.
The Interaction is on the button; its step animates a different element, the panel below, found by its CSS ID (#ix-panel). The panel starts at the step’s “From” values (faded and lowered), the click brings it to its normal look, and a second click plays it backwards.
In view · staggered
Scroll it into view: the tiles inside cascade in.
The Interaction is on the row; its step targets the tiles inside it (.ix-tile) with a 0.1 s stagger. When the row leaves the screen it plays backwards, so it plays again the next time you scroll to it.
On page load
Three steps in a row, as the page opens.
An Interaction on this heading plays as soon as the page loads: the overline drops in, then the title rises, then this line fades up. Reload the page to watch it again.
Page starts loading
An intro that begins the instant the page opens.
This heading plays on the Page starts loading trigger - before images and fonts arrive - so the intro is already moving while the rest of the page is still loading. On page load (above) waits until everything has finished. Reload to compare.
Scrolled past
Scroll this heading off the top: the badge below reacts.
The Interaction is on the grey bar; once its bottom has passed 80 px from the top of the screen, the green badge (#ix-badge) spins and grows. Scroll back and it returns. The same trigger can shrink a site header after the hero.
States · one panel, three buttons
Open it from one button, close it from another.
The dark panel has a state called “closed” (lowered, faded, and inactive so it can’t be clicked or read while closed) and starts in it. Each button’s Interaction changes that one state: Open takes the panel out of it, Close puts it back, Toggle switches it.
States · an exclusive group
Tabs from three states.
Each tab has an “active” state in the group “ix-tabs”, so only one tab is active at a time; its class upw-is-active fills it in through CSS. Clicking a tab makes it active, puts every panel in its “hidden” state, and takes its own panel out of it.
Pick the colours, fonts and buttons once in Theme Settings, and every page follows them.
Drag sections and elements onto the page, or edit right on it in the Live Editor.
Publish, and the Animation Engine loads only the effects each page uses.
Component event
React when another component opens.
Click Menu: it opens, and the links inside cascade in - played by a Component event Interaction that watches the menu own open state, not a hover or click of its own. The same trigger fires when a tab changes or a slider moves. Click again to close and it reverses.
Reuse and breakpoints
Set it up once, on every card. Off on phones.
Only the first card has an Interaction. Its “Runs for” is “Every element on the page that matches .ix-reuse”, so all four cards lift and grow their dot on hover, each on its own. “Runs on” is Desktop and Tablet: on a phone the cards stay still.
Analytics
Forms
SEO
Backups
Free & open source
Build with this element, free.
Install the framework and the Bootstrap 5 theme, then drag this element into any page.