Hero
Glass Split Hero
NewA full-bleed photo with a frosted glass panel over one half holding the headline, a paragraph and two buttons.
npx motionsnack add glass-split-heroCustomize
Background
<GlassSplitHero />Props
18 properties
| Property | Type | Default | Description |
|---|---|---|---|
| image | { src: string; alt?: string } | { src: '/sections/motion-02.jpg', alt: '' } | Picture behind the whole section. |
| primaryCta | { label: string; href?: string } | { label: 'Start a project', href: '#' } | Filled button. An empty label hides it. |
| secondaryCta | { label: string; href?: string } | { label: 'See our work', href: '#' } | Glass button. An empty label hides it. |
| buttonColor | string | near-black / near-white | Colour of the filled button. |
| buttonTextColor | string | white / near-black | Text colour of the filled button. |
| buttonRadius | number | fully round | Corner radius of the buttons in px. |
| badgeTag | string | 'New' | One short word in the chip of the badge. Leave empty for no chip. |
| badgeIcon | boolean | true | Small spark icon at the start of the badge. |
| title | string | 'Clear work
for bold brands' | Headline. Use \n for line breaks. |
| subtitle | string | 'Strategy, design and build in one small studio. We turn a rough idea into a site people remember and come back to.' | Paragraph under the headline. Leave empty to hide it. |
| showButtons | boolean | true | Show the two buttons. |
| Button | ComponentType | built-in | Button component from the library for the filled button. Without one the section draws its own. |
| side | 'left' | 'right' | 'left' | Which half the glass panel covers. |
| blur | number | 28 | Blur of the glass panel. |
| tint | number | 0.55 | How strongly the glass is tinted black. |
| imageMotion | boolean | true | The picture settles from a slight zoom when the section opens, then breathes slowly. |
| reveal | boolean | true | Let the panel slide in and the copy rise when the section opens. |
| background | string | '#000000' | Colour behind the picture while it loads, and the base of the glass tint. |
About Glass Split Hero
A hero for sites with a strong picture. The photo covers the whole screen; one half is a frosted glass panel with a soft tint, and on it sit the badge, the headline, a short paragraph and two buttons, lined up with the page column. When the section opens the panel slides across, the copy rises in and the photo settles from a slight zoom, then breathes slowly. On a phone the glass covers the lower part of the picture. Panel side, blur and tint are props. The section is dark only.
What's included
- Full-bleed photo with a frosted half
- Panel slides in, copy rises, photo settles
- Panel on the left or the right
- Blur and tint
- Glass over the lower part on phones
- Light and dark look, reduced motion respected
- Type
- Animated hero section for Next.js
- Library
- Sections · Hero
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-21
- Install
npx motionsnack add glass-split-hero