Motion

VD3 UI provides a harmonic, lightweight motion system built on the Fibonacci ladder and golden ratio curves. Transitional animations are enabled by default across all unfoldable and moving components—delivering fluid, natural physics without heavy external runtimes.

Harmonic Fibonacci Timing

Rather than picking arbitrary timings like 200ms or 300ms, VD3 UI synchronizes every transition to consecutive terms of the Fibonacci sequence:

55ms → 89ms → 144ms → 233ms → 377ms → 610ms → 987ms

Each step is approximately 1.618 times the previous duration, ensuring that transitions feel proportionate to the physical distance and surface area of the moving element.

Lightweight vs External Engines
~2.5 KB zero-dependency footprint. Built with native CSS custom properties, Web Animations API (WAAPI), and Vue 3 Transition primitives.

Need complex keyframe sequencing or SVG morphing? VD3 UI does not bundle heavy animation engines. You can install animejs or GSAP whenever specialized timelines or canvas physics are required; VD3 UI's components seamlessly integrate alongside them.

Fibonacci Duration Ladder

Click Replay ladder to watch each duration animate across its track with --vd-ease-out.

55ms--vd-duration-instantMicro-interactions, haptics, active presses
89ms--vd-duration-fastIcon toggles, checkmarks, reduced-motion crossfades
144ms--vd-duration-snappyTooltips, badges, small toggles (< 80px unfolds)
233ms--vd-duration-normalDropdowns, popovers, select menus, chip dismiss
377ms--vd-duration-moderateDrawers, modals, offcanvas, alerts (< 450px unfolds)
610ms--vd-duration-slowAccordions, code snippets, large panels (> 450px)
987ms--vd-duration-gentlePage transitions, hero unfolds, multi-stage choreographies
Golden Easing Curves

Golden cubic-bezier curves match the golden ratio deceleration curve (φ = 1.618), providing responsive initial velocity and buttery-smooth settling.

ease-out--vd-ease-outDecelerating entrance: natural arrivals, unfolds, drawer slide-in
ease-in--vd-ease-inAccelerating exit: dismissals, quick departures, modal closing
ease-in-out--vd-ease-in-outSymmetric transitions: tabs, loops, morphs, position shifting
ease-linear--vd-ease-linearContinuous steady animations: spinners, indeterminate loaders
<VdExpandTransition>

Smooth WAAPI height/opacity collapse for accordions, code blocks, and trees. Automatically measures natural content height and picks the matching Fibonacci duration.

Adaptive duration based on content height: 233ms (normal)

VdExpandTransition calculates actual scroll height and gracefully manages interruptions without sudden jumps.

When reduced-motion is requested, spatial height sliding is gracefully replaced with a rapid 89ms opacity crossfade.

<VdTransition> Presets

Declarative Vue transition wrapper providing GPU-accelerated presets configured with Fibonacci tokens.

Preset: scale
Duration: 233ms
Accessibility & Motion Modes

VD3 UI respects user intent at all times. Motion is fully customizable via setMotion(), useReducedMotion(), and the <VdThemeCustomizer> component.

Live Motion Controller
Current mode: data-motion="auto"
Active motion state: Full motion active
ModeBehavior
auto Follows OS prefers-reduced-motion automatically (default).
fullEnables all spatial, sliding, and scale animations.
reduce Eliminates movement; transforms becomes crossfades at 89ms.
offDisables all transitions outright (0ms).
Code Snippets & Token Reference
VdExpandTransition Usage
VdTransition Presets
CSS Motion Variables