Services
Hover Preview Services
NewA big list of services: hovering a row floats its picture at the pointer, leaning with every move and wiping up to the next one.
npx motionsnack add hover-preview-servicesCustomize
<HoverPreviewServices />Props
13 properties
| Property | Type | Default | Description |
|---|---|---|---|
| primaryCta | { label: string; href?: string } | { label: 'Start a project', href: '#' } | Filled button next to the headline. An empty label hides it. |
| services | { title: string; description?: string; tags?: string[]; image?: { src: string; alt?: string }; href?: string }[] | 5 sample services | One row each. The picture floats at the pointer while its row is hovered; on touch screens it sits in the row. |
| background | string | white / black in dark | Base colour of the section. |
| buttonColor | string | near-black / near-white in dark | Fill of the filled button. |
| buttonTextColor | string | white / near-black in dark | Text colour of the filled button. |
| buttonRadius | number | fully round | Corner radius of the buttons in px. |
| kicker | string | 'Services' | Small label above the headline. Leave empty to hide it. |
| title | string | 'What I can take
off your plate' | Headline. A line break splits it. |
| subtitle | string | 'From the first sketch to the last frame. Hover a service to see the kind of work behind it.' | Paragraph next to the headline. 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. |
| previewWidth | number | 340 | Width of the floating picture. |
| tilt | number | 1 | How much the picture leans with the pointer's speed. 0 keeps it straight. |
| follow | number | 0.16 | How closely the picture follows the pointer. Lower is lazier. |
About Hover Preview Services
A services section with a split header above a list of big service titles, each with a short line and a few badges next to it. Hovering a row lifts it onto a soft surface, dims the others; a picture appears at the pointer, eases after it and leans into the direction it moves, faster moves tilting it further. Moving to another row wipes the new picture up over the old one with a slow zoom. On touch screens there is no hover, so each row shows its picture as a small thumbnail instead. Rows can link to a detail page. Picture width, tilt and how closely it follows are props.
What's included
- Picture that follows the pointer
- Tilt from the pointer speed
- Vertical wipe between pictures
- Dimmed rows and simple badges
- Thumbnails on touch screens
- Optional link per row
- Light and dark look
- Respects reduced motion
- Type
- Animated services section for Next.js
- Library
- Sections · Services
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-11-21
- Install
npx motionsnack add hover-preview-services