
Motion objects · 487 KB
Flying cards
A weighted card leaves the stack with a flick, then a fresh card settles into place.
Customize, download & embed ↗FREE RIVE DOWNLOAD · MOTION OBJECTS
A Rive metric card with a counting value, morphing chart and explorable history. Bind your own numeric data, customize the design, and download or embed it.
Live Rive preview. Motion follows your reduced-motion preference.
Use sq-motion preset living-metric and provide value, delta, target and series. Call update({value: 2400, series: [10, 20, 30]}) when your public data changes. Set cursor to -1 to return to the live value.
<script type="module" src="https://thesidequest.studio/elements/motion.js?v=20261116-motion"></script>
<sq-motion preset="living-metric" loop="true"></sq-motion>Connect public properties through the view model, or use the web component’s attributes and methods. The integration guides explain embedding, dynamic text, accessibility, and self-hosting.
| Property | Meaning |
|---|---|
State machine / view model | Motion |
label, title, detail, buttonLabel | Editable strings |
value, delta, target | Finite numbers; host owns actual data |
prefix, suffix, precision | Number formatting; precision 0–2 |
series | 2–64 comma-separated numbers |
cursor | -1 live; 0–1 chart position |
fontChoice | 0 Sans, 1 Lora, 2 Space Mono |
fontSize | 40–112 artboard units |
accent, surface, ink | ARGB colors |
open | Liquid reveal state; reversible |
action | Increment to throw a card |
loop | Preview repeat; false for application control |
playing | false freezes animated time |
reducedMotion | Readable final state without decorative motion |
The displayed number settles to the latest supplied value while the chart morphs to supplied CSV samples. Cursor values from 0 to 1 reveal interpolated historical values. The loop demonstrates cursor movement without changing your input data.
The component supplies a keyboard-operable range input for exploring the graph and a readable data summary. Reduced motion applies number and chart updates immediately.