Kit
Components and helpers for shots, imported from @intentface-launch/core/kit.
import { … } from "@intentface-launch/core/kit".
The product's UI
| Tool | What it does |
|---|---|
Capture | Plays a captured frame sequence, laid out at the capture's CSS size. For the product's own motion. |
Snapshot | Rebuilds a saved page from its HTML and CSS, sharp at any zoom. animate moves rows, pills and text per frame; api.isolate and api.hide split it into layers; api.textRects gives the boxes of words or characters in the page's own layout, api.type shows a partly typed value with a caret in the product's field, and onLoad measures before the first frame is let go. |
mark, markRect | A recorded mark, or the box around one or more marks, in content pixels. |
measureSnapshot | Measures an element in a saved snapshot when the video loads, so it follows a recapture. |
useProductLook | The product's fonts, colours and radii from a snapshot, for text set outside it. |
BrowserWindow | Minimal browser chrome around product UI. |
Clip | Plays a video file, or another video's render, frame exact. |
Camera and cursor
| Tool | What it does |
|---|---|
Camera | Pans and pushes between keyframed views. Keys can name marks; travel rounds corners instead of stopping; cut: true jumps to a view on its frame, a cut inside the shot. |
cameraAt, useCameraView, frameRect, fit | The camera's view at a frame, and views that fit a rect or the whole content. |
Cursor | A synthetic pointer in content coordinates, constant size at any zoom. Clicks, drags, hovers. look="frosted" draws it as frosted glass that blurs what is under it, for glossy UI; look="glass" as clear liquid glass that refracts what is under it (bent in at the rim, magnified inside, the colours fringing), for material and shader shots. |
cursorKeys | Cursor keys that retrace a capture's pointer. |
cursorAt, cursorClicks, dragWindows | Where the cursor is, and the frames it clicks and holds. |
cursorSounds | A sound on every click, ready for a shot's sfx. |
dragValue | A value the cursor drags directly, springing from where it was let go. |
accelerate, brake | Items landing at reading speed then faster and faster, and the shot after that slows into its framing. |
Attention and depth
| Tool | What it does |
|---|---|
Focus | Blurs and fades everything outside a feathered area, like a lens focused on the subject. |
Spotlight | Dims everything except one rounded rect that can travel between elements. |
Lift | One element rises off the page with a shadow while the rest dims. |
Callout | A label with a leader line to what it names. Readable at any zoom. |
MotionBlur | Per-layer motion blur over a range of frames, as in After Effects. |
areaAt, toScreen | An area eased between stops, and a content rect as it lands on screen. |
Text
| Tool | What it does |
|---|---|
Slam | A word or phrase that lands on a frame with scale, blur and a fade, scaling about its baseline. Type on the beat. axes runs variable-font axes as it lands (letter by letter with axesEvery); cutOff marks a word the next cut interrupts, left out of the reading check. |
Reveal | Staggered reveal by line, word or character: rise, mask, blur-in or scale (about the baseline). |
useBaseline | Where a line's baseline sits in its box, for scaling your own type about it: about its centre, a line climbs the pixel grid a pixel at a time and judders. |
Typewriter | Characters one by one, with an optional caret. |
typingCadence, typingFrames | Uneven, human typing times, and how long typing takes. |
splitText, revealTimes | Text split as Reveal splits it, and when each unit lands. |
Sweep | A title built in slices that sweep in with a glint of light. |
Count | A number counting up in tabular figures. |
Captions | Burned-in captions, clear of the safe area and platform UI. |
useFontsReady, useMeasureText, measureTextNow | Wait for a font and measure text with it. |
TextImage | A line of text drawn once as a picture (at scale, 4 by default) and laid exactly where the text would be. A camera can keep pushing in on it and it scales smoothly; DOM text under a slow push steps a pixel at a time. Declared for check; declare={false} inside a page flip or a curl, which copy it into every strip. |
picture, usePictures | Pictures drawn once on a canvas and kept as images every copy shares (the shaders add-on's textures use them too). |
UI motion
| Tool | What it does |
|---|---|
Swap | Content changing inside a container that changes shape: the old leaves fast, the new arrives once there is room. |
edges | A span whose leading edge rides a stiffer spring: tab indicators, pills, toggle knobs. |
stretch | Squash and stretch from velocity. |
rubberband | Resistance past a limit, like a scroll view pulled beyond its end. |
logLerp | Log-space interpolation for zoom and altitude. |
KeyChip | Keyboard shortcut chips that press down. |
Skeleton | A shimmering loading skeleton that hands off to the real content. |
Paper
| Tool | What it does |
|---|---|
PageFlip | An open book seen from above whose leaves turn frame by frame on turn (2.35: two leaves over, the third 35% of the way). Each leaf curls as it goes (the outer edge lifts and leads, the spine end lands first and the edge floats down last), is shaded across its bend and casts a soft shadow that tightens where it nears the page. A turn reads at about 2 beats on ease.inOut. |
papers | The papers a leaf can be. Light: film (clear plastic: what is beneath stays sharp; a sheen and a bright edge), vellum (frosted: beneath shows blurred, more the higher the sheet lifts, and a lifted sheet glows), parchment, paper (opaque but for a ghost of the other side's print). Dark: smoke (smoked film), graphite (dark frosted vellum), black (black paper). |
paperFor | A paper from how much light it lets through, 0 (opaque) to 1 (clear), between the presets ("dark" for the dark ones). Or override any preset: { preset: "vellum", seeThrough: 0.6, blur: 2 }. |
PageContent | A page is any React node, or art in layers, { layers: [{ depth: -2, node }, { depth: 0, node }, { depth: 5, node }] }: each floats depth px off the page and shifts in parallax as the page tilts, and the page redraws like e-ink once when a leaf lands on or off it (refresh, in frames; 0 for none: several read as flicker). |
A see-through leaf carries a copy of what is under it in every strip of its turn. Close up (3× zoom) that ran out and strips went missing from renders for a frame at a time: keep the paper free of texture, its blur light (1 to 2 px), and give a close-up's book only the pages in frame. A small book (under about 0.7×) wants thickness={0}: the page block's hairlines alias into dots.
Data and end cards
| Tool | What it does |
|---|---|
Bars | Bars growing to their values, counting up at their ends. |
LineChart | A line that draws on left to right, as data arriving. |
BeforeAfter | Before and after, split by a moving divider. |
SpeedRace | Lanes racing the same task; the fastest gets the accent. |
EndCard | A brand-neutral end card: logo, claim, CTA and URL, locked on the beat. |
SVG effects
| Tool | What it does |
|---|---|
DrawOn, dash | A stroke that draws on. |
Morph, morphPath | A closed path morphing into the next. |
MaskReveal | A wipe, circle, clock hand or shape revealing a layer. No filters, so safe over 3D. |
BlurIn | Arrives out of focus and sharpens. |
Goo | Shapes that merge like liquid as they approach. |
Glow | A soft glow around what is inside. |
Displace | Warps what is inside through seeded noise. |
useTiming | The eased progress of a timing at the current frame. |
Shaders
| Tool | What it does |
|---|---|
Shader | A fragment shader as a layer, painted from the frame. |
MeshGradient | An animated mesh gradient that does not band. |
NoiseField | Flowing noise through a colour ramp: smoke, aurora. |
LightGlow, LightLeak | A soft light, and a light leak drifting across. |
FilmGrain, Scanlines, Halftone, Dither | Texture over a shot. |
Tube, phosphors | A picture you draw with Canvas 2D (draw(ctx, frame, screen), at the tube's line count), shown on a modelled cathode-ray tube: phosphor that fades (phosphor: standard, slow, trails, or long for a scope's green tail), a beam that widens on highlights, an aperture grille, slot or shadow mask, curved glass, halation. Events on frames: power on (a line opening through snow) and off (collapsing to a fading spot), tune (a channel change: snow and a roll), degauss; snow, tape wear (jitter, a tracking band, smeared colour). The phosphor is computed by drawing the frames before, so draw must be pure. Text it returns is declared to check. For test cards, idents, teletext and 80s tape intros; Crt (three) puts live DOM on a lighter tube. |
Smoke | Smoke rolling in from an edge (from) until it fills the frame with color on progress 0 to 1: billowing, curling, its thin edge lit (light). An ending into black, a transition into a dark shot. Drive progress steadily: an ease in keeps it off frame for its first second. |
Flame | A jet of fire leaving a point: turbulent, flickering, white hot at the nozzle. tongues splits it into flames across a fan (a logo's rays catching fire), along colours it hot to cool as real fire burns, grow lights it. |
OilLens, oilDomes, oilShots | A logo seen through a moving lens of oil, after Apple Music's 2026 sting: per pixel, a ray refracts through a dome of oil by Snell's law, once per wavelength, onto the mark on a dark floor. The dome magnifies it, its steep rim splits white edges into spectral fringes, a dark studio's softboxes draw the rims, waves leave its edge, and the mark shows only where the dome has reached. oilDomes.tile grows an orb into an app tile (an icon), oilDomes.orb widens an orb over a wordmark; oilShots are the optics each used. ascii draws the picture as glyphs at the dome's front and while the mark builds in (amount, front, glitch, your own glyphs and font); tear tears the picture apart for a hard glitch exit (bands pushed sideways, a split into red, green and blue or your tint, dropped bands); optics.palette splits the fringes into your colours instead of the spectrum, with white staying white. It blurs its own motion across shutter. Ported from Travis Fischer's study (MIT). |
MiddleCard | A rounded card in the middle of the frame over a shader or clip: frosted glass blurring it (blur="card"), or a sharp window with the surround blurred and washed (blur="around"). Opens on at; content goes inside at the card's size. The hero template. |