Skip to content

UI Animation: How Interfaces Express Motion ​

A breadth-first survey of how UI systems express animation — retained frameworks, the web platform, Apple's and Google's toolkits, the React and Svelte libraries, functional reactive programming, immediate-mode GUIs, terminal UIs and animation engines. It informs two designs: sparkles:ui, whose components are pure per-frame functions over const state with presentation state in an identity-keyed element store (decisions UI-Q1–UI-Q7), and the sparkles:reactive effort surveyed in the reactive-programming catalog. Animation was the problem FRP was invented for — Elliott and Hudak's Functional Reactive Animation (1997) — so the survey connects the two in FRP and comparison § FRP and animation.

Every deep-dive answers the same nine questions in the same order (the analysis spine): where animation state lives, how an animation is declared, where time comes from, what an interruption does, curves and springs, layout animation, enter and exit, scheduling with reduced motion and testing, and what sparkles:ui can take from it.

This survey answers eight questions:

  1. Where does an animation's state live, and who writes it? — the master catalog and comparison § Where animation state lives.
  2. Is animation declared as a target or driven by a controller, and is it implicit? — comparison § Declaring.
  3. Who owns the clock, and is the value computed in closed form? — comparison § Time and the clock and concepts § Closed form and stepped integration.
  4. What happens when the target changes mid-flight? — comparison § Interruption.
  5. How is geometry animated, which mechanisms need last frame's geometry, and in which phase do they run? (UI-Q9) — comparison § Layout animation and UI-Q9.
  6. How does a removed element keep painting through its exit? (UI-Q10) — comparison § Enter, exit and UI-Q10.
  7. Can an animated view stay a pure function of state and time, and how is it tested? — comparison § Purity, scheduling and testing.
  8. What could sparkles:ui adopt? — comparison § Candidate designs (analysis, not decision), against the baseline.

The shared vocabulary is defined once in concepts.

Last reviewed: November 26, 2026

NOTE

Authored-timeline engines for video — Manim, Motion Canvas, Theatre.js, Remotion — are covered by the mathematical-animation catalog. This survey covers animation inside interactive interfaces, and treats authored timelines only where a UI runtime plays them (engines and tools).


Master catalog ​

SubjectEcosystemCategoryVersions surveyedAnimation state lives inLink
FlutterDartretained framework3.47.4 @ 9584c67 (2026-09-10)AnimationController in a State or RenderObjectflutter
Jetpack ComposeKotlinretained framework (recomposing)Compose 1.14.0-alpha02 @ 296313a4 (2026-11-21)remembered holders in the slot table; Modifier.Nodesjetpack-compose
SwiftUISwiftretained framework (declarative)Apple documentation as of 2026-11-26 (iOS 13–18 APIs)the attribute graph, per view identityswiftui
Core AnimationObjective-C/Swiftcompositor (render server)Apple documentation as of 2026-11-26; Programming Guide (2015-03-09)CAAnimations in the render server; presentation treecore-animation
CSS Transitions & AnimationsWeb platformstyle-level declarativecsswg-drafts @ 9c7ee531 (2026-11-25)the UA's CSSTransition/CSSAnimation per elementcss-transitions-and-animations
Web AnimationsWeb platformtiming model + imperative APIWeb Animations 1 ED, 2 WD (2025-11-20) @ 9c7ee531Animation objects; stateless effectsweb-animations
Scroll-driven & View TransitionsWeb platformprogress timelines; snapshotsscroll-animations-1 ED, css-view-transitions-1/2 ED @ 9c7ee531the scroll offset; the ViewTransition's named-element mapscroll-and-view-transitions
Motion, React SpringTypeScript (React)animation librariesMotion 14.14.0 @ 1fa0e14; React Spring 11.0.0-beta.3 @ f005007 (2026-11)MotionValues, SpringValues outside React statereact-motion-and-spring
SvelteSvelte 5compiler directives + runtime5.59.2 @ f076077 (2026-11-25)transition managers on the runtime's effectssvelte
Fran, Yampa, Elm, ReflexHaskell, Elmfunctional reactiveFran 1.16; Yampa 0.15.1; elm/browser 1.0.2, elm-animation 2.0.0, elm-animator; Reflex @ f443526the behaviour value; the signal function; the Modelfrp
Dear ImGui, egui, Clay, Nuklear, microui, GioC, C++, Rust, Goimmediate modeImGui @ bd4e3b0; egui 0.37.0 @ 90431d9; Clay @ e6cc369; Gio @ 9816a10per-id storage (egui, Clay), context scalars, caller structsimmediate-mode
Bubble Tea + harmonica, Textual, tachyonfxGo, Python, Rustterminal UIsharmonica @ 0ff76e4; Textual 8.2.8 @ 5e5b7ef; tachyonfx 0.25.2 @ dac4d28the application model; Textual's Animatorterminal-uis
Godot, Rive, Lottie, GSAPC++, JSON, JSengines and motion toolsGodot @ 8f2e46b; rive-runtime @ c355fea; lottie-spec @ 4b55957; GSAP 3.15.1Tweens, state-machine instances, a frame number, timelinesengines-and-tools
sparkles:ui todayDthe system under designmain, 2026-11-26component structs stepped by dt; ElementStore for scrollsparkles-baseline

The full per-dimension table — clock, retargeting, springs, layout phase and exit mechanism for every system — is comparison § At a glance.


Taxonomy ​

By where animation state lives ​

HomeSubjects
A controller object the program holdsflutter, jetpack-compose (Animatable), web-animations, core-animation (UIViewPropertyAnimator), engines-and-tools (GSAP, Godot)
The application's modelfrp (Elm, Yampa), terminal-uis (Bubble Tea), sparkles-baseline
Per-identity storage the framework keepsswiftui, jetpack-compose, css-transitions-and-animations, immediate-mode (egui, Clay), react-motion-and-spring, svelte, engines-and-tools (Rive)
A compositor or render servercore-animation, web-animations (compositor path), scroll-and-view-transitions

By when a layout animation runs ​

PhaseSubjects
User or library code around a commitweb-animations (FLIP), react-motion-and-spring (Motion layout), svelte (animate:), engines-and-tools (GSAP Flip), frp (Elm)
The build, from last frame's sizeimmediate-mode (egui CollapsingHeader)
Layoutjetpack-compose (lookahead, animateContentSize, animateItem), flutter (RenderAnimatedSize), immediate-mode (Clay's two passes), engines-and-tools (Rive), terminal-uis (Textual)
After layout, before or at compositeswiftui, core-animation, scroll-and-view-transitions (View Transitions), flutter (Hero)
Nonecss-transitions-and-animations (a layout-induced move does not animate), Dear ImGui, Nuklear, microui, Lottie, Godot

By what keeps an exiting element on screen ​

KeptSubjects
The description, re-run by the frameworkswiftui, jetpack-compose (AnimatedVisibility, AnimatedContent), flutter (AnimatedSwitcher), react-motion-and-spring, svelte
A closing state the program keeps buildingimmediate-mode (egui), css-transitions-and-animations (allow-discrete), frp, terminal-uis, engines-and-tools, core-animation, sparkles-baseline (LYR10)
A snapshot of the built outputscroll-and-view-transitions (a raster), immediate-mode (Clay's cloned layout subtree), jetpack-compose (a lazy item's last GraphicsLayer)

By what an interruption does to velocity ​

On retargetSubjects
Kept (springs carry (value, velocity))jetpack-compose, swiftui, react-motion-and-spring, svelte (Spring), terminal-uis (harmonica), frp (elm-animation, Yampa), sparkles-baseline (ScrollMotion)
Smoothed additivelycore-animation, swiftui (timing curves), web-animations (composite: "add")
Lost (restart from the current value)flutter (implicit widgets), css-transitions-and-animations, immediate-mode, terminal-uis (Textual), engines-and-tools

Milestones ​

DateMilestoneLink
1997Elliott & Hudak, Functional Reactive Animation (Fran): a behaviour is a function of continuous timefrp
2003The Yampa Arcade: games as arrowized signal functions with dynamic collectionsfrp
2007Core Animation ships in macOS 10.5 (iOS 2.0 in 2008): model and presentation layerscore-animation
2009Elliott, Push-Pull Functional Reactive Programming: constant phases need no samplingfrp
2013-06-25Web Animations Working Draft (the earliest TR the source lists)web-animations
2015-02-11Paul Lewis, "FLIP Your Animations"web-animations
2016UIViewPropertyAnimator: interruptible, scrubbable, reversible (iOS 10)core-animation
2019SwiftUI: withAnimation, Animatable, Transaction (iOS 13)swiftui
2019-08-23Flutter's TweenAnimationBuilderflutter
2020SwiftUI matchedGeometryEffect (iOS 14); egui's animate_bool (2020-08-30)swiftui, immediate-mode
2022-10-25CSS View Transitions Level 1, First Public Working Draftscroll-and-view-transitions
2023iOS 17: springs by default, CustomAnimation with shouldMerge/velocity, PhaseAnimator, KeyframeAnimatorswiftui
2023-04-28Scroll-driven Animations Working Draftscroll-and-view-transitions
2024Compose ApproachLayoutModifierNode, animateBounds and SharedTransitionScope (file-header years)jetpack-compose
2024-02-19Textual 0.52.0: animation_level and TEXTUAL_ANIMATIONSterminal-uis
2024-08-28CSS Easing Level 2 FPWD: linear()css-transitions-and-animations
2024-09-17lottie-spec 1.0engines-and-tools
2024-10-22Svelte 5 (runes; transitions timed through Web Animations)svelte
2024-11-12Framer Motion becomes Motion, independent of Framerreact-motion-and-spring
2025-04-30GSAP 3.13.0: every plugin free after the Webflow acquisitionengines-and-tools
by 2026-05-20Clay's transition API, with enter and exit (date uncertain: the clone is shallow)immediate-mode

Quick navigation ​


Sources ​

Each deep-dive's Sources section lists the primary sources behind it: the specifications and source trees pinned in the master catalog, official documentation, and the papers. The decisions this survey is measured against are in the component-authoring study; the open questions UI-Q9 and UI-Q10 are in the draft specification of PR #775.