Component packs › Darkroom › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
light | boolean | ||
autoplay | boolean | ||
src | string | Photo with a clear sky above the subject. | |
word | string | ||
wordAt | number | Where the letters end, as a share of the photo's height. | |
onReady | (keyed: boolean) => void |
replay(): voiddestroy(): voidimport SkyHeadline from './SkyHeadline';
<SkyHeadline />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Image effect components.