Interaction
Effects & states
The Effects panel: reveals, scrubs, scroll links, ambient motion, hover and press — and what each one writes.
What an element does is the same kind of question as how it looks, so it is asked in the same place: the last two folds of the Style panel — Effects, then Overlays.
Each fold has a + in its head, one row per effect, and a chip that opens a sheet. Sheets stack, so Enter → Transition is two steps deep and one gesture back.
The seven effects
| Effect | Is | Writes |
|---|---|---|
| In view | plays when it scrolls into the viewport | data-motion |
| Appear | plays once, as the page opens | data-motion + data-motion-trigger |
| Scrub | held at whatever the scrollbar says — half way down the range, half arrived | data-motion + data-motion-trigger="scrub" |
| Scroll | tied to the scroll — parallax, drift, turn | data-scroll-* |
| Ambient | motion that never stops — float, bounce, drift, pulse, sway, spin, glow | data-ambient |
| Hover | a :hover rule, written for you | CSS |
| Press | an :active rule, written for you | CSS |
Seven rows, three questions. In view, Appear and Scrub are one reveal with three answers to when, so an element has at most one — the menu offers whichever it has not got. Scroll is not an animation but a position, and Ambient is the motion that loops while the page is open; one element can do a reveal, a scroll link and an ambient pass at once. Hover and Press are states.
Reveals
Pick a preset, then override what you like: enter state — opacity, offset, scale, rotation, blur, and the 3D turns and skews — exit state, duration, delay, easing or a spring, the start point, which scroll direction plays it, whether it plays once, and the stagger for its children. The curve is a graph you can pull: drag its two handles, and it snaps to the curves the site already has names for.
An element leaves the way it came unless you say otherwise. The exit sheet has presets — fade out, scale out, the two flips, a slide to each side — which fill in the values and then let go, so the next keystroke makes it yours.
Hover and Press are CSS
Not motion attributes — a rule:
.card {
border-color: var(--border-light);
translate: 0 0;
transition: border-color 200ms ease, translate 200ms ease;
&:hover {
border-color: var(--primary);
translate: 0 -2px;
}
}The transition on the base rule names exactly the properties the state changes — never all — with the curve you pick in the sheet, and it is removed again with the effect. They show up in the CSS tab immediately and work with JavaScript off. That is the whole reason they are a rule and not a runtime.
The list belongs to the element
Effects read the element's own selector, not whichever rule the selector picker happens to be standing in. And they are offered even when the element has no class yet — an attribute never needed a rule to live in. (Hover and Press do need a selector, since they are rules.)
Removing
The × on a row removes the effect and everything it wrote: the attributes, the state rule, and the transition that existed for it. Inside a sheet, the same × on a field means back to the inherited default — which is what emptying the field already did.