Diagonal Marquee
A Framer code component that moves a row of objects along a diagonal line, one slot at a time. Each step accelerates fast, glides to a stop, holds briefly, and turns every object a few degrees — a rhythm sampled frame-by-frame from a reference motion study rather than approximated with a standard easing curve. Drop in your own images, or use the built-in placeholder art.
About this component
Diagonal Marquee lays your objects out along a single diagonal path and advances them by exactly one slot per cycle. Unlike a continuous scrolling marquee, it moves in discrete steps: a sharp ramp up, a long ease-out, then a short pause before the next step. Every object also rotates by a fixed amount per step, so the arrangement keeps reshuffling as it travels.
The component renders onto a fixed 1920 × 1080 stage that scales to cover whatever frame you place it in, so the composition holds its proportions on any screen size. Objects repeat as many times as needed to fill the diagonal, and positions wrap off-screen, giving a seamless infinite loop with no visible seam.
Animation runs on a single requestAnimationFrame loop that writes transforms directly to the DOM — no React re-renders per frame, no animation library dependency. A decorative ribbon shape sits behind the objects and can be recolored or switched off. Visitors with "reduce motion" enabled see a static composition instead.
Key features
Step-based motion — objects advance one slot per cycle instead of scrolling continuously, with configurable move and hold durations.
Video-matched easing — a sampled speed curve (fast ramp, long tail) reproduces the reference motion; a standard cubic in-out is available as an alternative.
Per-step rotation — every object turns by a set number of degrees each step, using the same easing as the movement.
Bring your own art — add any number of images with individual widths and start rotations, or fall back to eight built-in SVG objects.
Infinite seamless loop — the sequence auto-repeats and wraps off-screen; no duplicate-and-reset seam.
Responsive cover scaling — a 1920 × 1080 stage scales via
ResizeObserverto fill any frame without distorting the layout.Depth ordering — objects further along the path stack above earlier ones automatically.
Decorative ribbon layer — optional background shape with its own color control.
Performance-minded — one rAF loop, direct transform writes,
will-changehints, zero runtime dependencies beyond React and Framer.Accessible by default — honors
prefers-reduced-motion, and can be paused on the Framer canvas while you design.
If you want to see the API references and all that, please click here.
View API reference
Details
Category
Carousel
Media
Image
Views
1.1k
Copies
234
Paste directly onto your Framer canvas.
