An animation's schedule now lives apart from its drawing. Each converted component has a timeline.ts beside it: a pure function of the props that names the elements of the animation (a line, a word, a finale) and says when each starts and how long it runs. A new timing prop moves, trims or stretches those elements one by one, without touching the code that draws them.
Improvements
- The
timingprop. Pass overrides by element id:timing={{ "entry:1": { start: 40 } }}moves one entry,{ stretch: 2 }plays an element half as fast,{ length: 10 }trims it,{ detach: true }stops it following the one before. Elements that follow a moved one keep their gap and move with it. Frames are 30 fps frames on the scene's own timeline;delayandspeedstill apply to the whole animation. - Element ids are public API. A saved
timingrefers to them, so an id keeps its name and meaning from release to release. Each component lists its ids in the type at the top of itstimeline.ts. - Unchanged without
timing. Every converted component renders the same frames as before, checked frame by frame at three tempos. - Install layout. A component with a timeline installs as a folder,
components/remocn/<name>/index.tsxandtimeline.ts, and brings the small sharedtimelinemodule with it. The import path is the same. - Converted. 603 animations have a timeline: typography, numbers, product scenes, logo stings, UI blocks, motion graphics, social, media, graphic looks, camera, effects, AI and layout. Transitions (timed by the
TransitionSeriesaround them), captions (timed by the caption data), shaders, filters and other endless loops without events keep playing as one clip. The first converted were A to Z, Staggered Fade Up, Per Character Rise, Top-Down Letters, Bottom-Up Letters, Per-Word Crossfade, Word Stream, Centered Word Build, Line-by-Line Slide, Zoom Words, Word Push, Spring Scale In, Soft Blur In, Blur Out Up, Mask Reveal Up, Short Slide Right, Squeeze In, Fog Rise, Shared Axis Y, Typed Split Wipe, Period Drop, Absorb Stack, Baseline Drop, Counter Reveal, Escalate Cards, Feature Trio, Got Em, Indent Steps, Index List, Italic Speed, Kerning Snap, Kill Feed, Pass Swap, Round Slam, Stack Letters, Three Steps, Torn Edge, Weight Wave, Word Ladder and Word Stack.