Animation & motion

Components

Component

A horizontal strip of rounded image frames you can grab and throw. Drag, horizontal scroll or the arrow keys move it, and a throw keeps its speed then slows with smooth friction. Loop mode repeats the set seamlessly and drifts at an idle pace, picking the drift back up after a throw; free mode has springy ends. Images sit wider than their frames and slide against the motion for depth, frames lean slightly in the direction of a fast throw, and a caption fades in under the centre frame once the strip comes to rest. Items without images get a generated gradient from your chart colours. It is a labelled carousel with focusable slides, a drag never triggers a click, hover and focus pause the drift, a pause button appears when it moves on its own, and reduced motion steps item by item without drift, inertia or parallax.

Animation & motion · Chomodo Studio 0 likes 0 installs
Component

Counts a number up (or down) from a start value to its target when it scrolls into view, using IntersectionObserver and requestAnimationFrame. Formats every frame with Intl.NumberFormat (currency, percent, compact, decimals, any locale), keeps width steady with tabular figures, gives screen readers the final value, and shows it straight away when reduced motion is on.

Animation & motion · Chomodo Studio 0 likes 0 installs