Hero
Lens Strip Hero
NewA hero with an endless strip of photos that bulges towards you: photos swell in the middle and bend away at the ends.
npx motionsnack add lens-strip-heroCustomize
<LensStripHero />Props
22 properties
| Property | Type | Default | Description |
|---|---|---|---|
| images | { src: string; alt?: string }[] | 3 sample photos | Photos of the strip. They repeat endlessly; each keeps its own proportions. |
| primaryCta | { label: string; href?: string } | { label: 'Start a project', href: '#' } | Filled button. An empty label hides it. |
| secondaryCta | { label: string; href?: string } | { label: 'See the work', href: '#' } | Glass button. An empty label hides it. |
| badgeTag | string | '' | One short word in the chip of the badge. Leave empty for no chip. |
| badgeIcon | boolean | false | Small spark icon at the start of the badge. |
| title | string | 'Let's make something together' | Headline. |
| subtitle | string | 'A small studio for brands with something to say. Tell us what you are planning and we will get back within a day.' | Paragraph under the strip. Leave empty to hide it. |
| Button | ComponentType | built-in | Button component from the library for the filled button. Without one the section draws its own. |
| curve | number | 0.55 | How hard the strip bulges towards the viewer. 0 is a flat strip. |
| arc | number | 26 | How far the ends of the strip drop below the middle. Negative lifts them. |
| tilt | number | -2 | Rotation of the whole strip. |
| speed | number | 40 | How fast the strip travels. 0 keeps it still. |
| direction | 'left' | 'right' | 'left' | Which way the strip travels. |
| tileHeight | number | 300 | Height of a photo in the middle of the strip. Phones use 62 % of it. |
| gap | number | 16 | Space between photos. |
| tileRadius | number | 6 | Corner radius of a photo. |
| edgeFade | number | 0 | How much the photos fade out towards the ends of the strip. |
| grayscale | boolean | false | Photos in black and white. |
| draggable | boolean | true | Let the visitor drag the strip; it coasts on after the release. |
| scrollBoost | number | 0.6 | How much scrolling the page speeds the strip up. 0 turns it off. |
| reveal | boolean | true | Let the copy rise in and the strip bend into shape when the section scrolls into view. |
| background | string | '#000000' | Section background. |
About Lens Strip Hero
A hero built around one moving strip of photos. A badge and a headline sit above it, a paragraph and two buttons below. The strip travels sideways without end and is bent like a band over a barrel: a photo is largest in the middle of the screen, and as it leaves, it shrinks and its edges curve. The whole band can also sag in an arc and tilt a few degrees. It is drawn with WebGL, so the photos truly bend instead of just turning. You can drag the strip by hand and it coasts on, scrolling the page gives it a push, and when the section appears the flat strip bends into shape. Each photo keeps its own proportions.
What's included
- Endless photo strip with a true lens bend
- Curve, arc and tilt you can set
- Drag with inertia, push from page scroll
- Flat strip bends into shape on reveal
- Photos keep their own proportions
- Plain picture row when WebGL is missing
- Light and dark look, reduced motion respected
- Type
- Animated hero section for Next.js
- Library
- Sections · Hero
- Stack
- Next.js, React, Tailwind CSS, WebGL
- Added
- 2026-11-22
- Install
npx motionsnack add lens-strip-hero