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