LookMiddleweight
Typography as geometry
Text as a real 3D object.
Text as a real 3D object: letters you can light, extrude, shatter or fly a camera through. The words become the hero of the page. Text selection and screen readers need extra work.
- Breaks when
- font loading and licensingextruded text is heavy
- Also called
- TextGeometry, MSDF text, troika-three-text, kinetic type
Prompts
Headline you fly through
troika-three-text in Three.js: the headline in a variable weight (load the .woff), fontSize 1.2, letterSpacing −0.02, anchorX center, in ink. A camera dolly from z = 8 to z = 0.6 over the first scroll section, passing between the letters, with the text’s outlineWidth rising from 0 to 0.02 in mint as the camera gets close. Keep a visually-hidden <h1> in the DOM with the same words.
Extruded logo, honest weight
TextGeometry from a typeface JSON (converted with facetype.js): size 1, depth 0.25, bevel 0.03 with 4 segments, curveSegments 8. MeshPhysicalMaterial, clearcoat, environment map. Report the triangle count; if it exceeds 60k, lower curveSegments until it does not. Rotate ±15° with the pointer.
Letters to particles and back
Rasterize the word to a canvas, sample 20,000 lit pixels into target positions, and render them as GPU points (positions in a DataTexture, simulated in a fragment shader). State A: points at their glyph positions with a slight breathing; state B: curl-noise scatter. Toggle with a click, transition over 1.4 s with a cubic ease and per-particle delay from the x position.
Related
Resources · 3
- msdfgen: multi-channel signed distance fieldsThe generator behind razor-sharp WebGL text at any size, corners included.ChlumskyGitHub · codeOct 4, 2026
- three.js example: text geometrymrdoobsite · code · demoJun 15, 2026
- troika-three-textSDF text; the right answer for text in three.protectwiseGitHub · code · demoJun 14, 2026