The marketing CMS where agents draft and people publish
Menu

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, marquee or backgroundVideo, and do not use Scrollytelling, Lottie or Model3D. Turning motion on is a brand decision for a person: update_brand_draft with { theme: { motionLevel: "subtle" } } changes only the draft, and publish_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):

KeyValuesNotes
entrancenone, fade, rise, scale, slide-left, slide-rightAs the block scrolls into view.
delaynone, short, medium
staggertrueBlocks with items (cards, images, logos, quotes, stats, questions, buttons, collection items): the items arrive one after another.
hovernone, lift, zoom, tiltBlocks with items; tilt only at expressive.
scrollnone, fade-out, pin, parallaxParallax 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 (with interval 5, 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, and backgroundImage is required as its poster (the pre-publish checks fail without one).
  • Video muted: true with autoplay: 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 a transcript (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, imageUrl and alt. Without motion it is a list.
  • Lottie: src is a .json animation in the media library (upload_media takes it); give it a poster and alt unless it is decoration.
  • Model3D: src is a .glb or .gltf in the media library; alt is required, poster recommended.

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

Was this page helpful?