AnimationsNew

Timeline Reveal

When a block enters the screen, its parts sharpen out of a blur one after another. Good for timelines, step lists and headings.

Customize

color
accentColor
highlightColor

Based on Timeline Animation (MIT license) ยท Terms of use

More in Pro

View all

Props

14 properties
PropertyTypeDefaultDescription
childrenReactNodeโ€”What to reveal.
animationNumnumberโ€”Place in the queue. Item N appears N steps after the start.
timelineRefRefObject<HTMLElement | null>โ€”The shared block. When it enters the screen, the whole chain starts.
askeyof HTMLElementTagNameMap"div"HTML tag to render.
oncebooleantruePlay only the first time. Otherwise it hides and reveals again on every entry.
delayStepnumber0.25Pause between neighbouring items in seconds.
durationnumber0.5Seconds one item takes to appear.
blurnumber20Blur of a hidden item in pixels.
offsetYnumber0Vertical offset of a hidden item in pixels.
customVariantsVariantsโ€”Your own hidden and visible states instead of the blur.
colorstring"#ffffff"Main colour. Children read it as var(--timeline-c1).
accentColorstring"#a3a3a3"Second colour. Children read it as var(--timeline-c2).
highlightColorstring"#ffffff"Light highlight colour. Children read it as var(--timeline-c3).
classNamestringโ€”Extra classes.

Dependencies

1 required package

npm install motion

Related components

View all