SunUI
Founding$79 lifetime updates till Jan 11Claim a seat

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

  1. 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).
  2. No decorative gradients, glows or coloured shadows; blur only on layers that float over content.
  3. No celebrations. A result settles once, as the Result mark, where the action happened.
  4. 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

    Avoided

    Also 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

    Avoided

    Also called: Focus In, Blur Text Reveal

    SunUI uses no blur at all. Swap the content instantly.

  • Bounce In

    Avoided

    Also 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

    Allowed

    Also 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

    Limited

    Also called: Backdrop Scrim Fade

    Only for a scrim or overlay that appears because the user opened something. 180 to 220 ms.

  • Stagger

    Limited

    Also 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

    Limited

    Also 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

    Allowed

    Also 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

    SAVE20X
  • Pulse

    Limited

    Also 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

    Avoided

    Also 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

    Avoided

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Limited

    Also 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.

    Blocks:Scroll Reveal TextScroll Tilt Stage

  • Parallax / Zoom on Scroll

    Avoided

    Also 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

    Avoided

    Also 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

    Allowed

    Also 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,280
  • Split-Flap

    Allowed

    Also 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.

    Blocks:Countdown BannerLaunch Countdown Wall

  • Typewriter

    Limited

    Also 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

    Limited

    Also called: Underline Reveal, Text Highlighter

    On hover or focus of a link, 120 ms. Not as a load-in highlight on headlines.

  • Text Scramble

    Avoided

    Also 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

    Avoided

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Avoided

    Also 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

    Avoided

    Also 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

    Avoided

    Also 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

    Allowed

    Also 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

    Avoided

    Also called: Particles Burst, Fireworks

    SunUI has no celebration. The result settles once as the Result mark where the action happened.

  • Add to Cart Fly

    Allowed

    Also 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

    Limited

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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.

    Blocks:Confirm ButtonCheckout Button

  • Swipe to Delete

    Allowed

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Allowed

    Also 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

    Limited

    Also 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

  • Page Transition

    Limited

    Also 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

    Allowed

    Also 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

  • Button Loading State

    Allowed

    Also called: Spinner, Circular Spinner

    The button keeps its width, shows a small spinner and sets aria-busy. It never becomes a different shape.

    Blocks:Confirm ButtonCheckout Button

  • Progress Bar / Ring

    Allowed

    Also 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.

    Blocks:Quota MeterTier ProgressFree Shipping Progress

  • Bar Chart Grow / Donut Fill

    Limited

    Also 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

    Avoided

    Also 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

    Avoided

    Also 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.json

Installs 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.

Motion dictionary | SunUI