skip the tree
system / motion / loading11 rebuilds

Loading

The Loading examples of the Motion library, rebuilt in Composite: the same trigger, in steps, with the system's own parts.

the category

motion/_rebuilds
rebuilds
11
from motion+
7
easing
steps() only

motion / loading / animatesuspense: loading comments

after a motion+ example
comments load, and load again
margin_rebuilds/​loading/​animate-suspense.tsx
Motion
AnimateSuspense
here
wait(), a Busy line
the wait
1.2 s, made up
ready
the comments cut in

A made-up wait of 1.2 s shows the Busy line in the panel; when it ends, the comments cut in. Nothing is fetched.

motion / loading / animatesuspense: skeleton crossfade

after a motion+ example
comments load, and load again
margin_rebuilds/​loading/​animate-suspense-pop-layout.tsx
Motion
AnimateSuspense, popLayout
here
wait(), then play()
the wait
1.2 s, made up
the cut
one beat of 80 ms, both shown

The skeleton stays for 1.2 s. When the comments are ready they cut in and the skeleton stays on top as an outline for one beat of 80 ms, out of the flow, then goes.

motion / loading / animatesuspense: wait for exit

after a motion+ example
comments load, and load again
margin_rebuilds/​loading/​animate-suspense-wait.tsx
Motion
AnimateSuspense, wait
here
wait(), then play()
order
old leaves, a beat, then the new
the beat
80 ms, an empty panel

The old comments leave first, and the panel is empty for one beat of 80 ms. Then the Busy line holds for 1.2 s, and the new comments cut in.

motion / loading / skeleton shimmer

after a motion.dev example
a placeholder, with a lit cell stepping along it
margin_rebuilds/​loading/​skeleton-shimmer.tsx
Motion
animate, a gradient
here
play(), loops
a frame
100 ms, one cell
off screen
stops

No gradient sweeps. A lighter cell steps along the skeleton rows, one cell a frame, and begins again. Under reduced motion the skeleton is still.

motion / loading / loading: circle spinner

after a motion.dev example
a ring that goes round, one cell a frame
margin_rebuilds/​loading/​loading-circle-spinner.tsx
Motion
animate, rotate
here
play(), loops
a frame
100 ms, one cell
off screen
stops

A ring of eight cells; a bone cell with a grey tail goes round it one cell a frame. Nothing turns. It stops off screen and stays at rest under reduced motion.

motion / loading / fill text

after a motion+ example
a word that fills, a letter a frame
margin_rebuilds/​loading/​loading-fill-text.tsx
Motion
useSpring, useTransform
here
play(), 8 frames
a frame
150 ms, one letter
done
all letters bone
original
Fill text

The word fills one letter a frame, from grey to bone, left to right. No sweep goes through a letter.

motion / loading / loading: jumping dots

after a motion.dev example
three dots that jump, one after the other
margin_rebuilds/​loading/​loading-jumping-dots.tsx
Motion
variants, a stagger
here
play(), loops
a frame
160 ms, one dot up
off screen
stops

Each dot cuts up one cell and back, one after the other, then all three rest for a frame. It stops off screen.

motion / loading / loading overlay

after a motion+ example
a cover that opens with a line
margin_rebuilds/​loading/​loading-line-reveal.tsx
Motion
animate, useSpring
here
play(), 10 frames
a frame
100 ms, an eighth wider
first
a line opens in the cover

A bone cover shows loading. A line cuts open in its middle, then the gap grows by an eighth of the width a frame, and the page shows.

motion / loading / loading progress bar

after a motion+ example
a load, one cell a frame
margin_rebuilds/​loading/​loading-progress-bar.tsx
Motion
useSpring
here
play(), 13 frames
a frame
150 ms, one cell
done
all cells bone

The Progress line fills one cell a frame while it runs, in amber, and turns bone when full.

motion / loading / loading ripple

after a motion+ example
rings that grow from a dot, a cell a frame
margin_rebuilds/​loading/​loading-ripple.tsx
Motion
animate, repeat
here
play(), loops
a frame
120 ms, a ring grows a cell
off screen
stops

Square rings grow from a dot, three at once, a cell a frame, and wear from bone to grey. The loop stops off screen, and a still ring set shows under reduced motion.

motion / loading / loading: pulse dots

after a motion.dev example
three dots that pulse, one after the other
margin_rebuilds/​loading/​loading-three-dots-pulse.tsx
Motion
variants, a stagger
here
play(), loops
a frame
120 ms, a size a frame
off screen
stops

The dots stay in place and cut between three sizes, one after the other. It stops off screen, and the dots rest at one size under reduced motion.