zoonk-motion
/zoonk-motion
Decide whether and how a Zoonk interface moves. Everyday screens stay still, feedback is quick, and only rare earned moments (a level, a belt, missions, a challenge won, a lesson's end) celebrate with subtle, Apple-like motion. Use when adding, reviewing or removing an animation or transition.
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 12
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Decide whether and how a Zoonk interface moves. Everyday screens stay still, feedback is quick, and only rare earned moments (a level, a belt, missions, a challenge won, a lesson's end) celebrate with subtle, Apple-like motion. Use when adding, reviewing or removing an animation or transition.
Original author description
Decide whether and how a Zoonk interface moves. Everyday screens stay still, feedback is quick, and only rare earned moments (a level, a belt, missions, a challenge won, a lesson's end) celebrate with subtle, Apple-like motion. Use when adding, reviewing or removing an animation or transition.
How it works
- When
- How
- What kinds
- Characters
- Why
SKILL.md preview
---
name: zoonk-motion
description: Decide whether and how a Zoonk interface moves. Everyday screens stay still, feedback is quick, and only rare earned moments (a level, a belt, missions, a challenge won, a lesson's end) celebrate with subtle, Apple-like motion. Use when adding, reviewing or removing an animation or transition.
license: MIT
metadata:
author: zoonk
version: "1.0.0"
---
# Zoonk motion
Motion is a budget. Zoonk stays calm and fast because almost nothing moves, and that is what lets the few earned moments feel special: motion on every interaction makes the app feel slower, while the right motion in the right spot makes it feel alive. The tokens, their meanings and every pattern moving live (with a reduced-motion switch) are at `/design/motion` in the playground (`apps/playground/src/design-system/motion.ts`); the values are in `packages/ui/src/styles/globals.css`.
## When
The more often the learner meets something, the less it moves.
- **Still: everyday screens.** Navigation, page loads, tabs, list rows, typing and everyday taps show their new state at once. Content never animates in on its own: an entrance makes the page feel slow and says nothing. No route transitions, no staggered lists, and nothing loops except a wait (a spinner, a skeleton, the saving shimmer) while it waits.
- **Feedback: the learner's own action, as it happens.** A press, a pick, a check turning blue, a disclosure or an overlay opening from its trigger, the lesson's screen turning. Quick (150 ms) or base (200 ms) on the ease-out, never a spring or an overshoot. Whatever the keyboard does, and focus, changes at once.
- **Celebration: rare, earned moments.** A task's end (a lesson, a block, a notebook practice, a drill, a round, a call, a test), a mission done, a level or a tenth of Energy reached, a challenge won, today's missions all done, a milestone's ceremony (a belt, the buddy's next stage, new glasses). Only these get the spring, a number counting up, a meter filling from where it was, a burst or a character's whole body acting, and louder as they're rarer (the ladder on `/design/motion`): a task's end counts its Brain Power up; a level lands its badge; today's missions and a milestone may burst once. Every result draws what it did to the day with `DayMoment`, which keeps the beats in order (missions, then the level and Energy after them), so a new result gets the motion by using it.
This keeps the old rule (nothing animates in; motion shows what an action did) and opens one door: a celebration is what the learner's action earned, so it plays once, right after that action. A reload, a revisit or the way back shows its end state, still. `useCelebration` (`@zoonk/ui/hooks/celebration`) says when: false on a page the server drew and on a page the router kept and shows again on Back once it was seen (hiding it restarts its CSS animations); `CountUp` and `Burst` follow it on their own, and moving parts take their `animate-*` classes only while it's true. Where only the screen knows a celebration was already seen (a step the learner goes back to in `Steps`, a result reopened from a link, the summary opened again from Today), wrap it in `CelebrationScope play={…}`.
## How
- **Tokens, never literal times or curves.** `duration-quick`, `-base`, `-pop`, `-settle`, `-fill`, `-burst`; `ease-out`, `ease-spring`; `animate-settle`, `-pop`, `-fill`, `-spark`; `press`; `CountUp` and `Burst` from `@zoonk/ui`. A script reads them with `readDuration` and `readEasing`, and a moment's beats come from `BEAT_MS` and `STAGGER_MS` (`@zoonk/ui/lib/motion`). Tailwind's plain transitions already take the quick time and the ease-out.
- **The spring lands objects; data never overshoots.** The spring (Apple's bouncy: bounce 0.3) is for something earned landing: a badge, a check, the art. A meter or a number stops at its value, and color and opacity never bounce.
- **One thing at a time, in reading order.** The number with its meter, then what it earned lands, then the buddy reacts; a burst goes with the last beat. Beats about 250 ms apart, things of one kind 100 ms apart (three at most), the last beat by 750 ms and everything still within 1.5 s.
- **Never in the way.** Continue works from the first frame, nothing waits for an animation before acting or navigating, and leaving mid-moment just leaves. Use transitions for what the learner can toggle (they turn around mid-way) and keyframes only for one-shot celebrations.
- **Reduced motion lives in the tokens.** Under `prefers-reduced-motion: reduce` a celebration's durations are 0 and its animations none, so it shows its end state from the first frame, and a press doesn't give way; fades and color changes keep their time. Build on the tokens and it's handled. Motion is never the only cue: the words say the same.
- **Every phone.** Animate `scale`, `translate` and opacity only, which the compositor runs off the main thread; no `transition-all`, layout properties, blur, shadows or filters in motion; a dozen moving things at most; scripts write outside React's render (`CountUp` changes one attribute a frame).
- **Characters react or hold still.** The buddy and the Trickster act with their parts where something happened, never as one block ([Characters](#characters)).
- **Check it by eye.** Replay it at 10% speed in DevTools' Animations panel, with reduced motion on (the page's switch, or the browser's emulation) and on a throttled CPU, and ask whether it still feels good the hundredth time. Unit-test real logic only; motion gets no E2E or component test ([testing](../zoonk-testing/SKILL.md)); see it in the [persona walk](../zoonk-persona-walkthrough/SKILL.md).
## What kinds
| Pattern | Says | How | Where |
| ---------------------- | ---------------------------- | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
| Press | "My press landed." | `press` gives way to `--press-scale` (0.97; a wide option 0.99) | Buttons, answer options, choice rows |
| State change | "This is what changed." | `transition-colors` in the quick time | A pick, a check turning blue, a task's segment |
| Count-up | "This much, adding up." | `CountUp` in the fill's time, beside its meter | Brain Power at a task's end, the bonus, the summary |
| Something earned lands | "Something new is mine." | `animate-settle` from `--settle-from` (0.5) | A new level's badge, a mission's check, a call's star |
| Meter filling | "From where it was to here." | `animate-fill`, `origin-left`, `--fill-from`, only from a start the moment knows | A belt's new tick, the missions' track |
| A character's reaction | "Someone is glad with me." | An act with its parts, once, on the moment's beat (`reaction`); its landing, still, on a revisit | A mission done, today's missions, the summary, a ceremony; a challenge's intro, duel and result; the buddy's chat |
| Burst | "This one is rare." | `Burst` in the moment's color, on its last beat | Today's missions all done, a new belt, the buddy's next stage |
## Characters
The buddy and the Trickster are characters, not objects. A person shows a feeling with their face and body, so a whole character hopping, popping up, landing or tipping over as one unit reads as a sticker and feels off, worse than no motion at all. Acting in code is the system: the rig in `@zoonk/ui`, with no animation runtime. It acts live at `/design/characters` (`apps/playground/src/design-system/characters.ts`), with the map of which act plays at which moment.
- **A character never moves as a single unit.** No hop, pop, settle, tip, slide or fade on the whole buddy or the whole Trickster, and none on the buddy's face in the navigation. Inside an act the body may squash, stretch or lean on its feet, as long as it reads natural, while the face and the loose parts do their own thing.
- **It acts with its parts, eyes first.** `Buddy` and `Trickster` are drawn as named parts (`data-part`: eyes, pupils, lids, brows, mouth, face, head, body, arms, antennae, the Trickster's tail, crown and sign), each turning around its own pivot; `BuddyActor` and `TricksterActor` play an act on them (`ref.play("cheer")`). The eyes lead, the brows and mouth follow, then the head and the arms, and the loose parts come last on `ease-follow`. An expression swaps the whole face while the eyes are shut or a part is squashed, and the arms never mirror each other.
- **Acts are data, timed in frames.** `BUDDY_ACTS` and `TRICKSTER_ACTS` list each part's keys in frames at 24 a second (`duration-frame`). A part starts where it's drawn and lands on the next expression's pose, so an act never jumps. Its curves are tokens: `ease-accelerate` into a pose, the ease-out for darts and actions, `ease-swing` for weight, `ease-spring` and `ease-follow` to settle. A blink is 6 frames: 2 down, 1 shut, 3 up.
- **It reacts where something happened.** Where a character appears because the learner's action did something (a mission done, today's missions, the summary, a milestone's ceremony, a challenge's intro and result), it plays the fitting act once: `reaction={{ act, delay }}` on `BuddyActor` or `TricksterActor` plays it on the moment's beat when `useCelebration` says so and draws its landing still otherwise (a reload, a revisit, Back), so the server draws the final pose and nothing flashes. In the big celebrations its whole body reacts. Where the character is the screen's subject (the buddy's chat, a duel), `ref.play(act)` reacts to each thing that happens, never on a timer.
- **It holds still where it only illustrates a screen or is small**: the sidebar and the tab bar, Today, rows and marks, pickers, empty states. `Buddy` and `Trickster` draw it still.
- **Never in the way.** Continue works from an act's first frame, and a press, ⏎ or Esc lands an act under way at once.
- **No idle on everyday screens.** After a reaction, one blink about 2 s later where its eyes are open, then rest.
- **Reduced motion draws the act's expression at once** (the face, and the Trickster's pose), and nothing moves.
- **What's around it keeps its motion.** The number counting up, the check and the badge landing, the meter filling and the burst stay as they are.
## Why
- Apple's [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/motion): "In apps, generally avoid adding motion to UI interactions that occur frequently"; "don't make people wait for an animation to complete". [WWDC23](https://developer.apple.com/videos/play/wwdc2023/10158/): springs keep their velocity when interrupted; bounce 0.3 is "noticeable", above 0.4 calls for caution. [WWDC26](https://developer.apple.com/videos/play/wwdc2026/250/): "Delight isn't confetti". With Reduce Motion, Apple replaces movement with fades ([Accessibility](https://developer.apple.com/design/human-interface-guidelines/accessibility)).
- [Material 3](https://m3.material.io/styles/motion/overview/how-it-works) splits springs into spatial (they may overshoot) and effects (color and opacity, never).
- Vercel's [Web Interface Guidelines](https://vercel.com/design/guidelines): honor reduced motion, CSS before scripts, transform and opacity, cancelable by input, never `transition: all`, only for cause and effect or deliberate delight.
- Product decision (2026-10-27): the whole buddy hopping and the Trickster tipping as one block felt off, "worse than not animating at all"; a character should act like a person (it blinks, smiles, celebrates), as Duolingo's do. Acting in code is the system, with no Rive: characters play a smaller role than on Duolingo, and a runtime adds complexity Zoonk doesn't need. Characters react to what happened (in big celebrations with their whole body), and stay idle only where they illustrate a screen or are small.
- [Duolingo](https://blog.duolingo.com/world-character-visemes) runs its characters on Rive state machines, with mouth states running alongside the body's and idle "head nods, blinking, and eyebrows moving". [Lasseter (SIGGRAPH 1987)](https://history.siggraph.org/?p=116057) carries Disney's principles (anticipation, follow-through and overlapping action, squash and stretch, timing) into computer animation. Real blinks close fast and open slowly, and cartoon blinks read most natural at about 7 frames of 30 a second ([Trutoiu et al., 2011](https://la.disneyresearch.com/wp-content/uploads/Modeling-and-Animating-Eye-Blinks-Paper.pdf)). Animators blink for a reason, a change of thought or gaze, not on a timer ([Animation Mentor](https://newsletters.animationmentor.com/newsletter/1105/feature_tiptricks.html)).
- WCAG 2.2: [2.2.2](https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html) (movement over 5 s needs a way to stop it) and [2.3.3](https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html).
Versions
The database has no other skills named zoonk-motion.
Database snapshot: 13.11.2026 · package version 680ccea4761c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100zoonk-bug-report
File a Zoonk bug report on GitHub for anyone, technical or not, in any language. Ask in their words for what's missing, write the issue in English and keep private details out. Use when someone asks you to report a bug or a problem in Zoonk. - 100zoonk-feature-request
Post a Zoonk idea or feature request to GitHub Discussions for anyone, technical or not, in any language. Find the need behind the request, write it in English and keep private details out. Use when someone asks you to request, suggest or propose a feature, an idea or a change to Zoonk. - 100animate
Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked… - 100design-motion
Build one new animation (micro-interaction, page transition, scroll, hover) with Motion, CSS, or GSAP. Use when adding one animation to a new surface. A pass across an existing app → enhance-motion.