Add motion to pages
For agents building layouts over MCP or as the site agent. Motion is optional decoration: a page must read the same without it, and every visitor who reduces motion sees it still. The full design is in the motion proposal; what people see in the admin is in getting started.
Check the motion level first
get_brand returns theme.motionLevel: off, subtle or expressive. It caps everything.
off: nothing moves. Do not add motion props,countUp,marqueeorbackgroundVideo, and do not use Scrollytelling, Lottie or Model3D. Turning motion on is a brand decision for a person:update_brand_draftwith{ theme: { motionLevel: "subtle" } }changes only the draft, andpublish_brand_draft(behind the two-step confirmation) makes it live.subtle: short entrances at half distance; slide and tilt become a short rise.expressive: every effect.
motionDuration (100ms to 2000ms), motionEasing, motionDistance (0 to 120px) and motionSwitch (the visitor's Reduce motion switch) are brand tokens too.
The motion prop
Every block takes an optional motion object (get_block_schema lists it):
| Key | Values | Notes |
|---|---|---|
entrance | none, fade, rise, scale, slide-left, slide-right | As the block scrolls into view. |
delay | none, short, medium | |
stagger | true | Blocks with items (cards, images, logos, quotes, stats, questions, buttons, collection items): the items arrive one after another. |
hover | none, lift, zoom, tilt | Blocks with items; tilt only at expressive. |
scroll | none, fade-out, pin, parallax | Parallax only on a Hero or a Section with a background image; give the block after a pinned one a background. |
Rules: entrances on two or three sections at most, never on the first block (it is on screen when the page opens). Prefer rise or fade.
Motion blocks and props
- Stats
countUp: true: a figure that is one number with an optional prefix and suffix (94%, $2.4M, 12,500+) counts up; anything else stays as written. - Logo strip and Testimonials
marquee: true: the row scrolls with a Pause scrolling button. Use it for six or more items. - Carousel
autoplay: true(withinterval5, 7 or 10): the slides advance with a Pause slides button. Leave it off unless a person asks; never put content everyone must read in a carousel. - Hero and Section
backgroundVideo: an .mp4 or .webm from the media library, andbackgroundImageis required as its poster (the pre-publish checks fail without one). - Video
muted: truewithautoplay: true: a silent loop plays on its own when in view, only while motion is allowed. A video people watch (a how-to, a tour) keeps both off and gets captions (tracks) or atranscript(blocks.md, Video); a video with sound never plays on its own. - Scrollytelling: a process or story in three to six steps, each with
heading,text,imageUrlandalt. Without motion it is a list. - Lottie:
srcis a .json animation in the media library (upload_mediatakes it); give it aposterandaltunless it is decoration. - Model3D:
srcis a .glb or .gltf in the media library;altis required,posterrecommended.
Never invent media URLs: use list_media, or upload_media for a file you were given.
Scenes
list_modules marks a module block drawn by the module's own code as scene: true (the Globe is one). Use it like any module block: get_block_schema lists its settings under moduleBlocks with an example to copy into the layout, which hold the content (the Globe's places); the scene shows it, and the same content renders as HTML for everyone who sees the poster. A scene runs only when the motion level is on.
Check your work
validate_layout before saving, then get_entity with checks or submit_for_review: the motion checks flag a background video without a poster, a video file other than .mp4 or .webm, a Lottie without a poster, a step image or 3D model without alt text.
Spillway 0.1.24