skip the tree
system / motion8 effects

Motion

Every effect is a cut in steps(): a state changes in one 40 ms step, and nothing tweens. Motion (motion.dev) plays each one as a list of frames, and none plays under reduced motion. Each spread below plays the real effect, with a replay. After the effects, the Motion library's examples, rebuilt in Composite by category.

the layer

src/lib/motion.ts
effects
8
a step
--motion-step, 40 ms
easing
steps() only
engine
motion.dev
reduced
off
rebuilds
213

motion / glitch

4 frames · 60 ms each
a link's name as the pointer or focus comes in; the heading a jump lands on
marginglitch(el)
length
--motion-glitch, 240 ms
frames
4, 60 ms
blocks
█▓▒░▚▞▖▘
again
after 333 ms
on a link
once a second

Display type flashes at most twice a second, so a glitch never runs faster (WCAG 2.3.1).

motion / dissolve

300 ms · settles on whole steps
the page title, after a click to another page
margindissolve(el)
length
--motion-dissolve, 300 ms
settles
every 40 ms
order
shuffled
spaces
kept from the start

dissolveDue() counts the settled characters; a test holds it to whole steps.

motion / step-in

one part a step · top to bottom
the Exhibit panel, on a switch
marginstepIn · motion-runtime.ts
a step
--motion-step, 40 ms
empty
1 step
a part
--i steps in
native rows
28 ms apart
on load
never

The same cut runs the rows of a native list: data-step, 28 ms apart.

motion / boot-log

1200 ms · a slot a line
off on site pages; this specimen only
margintypeLine · motion-runtime.ts
length
--motion-boot, 1200 ms
a slot
1200 ms ÷ lines
typing
steps(--chars)
stagger
--i slots

A page that has booted once does not boot again in the session. In a specimen it plays every time.

motion / build

a Panel writes its own HTML
a Panel; off on site pages
marginbuild(el)
a line
half a step
writing
4 to 10 steps
hold
3 steps
then
one cut
runs on
this page only

Off on site pages. Only this specimen runs it.

motion / cursor

1 s a blink · 5 blinks
the prompt: 5 blinks, again on focus
marginblink · motion-runtime.ts
length
--motion-cursor, 1 s
blinks
5
then
stays on
on focus
again

Focus in the Foot line starts the five blinks again.

motion / hard cut · aftershock

the cut · then aftershocks
a Fault
the 404 and error pages
marginaftershocks(el) · hard cut
the cut
--motion-fault, 400 ms
easing
steps(1)
aftershock
3 frames
quiet
1.4–5.2 s
first
after 2.2–3.6 s

A Fault is the other red. A screen Fault starts its aftershocks after the Hard cut.

motion / rebuilds

213 in 26 categories

The examples of the Motion library, made again in Composite: the same trigger, in steps() and the tokens, with the system's own parts. Each category is a page, with a Spread for each Rebuild and a link to its original.

~ / motion / 3d2 rebuilds
3DValley scene, Town at dusk.
~ / motion / base-ui1 rebuild
Base UIToast.
~ / motion / basics32 rebuilds
BasicsAnimatePresence modes, Color interpolation, Lock direction and 29 more.
~ / motion / buttons8 rebuilds
ButtonsLong press, Press and hold to repeat, Copy Button and 5 more.
~ / motion / carousel13 rebuilds
CarouselCarousel, Autoplay, Coverflow and 10 more.
~ / motion / clerk4 rebuilds
ClerkCard Stack, Conditional Field, Sign-in-or-up and 1 more.
~ / motion / cursor11 rebuilds
CursorBobble hover, Floating target, Magnetic filings and 8 more.
~ / motion / dialog4 rebuilds
DialogFamily-style dialog, Shared layout, Accordion and 1 more.
~ / motion / experimental4 rebuilds
ExperimentalParticle orb, Apple Intelligence ripple, Apple Watch Home Screen and 1 more.
~ / motion / forms3 rebuilds
FormsiOS exposure slider, Characters remaining, iOS slider.
~ / motion / gallery26 rebuilds
GalleryDepth of field, Showcase, Archive and 23 more.
~ / motion / game-ui1 rebuild
Game UIModal.
~ / motion / heros1 rebuild
HerosOSS Hero.
~ / motion / interactions9 rebuilds
InteractionsPinch to rotate, Pinch to zoom, Double tap to like and 6 more.
~ / motion / layout-animations5 rebuilds
Layout animationsLayout Anchor, Create Button, iOS App Folder and 2 more.
~ / motion / lists5 rebuilds
ListsMultidimensional reorder, To-do list, Card stack and 2 more.
~ / motion / loading11 rebuilds
LoadingLoading comments, Skeleton crossfade, Wait for exit and 8 more.
~ / motion / navigation7 rebuilds
NavigationCommand Palette, Floating Action Button, Radial Menu and 4 more.
~ / motion / overlays2 rebuilds
OverlaysStacked notifications, Sheet Modal.
~ / motion / page-transitions12 rebuilds
Page transitionsBlinds, Clip wipe, Doors and 9 more.
~ / motion / radix15 rebuilds
RadixAccordion, Checkbox, Context Menu and 12 more.
~ / motion / scroll8 rebuilds
ScrollFooter reveal, Hide Header, Scroll Horizontal Gallery and 5 more.
~ / motion / studio-sdk1 rebuild
Studio SDKBezier curve editor.
~ / motion / text17 rebuilds
TextRolling text button, Staggered, Scroll word reveal and 14 more.
~ / motion / ticker6 rebuilds
TickerRTL, Overflow, Ticker and 3 more.
~ / motion / view5 rebuilds
ViewClip path, Reorder items, Toggle and 2 more.