Component packs › Darkroom › Sky Headline

Sky Headline

A word set huge in the sky of a real photo, behind the subject: the sky is keyed out in the browser, so the letters rise from behind it and drift with the pointer.

Sky Headline is a hero image from Darkroom, a component pack with 7 effects: Seven photo effects that work on real photos, not on drawings of them. Price: $2 for the whole pack.

Built with: in-browser sky key, type behind subject, pointer depth.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Sky Headline props

PropTypeDefaultDescription
lightboolean
autoplayboolean
srcstringPhoto with a clear sky above the subject.
wordstring
wordAtnumberWhere the letters end, as a share of the photo's height.
onReady(keyed: boolean) => void

Methods on the ref

Use it in React

import SkyHeadline from './SkyHeadline';

<SkyHeadline />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Darkroom

Good for: Image effect components.