Motion dictionary
Motion effects have names: Fade Up, Odometer, Headroom, Confetti. This page lists the common ones and says where SunUI stands on each, so you and your AI agent can ask for a motion by name and get an answer that fits the design rules.
The four rules behind every verdict
- Motion answers a user action or a data change. Nothing fades in on page load, and nothing loops while idle (countdowns and loading are the exceptions).
- No decorative gradients, glows or coloured shadows; blur only on layers that float over content.
- No celebrations. A result settles once, as the Result mark, where the action happened.
- Single animations stay under 400 ms, and reduced motion becomes an instant switch with no information lost.
- Allowed: Use it the way described.
- Limited: Only in the situation described.
- Avoided: Not in SunUI. The note says what to do instead.
These verdicts apply to the core (craft) and product blocks. For landing pages and marketing sections that want the full range (gradients, entrances, loops, cursor and background effects), use the Motion series.
51
Entrance and exit
Fade Up
AvoidedAlso called: Fade In Up, Reveal on Scroll, Animate on Scroll
Content is simply there when the page loads. If a value arrives later, roll the number instead of fading the block in.
Blocks:Animated Number
Blur In
AvoidedAlso called: Focus In, Blur Text Reveal
SunUI uses no blur at all. Swap the content instantly.
Bounce In
AvoidedAlso called: Zoom In, Jack In The Box, Back In, Puff In
A bounce from zero has no mass behind it. Dialogs and popovers settle in from 96% with a fade in under 200ms, without overshoot.
Blocks:Upgrade Modal
Slide In / Slide Out
AllowedAlso called: Drawer Slide, Bottom Sheet Slide-Up
A panel is pushed in from its own edge with the gentle spring and leaves the same way. No fade on the panel itself.
Blocks:Side PanelCart Drawer
Fade In / Fade Out
LimitedAlso called: Backdrop Scrim Fade
Only for a scrim or overlay that appears because the user opened something. 180 to 220 ms.
Stagger
LimitedAlso called: Cascade, Staggered Animation
Only when a list changes because of the user, such as applying a filter. Never on page load, and the whole run stays under 400 ms.
Blocks:Product Filter Grid
Card Flip
LimitedAlso called: Flip In, Flip Card
Only when the back carries information, such as coupon terms, and only on press. Not as decoration on hover.
Emphasis
Shake
AllowedAlso called: Error Shake, Invalid Input Shake, Head Shake
One short horizontal shake, 320 ms, when input is rejected, always with the error text. Skipped under reduced motion; the text stays.
Blocks:OTP InputLicense and Redeem Panel
SAVE20XCode not found
Pulse
LimitedAlso called: Pulsing
Only a small dot for a real live state such as processing or recording. Never on buttons or call-to-action areas.
Blocks:Status Dot
Heartbeat / Tada / Jello / Wobble
AvoidedAlso called: Rubber Band, Swing, Bounce (attention), Ping
Attention-seeking loops. A result settles once as the Result mark; an idle element does not move.
Flash / Flicker
AvoidedAlso called: Blink, Flicker In
Hard on the eyes and unsafe for people sensitive to flashing. Mark new content with a small label.
Scroll
Hide on Scroll Header
AllowedAlso called: Headroom, Auto-hide Navbar
Hide on scroll down, show at once on scroll up, with an 8 px threshold. Never hide while keyboard focus is inside the header.
Sticky Header Shrink
AllowedAlso called: Shrinking Header, Shrink on Scroll
Once the page leaves the top, the header gets shorter and gains a hairline edge. Frosted glass is fine here because the header floats over content; keep it at least 80% opaque.
Blocks:Capsule Nav
Scroll Progress Indicator
AllowedAlso called: Reading Progress Bar, Back to Top Progress
A thin line in the brand spot colour that follows the scroll position directly, with no spring lag.
Blocks:Scroll Progress
Pinning / Stacking Cards
AllowedAlso called: Pinned Section, Sticky Stacking Cards, Split Screen Scroll
One pinned story section per page for a feature or campaign walkthrough. It must work with plain scrolling and reduced motion.
Blocks:Scroll Story
Scroll-Linked Animation
LimitedAlso called: Scroll Scrub, Scroll-Driven Animation, Mask Reveal
Progress is tied to scroll and reverses when scrolling back. Keep it to one storytelling section; under reduced motion show the final state.
Parallax / Zoom on Scroll
AvoidedAlso called: Parallax Layers, Scroll Zoom, Text Marquee on Scroll
Brand-page decoration that says nothing about the product, and a crowded space other libraries already own.
Smooth Scroll
AvoidedAlso called: Inertia Scroll
Do not take over native scrolling. For anchor jumps, CSS scroll-behavior is enough and respects reduced motion.
Text and numbers
Number Ticker / Odometer
AllowedAlso called: Count Up, Rolling Digits, Price Roll
Digits roll in the direction the value moved, only when the value changes. Screen readers get the formatted number.
Blocks:Animated NumberQuantity Stepper
NT$1,280Split-Flap
AllowedAlso called: Flip Clock, Departure Board
For countdowns and drop times. A card flips only when its digit changes, and the countdown pauses on hidden tabs.
Typewriter
LimitedAlso called: Typing Effect, Text Generate
One short rotating line at most, paused when off screen. Never for body copy, prices or anything people need to read in full.
Blocks:Typewriter
Underline Draw
LimitedAlso called: Underline Reveal, Text Highlighter
On hover or focus of a link, 120 ms. Not as a load-in highlight on headlines.
Text Scramble
AvoidedAlso called: Scramble Decode, Matrix Text
Reads as a hacker effect and hides the code from screen readers while it runs. To reveal a coupon code, tear the stub instead.
Blocks:Coupon Claim Card
Gradient / Neon / Glitch Text
AvoidedAlso called: Animated Gradient Text, Neon Glow Text, Holographic Text, Glitch Text
Decorative gradients and glows are banned outright. Emphasis comes from size, weight and contrast.
Hover and press
Press
AllowedAlso called: Button Tap Scale, Push
Scale to 97% on press with the snappy spring. It is feedback that the press landed, so keep it on every pressable surface.
Hover Zoom / Magnifier
AllowedAlso called: Hover Zoom & Pan, Magnifier Lens, Image Swap on Hover
For product images, where seeing detail helps a purchase. On touch screens, open the gallery on tap instead.
Blocks:Product Gallery
Background Fade
AllowedAlso called: Hover State Layer, Border Fade
A 120 ms color change on hover, using theme tokens. The default hover for rows, chips and menu items.
Glow / Shine Sweep / Border Beam
AvoidedAlso called: Hover Border Gradient, Neon Glow Button, Rotating Gradient Border
Colored glows and gradients are the clearest template signal. A hover may change color or lift by 1 px, nothing more.
3D Tilt / Glare Card
AvoidedAlso called: Holographic Card, Tilt Parallax Image
Pretty but says nothing, and it does not work on touch. Depth comes from light and elevation, not from tilting the object at the cursor.
Custom Cursor / Magnetic Button
AvoidedAlso called: Cursor Follower, Cursor Trail, Cursor Spotlight
Decoration that fights the pointer people already know, and does nothing on phones where most shoppers are.
Micro-interactions
Result mark
AllowedAlso called: Stamp, Result Line, Result Text, Status Label
The shared Result mark, placed where the action happened, for example in place of the button. Positive results (claimed, redeemed, paid) get a small disc in the brand spot colour whose check draws in and settles once on a spring; ended, sold out or no prize use muted text. No whole-card bounce, no rotation, no confetti.
Blocks:Coupon WalletTier ProgressStamp Card
Coupon
NT$150 off
Confetti
AvoidedAlso called: Particles Burst, Fireworks
SunUI has no celebration. The result settles once as the Result mark where the action happened.
Add to Cart Fly
AllowedAlso called: Fly to Cart, Cart Badge Bounce
A small price tag arcs into a cart icon that stays visible, then the badge count updates. The request never waits for the animation.
Blocks:Add To Cart Button
Like / Heart Burst
LimitedAlso called: Heart Burst, Favorite
One small burst in the brand spot colour on the press that saves the item. No particles, no loop afterwards.
Blocks:Favorite Button
Copy-to-Clipboard Feedback
AllowedAlso called: Copy Feedback, Copied Tooltip
The icon becomes a check and a polite live region says it was copied. Reverts after about two seconds.
Blocks:Copy Code Button
Success Checkmark
AllowedAlso called: Button Loading State, Checkbox Check Draw
The check line draws once in under 300 ms. For an order or payment result, the Result mark is enough; nothing more celebrates it.
Swipe to Delete
AllowedAlso called: Swipe Action
Allowed on touch lists if a visible remove button and an undo toast exist too. Swiping alone is undiscoverable.
Blocks:Toast StackCart Drawer
Components and layout
List Item Enter / Exit
AllowedAlso called: Collapse, Height Auto
Removed rows collapse their height so the rows below move up in place. Pair with an undo when the removal is the user's.
Blocks:Cart DrawerToast Stack
- Linen tote
- Ceramic mug
- Notebook
Tab Indicator Slide
AllowedAlso called: Sliding Highlight, Segmented Control
The indicator slides to the new tab with the snappy spring; content swaps without a slide.
Blocks:Capsule NavVariant Picker
FLIP Layout Animation
AllowedAlso called: Shared Layout Animation, Grid Shuffle, Filterable Grid
When filtering or sorting moves items, they glide to their new place with the gentle spring so people can follow them.
Blocks:Product Filter Grid
Accordion Expand-Collapse
AllowedAlso called: Disclosure, FAQ
Height opens with the gentle spring; the plus turns into a minus. Content stays in the DOM for search engines.
Blocks:FAQ Accordion
Toast Slide-In
AllowedAlso called: Snackbar, Toast Stack
Toasts slide in from their edge and stack; pausing on hover and focus, with a polite live region.
Blocks:Toast Stack
Marquee
LimitedAlso called: Infinite Card Wall, Logo Marquee
One of the few allowed loops, for reviews only. It pauses on hover and focus and stops under reduced motion.
Blocks:Testimonial Marquee
Carousel Slide
LimitedAlso called: Carousel Crossfade, Coverflow, 3D Carousel
Moves only when the user swipes or presses. No autoplay unless it has a visible pause button. Coverflow and 3D rings are out.
Blocks:Product Gallery
Page Transition
LimitedAlso called: Curtain Wipe, Circular Reveal, Shared Element Transition
A framework concern (View Transitions in Next.js), not a block. If you add one, keep it under 250 ms and skip it under reduced motion.
Loading and data
Skeleton Shimmer
AllowedAlso called: Pulse Placeholder, Content Loader
Loading is one of two exceptions to the no-loop rule. The shimmer stops the moment data arrives and is static under reduced motion.
Blocks:Skeleton Set
Progress Bar / Ring
AllowedAlso called: Determinate Progress, Progress Ring, Free Shipping Progress
Animates from the old value to the new one when progress really changes. Reaching a goal shows a quiet result line, no celebration.
Bar Chart Grow / Donut Fill
LimitedAlso called: Chart Data Transition, Line Chart Draw
When the data loads or changes, once. Not replayed every time the chart scrolls into view.
Ambient and decoration
Particles / Aurora / Animated Gradient
AvoidedAlso called: Sparkles, Meteors, Light Rays, Background Beams, Mesh Gradient, Starfield
Every item here breaks the color rules and adds an idle loop. A SunUI page gets its character from material, light, type and the feel of each press.
Ken Burns
AvoidedAlso called: Slow Zoom, Pan and Zoom
An idle loop on the product photo, which is the one thing shoppers need to see still.
Use the same timing in your code
sunui-motion is a small library with the three springs and the allowed motions on this page (press, result fade-in, shake, panel, list collapse, number roll). Every helper has a reduced-motion path. It has no fade-up, pulse or confetti on purpose.
$ npx shadcn@latest add https://sunui.synvize.com/r/sunui-motion.jsonInstalls to lib/sunui-motion.ts. Import springs, press, stamp, useShake, panel, listItem or roll.
Further reading
Two public collections are good for learning motion names and seeing them play. Most of their effects fall under Avoided here; use them as a vocabulary, not a shopping list.