
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
An elastic Rive pill that expands into a soft reading panel. Customize its text, font and colors, reverse it mid-motion, and download a reusable website element.
Live Rive preview. Motion follows your reduced-motion preference.
Use sq-motion preset liquid-reveal. Set loop to false, then change open between true and false or use the component button. label, title, detail and button-label supply the content.
<script type="module" src="https://thesidequest.studio/elements/motion.js?v=20261116-motion"></script>
<sq-motion preset="liquid-reveal" 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 same spring opens and closes a single continuous silhouette. Content arrives after there is room to read. Changing open during motion reverses the existing spring.
A semantic button supports keyboard activation and reports expanded state. A text alternative preserves the message. Reduced motion uses the selected open or closed state immediately.