Slanted Photo Belt
What it does
A strip of squares (photos and quote cards) tilted -2deg, each square with its own small rotation, that runs on its own to the left in a seamless loop driven by gsap.ticker; every pixel of page scroll adds a burst of speed that decays back to cruising.
How it's built
| Category | gallery |
|---|---|
| Tech | gsap |
| Complexity | section |
| Performance cost | light |
| Mobile-safe | yes |
Rebuild it with AI
This component's prompt is part of the paid library. Below you can read how it starts; the full prompt, the exact structure, timing and easing an AI agent needs to rebuild the effect, unlocks with any paid plan, yearly or lifetime.
# Slanted Photo Belt — a tilted strip of photos and quotes that runs on its own
## Goal
Build a horizontal strip of square tiles (photos mixed with short quote cards) inside a band rotated **-2deg**, where every tile also has its own small rotation, so it looks like prints laid down by hand. **The strip runs left on its own in a seamless loop driven by a `gsap.ticker` callback, and every pixel the page scrolls adds a burst of speed that decays back to cruising.** Use it for team culture, community or behind-the-scenes sections. Do not use it for product images the user needs to inspect: they never stop.
## Tech
Vanilla HTML/CSS/JS with ES modules: `gsap` (npm) only, for its ticker and `gsap.set`. No ScrollTrigger: the scroll is read from `window.scrollY` deltas.
```js
import gsap from "gsap";
```
## Structure
```html
<div class="sb">
<div class="sb-space" aria-hidden="true"></div> <!-- 45vh -->
…
Premium prompt
Unlock this prompt, and every other one
From $99/year, or $139 once for lifetime access. Commercial license included.
See pricing Or start with the free set Already bought? Sign in
New components in your inbox
One email a week, only when new components ship, each with its live demo and prompt.