Motion Clip
A short, silent looping clip for explainer graphics: plays inline, pauses off-screen and holds its poster for reduced motion.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { MotionClip } from '@/components/component-kit/items/motion-clip';
export function Example() { return ( <div className="aspect-[16/10] overflow-hidden rounded-2xl border"> <MotionClip src="/motion/deploy.mp4" poster="/motion/deploy.jpg" label="A push moving through build and deploy to a live URL" /> </div> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | — | MP4 (H.264) source of a short, silent loop. |
poster | string | — | Still frame shown before playback and to reduced-motion viewers. |
label | string | — | What the clip shows, announced to assistive technology. |
threshold | number | 0.25 | Fraction of the clip that must be visible before it plays. |
className | string | — | Classes for the video element. |