Catalogue
Motion
Thirteen ways for a headline to arrive and twenty-four transitions in four families, with the pace and the shutter that set how they feel.
Headlines
TYPE.draw(ctx, t, { lines, x, y, size, family, weight, style, at, out, pace, emphasis }) (type.js) draws how the words arrive and leave: one style per film, a pure function of t like everything else. There are thirteen styles: rise, focus, settle, track, wipe, cascade, weight, split, flap, type, swap, odometer and decode. An emphasis marks the claim’s one word, and a pace sets the speed. Each still is a third of the way in:
Transitions
Twenty-four, on the timeline between scenes, in four families:
- Quiet:
fade,dip,blur,wipe. - Move:
push,cover,split,stripes,snap(a cut on the move, the two scenes’ speeds matched where they meet) andwhip(a whip pan). - Depth:
zoom,window(a card opening into the next scene),zoomblur(a dive, the speed drawn in),flip(the frame turns over like a card),cube(the next face of a box) andpage(a page curling off its corner). - Reveal:
iris(from a click, or a portal through a letter’s counter),shape(through the product’s own mark),frost(a pane of glass sliding across),sweep(a line in the accent),tiles,ripple(from where the cursor clicked),halftone(dots in the accent) andliquid(one scene melting into the next).
Eight of them are fragment shaders (whip, zoomblur, liquid, ripple, halftone, flip, cube, page): what a 2D canvas cannot draw, a displacement, a noise front, a surface in perspective. They share one WebGL2 context a page, are pure functions of their progress like the rest, and return the leaving scene exactly at 0 and the arriving one exactly at 1. A cut made of them costs about twice a 2D one while it lasts (half a second of reel.html: 93 s with cube, 50 s with push) and nothing before or after.
studio/transcheck.mjs plays every transition on the stage and holds each to the pixel: its first frame is the scene it leaves, its last the scene it brings, both ways, and its shader compiles.
Pace and shutter
- Pace is a factor for the headlines, the camera’s springs and the length of a cut: calm 0.8, measured 1, brisk 1.25.
- Shutter is how many degrees of each frame the motion blur gathers: 360 (the default, the smoothest), 270, or 180, a film camera’s, crisper, at the same cost. See Rendering.