Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Ctrl k
Search...
Sign up
Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Once UIDocumentationBlog
© Once UI. All rights reserved.
Built with Aveiro

Reveal & motion

RevealFx entry animation, CountFx pairing, and the ambient decoration budget.
Updated 19d ago
Icons & buttons
Theme tokens, FOUC-free init, and runtime style controls
5 min · Foundations
RevealFx handles entry animation. Continuous effects like BlobFx and MatrixFx are decoration — budget them strictly so pages stay premium, not noisy.

Two kinds of motion

Type
Components
Budget
**Entry** (plays once)RevealFx, CountFxOne staggered set per page
**Ambient** (loops)BlobFx, MatrixFx, PulseAt most two places, never adjacent
Entry motion draws attention to content arriving. Ambient motion sets mood in hero or CTA sections. Mixing both everywhere dilutes the effect. Source: recipes.md decoration budget rules.

RevealFx basics

Wrap content you want to fade or slide in. Control playback with the trigger prop. Pattern:
  • Attach a ref to the container
  • Use useInViewport(ref) to detect visibility
  • Latch a seen boolean in useEffect when in viewport
  • Pass trigger={seen} to each RevealFx child
Latch seen so the animation plays once when the element enters the viewport — not on every scroll pass. Set translateY="8" for a subtle upward slide. The prop accepts spacing token strings ("8", "16") or a rem number (1 = 1rem). Bare 16 means 16rem — a common codegen mistake.

Stagger a grid

Delay each child by index. Delay is in seconds, not milliseconds. In a three-column grid, map items and pass delay={index * 0.1} on each reveal wrapper. On mobile, stack with s={{ columns: 1 }}. Stagger all siblings in a set — never animate only the highlighted card.

Pair with CountFx

Drive stat numbers from the same viewport latch:
  • Wrap the stat block in a reveal wrapper with trigger={seen}
  • Set CountFx value={seen ? 2400 : 0} with a separator for thousands
  • Label below with Text variant="label-default-s"
CountFx has no trigger prop — animate by changing value from 0 to the target.

Ambient decoration budget

Hard limits from the Core recipes:
  • One ambient background layer per section — hero, highlighted card, or final CTA only
  • Continuous motion in at most two places per page, never side by side
  • One accent family — decorations use brand-* or neutral-*, not mixed schemes
  • Every decorative layer: position="absolute" top="0" left="0" fill pointerEvents="none", content at zIndex={1}
  • See Decoration layers for placement recipes.

    Write this / not this

    ✅ Once UI way
    ❌ Common mistake
    `delay={index * 0.1}` (seconds)`delay={index * 80}` (ms — animates for minutes)
    `translateY="8"` or `translateY={1}``translateY={16}` (16rem jump)
    Viewport latch with useInViewport`trigger={true}` on page load for below-fold content
    Stagger all siblings or noneOnly the highlighted card animates
    CountFx value driven by seen latchCountFx trigger prop (does not exist)

    Check yourself

    • Only one staggered reveal group on the page
    • Delays use fractional seconds (0.1, 0.2, …)
    • Ambient Fx limited to hero / CTA anchors
    • Decorative layers have top="0" left="0" inside padded parents

    Related

    → Decoration layers → Common gotchas — motion section → Source: recipes.md