Kit

Components and helpers for shots, imported from @intentface-launch/core/kit.

import { … } from "@intentface-launch/core/kit".

The product's UI

ToolWhat it does
CapturePlays a captured frame sequence, laid out at the capture's CSS size. For the product's own motion.
SnapshotRebuilds 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, markRectA recorded mark, or the box around one or more marks, in content pixels.
measureSnapshotMeasures an element in a saved snapshot when the video loads, so it follows a recapture.
useProductLookThe product's fonts, colours and radii from a snapshot, for text set outside it.
BrowserWindowMinimal browser chrome around product UI.
ClipPlays a video file, or another video's render, frame exact.

Camera and cursor

ToolWhat it does
CameraPans 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, fitThe camera's view at a frame, and views that fit a rect or the whole content.
CursorA 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.
cursorKeysCursor keys that retrace a capture's pointer.
cursorAt, cursorClicks, dragWindowsWhere the cursor is, and the frames it clicks and holds.
cursorSoundsA sound on every click, ready for a shot's sfx.
dragValueA value the cursor drags directly, springing from where it was let go.
accelerate, brakeItems landing at reading speed then faster and faster, and the shot after that slows into its framing.

Attention and depth

ToolWhat it does
FocusBlurs and fades everything outside a feathered area, like a lens focused on the subject.
SpotlightDims everything except one rounded rect that can travel between elements.
LiftOne element rises off the page with a shadow while the rest dims.
CalloutA label with a leader line to what it names. Readable at any zoom.
MotionBlurPer-layer motion blur over a range of frames, as in After Effects.
areaAt, toScreenAn area eased between stops, and a content rect as it lands on screen.

Text

ToolWhat it does
SlamA 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.
RevealStaggered reveal by line, word or character: rise, mask, blur-in or scale (about the baseline).
useBaselineWhere 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.
TypewriterCharacters one by one, with an optional caret.
typingCadence, typingFramesUneven, human typing times, and how long typing takes.
splitText, revealTimesText split as Reveal splits it, and when each unit lands.
SweepA title built in slices that sweep in with a glint of light.
CountA number counting up in tabular figures.
CaptionsBurned-in captions, clear of the safe area and platform UI.
useFontsReady, useMeasureText, measureTextNowWait for a font and measure text with it.
TextImageA 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, usePicturesPictures drawn once on a canvas and kept as images every copy shares (the shaders add-on's textures use them too).

UI motion

ToolWhat it does
SwapContent changing inside a container that changes shape: the old leaves fast, the new arrives once there is room.
edgesA span whose leading edge rides a stiffer spring: tab indicators, pills, toggle knobs.
stretchSquash and stretch from velocity.
rubberbandResistance past a limit, like a scroll view pulled beyond its end.
logLerpLog-space interpolation for zoom and altitude.
KeyChipKeyboard shortcut chips that press down.
SkeletonA shimmering loading skeleton that hands off to the real content.

Paper

ToolWhat it does
PageFlipAn 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.
papersThe 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).
paperForA 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 }.
PageContentA 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

ToolWhat it does
BarsBars growing to their values, counting up at their ends.
LineChartA line that draws on left to right, as data arriving.
BeforeAfterBefore and after, split by a moving divider.
SpeedRaceLanes racing the same task; the fastest gets the accent.
EndCardA brand-neutral end card: logo, claim, CTA and URL, locked on the beat.

SVG effects

ToolWhat it does
DrawOn, dashA stroke that draws on.
Morph, morphPathA closed path morphing into the next.
MaskRevealA wipe, circle, clock hand or shape revealing a layer. No filters, so safe over 3D.
BlurInArrives out of focus and sharpens.
GooShapes that merge like liquid as they approach.
GlowA soft glow around what is inside.
DisplaceWarps what is inside through seeded noise.
useTimingThe eased progress of a timing at the current frame.

Shaders

ToolWhat it does
ShaderA fragment shader as a layer, painted from the frame.
MeshGradientAn animated mesh gradient that does not band.
NoiseFieldFlowing noise through a colour ramp: smoke, aurora.
LightGlow, LightLeakA soft light, and a light leak drifting across.
FilmGrain, Scanlines, Halftone, DitherTexture over a shot.
Tube, phosphorsA 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.
SmokeSmoke 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.
FlameA 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, oilShotsA 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).
MiddleCardA 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.