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.
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.

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.

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.