Motion
Everything moves with plain CSS: no script on the page. Every kind of motion is off for visitors who ask their system for reduced motion. Find them in the Style tab’s Effects section.
| Motion | What it does | Plays |
|---|---|---|
| Entrance | Fade, slide or scale in once | On load, or as the element scrolls into view |
| Scroll motion | Opacity, move, scale, rotate or blur tied to scrolling | While the element enters, crosses or leaves the screen, or over the whole page |
| Loop | The same effects played over time | Back and forth (or one way), about 5 seconds unless Loop forever |
| Transition | Smooths changes to hover, focus and active states | When the state changes |
An Icon also has its own Spin and Pulse (see the icon library guide).
Loops
Add loop starts with Float. Pick another ready-made motion (Pulse, Breathe, Wiggle, Drift sideways, Spin), or tune it: Duration, Easing, Back and forth, and each effect’s From and To. Add effect adds opacity, move, scale, rotate or blur. The canvas plays it as you edit.
A loop stops on its own after about 5 seconds. Loop forever keeps it going; use it sparingly: motion visitors can’t pause can distract, and the accessibility check flags it.
Sticky headers
Set a header’s (or any box’s) Position to Sticky with Top 0, and When the page scrolls appears below: a Background and Shadow once scrolled, smaller Top and bottom padding (the header shrinks), over the first 120 px of scrolling unless you change Changes over the first. Hide while scrolling down slides the header away as the visitor reads down and brings it back as soon as they scroll up; it never hides while keyboard focus is in it. A bar held at the bottom of the screen slides down instead, and each device keeps its own choice (turn it on for phones only, or off for them). Hiding uses a small script that loads only on pages that use it; the rest is CSS. Browsers without scroll-driven animations, and visitors who prefer reduced motion, see the header as you made it.
In a Header theme part, set Sticky on the part itself or on a box right inside it (the top
level in Navigator), not deeper. The whole part then stays at the top of the page as the visitor
scrolls (since 1.4.2; before that it scrolled away with the header, #42), and “Hide while
scrolling down” slides the whole part away and back. Anything else in the part, such as a top bar
above the menu, stays with it, so keep a bar that should scroll away out of the header part. Set
Z-index (10 is plenty) so the page’s own boxes pass under the header. A Footer part’s box
held with Bottom 0 works the same way at the bottom of the screen. Your site’s layout must put
the header straight in <body>, as the install guide shows: a
sticky box can’t move outside the box around it.
Hover effects
Use the Normal / Hover / Focus / Active switch under the Classes box with a Transition: for example a slight Scale and a Shadow on Hover, with a 150 ms transition on Normal.
Devices and classes
Each kind of motion can differ on tablet and mobile, or be turned off there. Motion set in a class applies to every element using it; the element’s own wins.