Media Heading
A heading whose letters are windows onto an image or looping video. The media drifts and slides under the letters with the pointer, and the heading arrives by rising, scaling, focusing, wiping or fading in, with an optional spotlight, outline and duotone tint.
pixikit.com/docs/effects/media-heading
Customize
Text
Tag
Media type
Reveal
Trigger
Duration1.10s
Stagger0.09s
Spotlight
Spotlight radius160px
Outline
Outline color
Outline width1.0px
Fill scale1.25
Parallax26px
Drift18px
Hover zoom0.00
Brightness1.00
Saturation1.00
Grayscale
Tint
Align
Weight700
Tracking-0.030em
Line height1.06
Text scale0.115
Props
29| Name | Type | Default | Description |
|---|---|---|---|
text | string | "Designed in the details" | The heading. |
tag | string | "h2" | The element the heading renders as. |
mediaType | "image" | "video" | "image" | Whether the source behind the letters is an image or a looping muted video. Videos stay paused for reduced motion. |
src | string | "" | The image or video URL. Without one, a built-in gradient shows through. |
poster | string | "" | A poster frame used while a video loads. |
reveal | "rise" | "scale" | "blur" | "wipe" | "fade" | "none" | "rise" | The entrance: words rise into place, letters grow in one after another, the letters draw together while the heading comes into focus, a wipe sweeps across, or the block fades up. |
trigger | "view" | "mount" | "hover" | "view" | When the entrance runs. |
duration | number | 1.1 | The entrance duration, in seconds. |
stagger | number | 0.09 | The delay between words for the rise reveal, in seconds. The scale reveal steps letter by letter at a third of it. |
spotlight | boolean | false | Dims and desaturates the media except for a pool of light that follows the pointer, or wanders without one. |
spotlightRadius | number | 160 | The radius of the spotlight, in pixels. |
outline | boolean | false | Draws a thin stroke around every letter. It shows before the entrance, so the media fills the outlines as it arrives. |
outlineColor | string | "" | The colour of the outline. Empty follows the surrounding text. |
outlineWidth | number | 1 | The thickness of the outline, in pixels. |
fillScale | number | 1.25 | How far the media is zoomed past the heading. The overscan is what parallax moves into. |
parallax | number | 26 | How far the media slides under the letters as the pointer moves, in pixels. |
drift | number | 18 | The size of the slow idle motion, in pixels. 0 holds the media still. |
hoverZoom | number | 0 | Extra zoom the media eases into while the pointer is over the heading. 0.1 is 10% closer. |
brightness | number | 1 | The brightness of the media. |
saturation | number | 1 | The saturation of the media. |
grayscale | boolean | false | Renders the media in black and white. |
tint | string | "" | Colours the media in one colour while keeping its light and shadow, like a duotone print. |
align | "left" | "center" | "right" | "center" | The text alignment. |
weight | number | 700 | The font weight. |
tracking | number | -0.03 | The letter spacing, in em. |
lineHeight | number | 1.06 | The line height. |
textScale | number | 0.115 | The type size as a share of the container width, so the heading stays responsive. |
className | string | None | |
style | CSSProperties | None |