Text Effects · Component Template
Kinetic Type
A band of heavy type tied in a 3D knot, with the words running around it without end. Drag to spin it, re-tie it, or type your own words.
Live demo
Type your own words, drag to spin the knot, or switch it to Coil or Wave.
The Prompt
Build a piece of kinetic typography that is a real object. A wide black band, printed with a phrase in heavy white capitals, is tied in a trefoil knot in the middle of the screen, and the words run round it without end. Its reverse side is vermilion, and because the band rolls a little as it travels, the reverse flashes through. A thin cobalt ring carrying a second, smaller line circles the whole thing the other way. The sculpture turns slowly, turns faster when thrown, and can be re-tied: choose Coil or Wave and the band unknots and flows into the new path. The visitor can type their own words and watch them go round. It is two strips of triangles and one texture. The studio is fictional: Loop & Co. Default phrase: "We make brands move". Match my project's existing stack, conventions, and design tokens. If there are none, output a single HTML file with inline CSS and JavaScript and zero dependencies. LOOK Flat, graphic, poster-like. Three colorways, each a ground, a main band with its lettering and reverse, and a ring with its lettering and reverse: - Ink: ground #f2efe9; band #121212, letters #f2efe9, reverse #ff4a1c; ring #2a3cff, letters #ffffff, reverse #121212. - Acid: ground #0d0d10; band #c8ff3a, letters #0d0d10, reverse #ffffff; ring #ffffff, letters #0d0d10, reverse #c8ff3a. - Blush: ground #ffd6de; band #e3122d, letters #ffd6de, reverse #3b0a12; ring #3b0a12, letters #ffd6de, reverse #e3122d. Top left the studio name, top right "Drag to turn it." Bottom center a dock: a text field for the phrase (upper case, weight 700), a segmented control Knot / Coil / Wave, a Speed slider that goes negative, and three two-tone swatches. Center the dock with left 0, right 0, fit-content width and auto margins (left 50% with a shift would cap it at half the stage), and under 900px tighten its gaps to 12px and the slider to 72px so it stays on one row down to 760px. The interface re-colors with the colorway. THE LETTERING One canvas of 2048 × 256, two rows of 128. In each row set the line in capitals at weight 800, 96px, followed by a spaced slash, and repeat it a whole number of times, scaling horizontally by whatever small factor makes the repeats fill 2048 exactly. Upload with mipmaps, anisotropic filtering where available, and horizontal repeat. Remember the scale factor: the geometry needs it. THE GEOMETRY A grid of 900 × 4 quads with two attributes: u from 0 to 1 along the band and v from −1 to 1 across it. The vertex shader does the rest. - Paths, with t = 2πu: Knot (sin t + 2 sin 2t, cos t − 2 cos 2t, −sin 3t) × 0.62; Coil, a spring wound five times round a ring: radius 1.9 + 0.55 cos 5t, height 0.6 sin 5t; Wave (2.35 cos t, 0.8 sin 3t, 1.9 sin t). Changing shape blends the two paths over about a second. - Frame: the tangent by central difference; the width direction is tangent × (direction from the origin to the point), so the band lies on its path facing outward; the normal is their cross product. Then roll the frame about the tangent by 0.5 × sin(2t + 0.35 × time). - Position = path + width direction × v × half-width (0.36 for the band, 0.13 for the ring). - The ring is a circle of radius 2.7, 0.98 or 2.62 for the three shapes, tilted by 0.95, 1.5 or 1.2 radians; these blend too. - Texture coordinate along the band = −u × repeats + flow. One strip of texture must cover sixteen band-widths divided by its scale factor for the letters to keep their proportions, so repeats = round(path length / that), with the path lengths measured once in JavaScript from the same formulas. A whole number keeps the join invisible. THE FRAGMENT Front or back by whether the normal faces the eye. Front: band color, or letter color where the texture says ink (leave a 4% margin at each edge). Back: the reverse color, no lettering. Multiply by 0.84 + 0.16 × |normal · light| for a little form, and fade up to 34% toward the ground color over the far side of the sculpture, so depth reads without shadows. Use the context's own antialiasing for edges. BEHAVIOR - Flow advances by the speed setting each second (default 0.06 of the path, range −0.2 to 0.2); the ring runs the other way at 1.6 × the rate. - The camera orbits at 0.16 radians a second. Dragging turns it directly, 0.007 radians per pixel, and release leaves it spinning with the drag's velocity, decaying at 2.2 per second. Pitch is limited to ±1.2. - Camera distance is 4.3 / (tan(half field) × aspect), kept between 8.3 and 12.5, so on a tall screen the knot fills the width and the ring is allowed to run off the edges. - Typing redraws the texture on every keystroke. ACCESSIBILITY The canvas is hidden from assistive technology; a visually hidden h1 holds the phrase and follows the field. The field is labeled "Your words"; shapes and colors are labeled radio groups; speed is a labeled range. With prefers-reduced-motion the words stand still on the band and nothing turns by itself; dragging still turns it and shape changes are immediate; draw only when something changes. If WebGL is unavailable, set the two lines as two crossed, rotated bars of type in the same colors. NEVER - Never scroll flat text and skew it. The band must pass in front of and behind itself. - Never let the letters stretch when the shape changes; recompute the repeats from the path length. - Never print on the reverse side. The flash of plain color is what makes the band read as a strip of material. - No images, no fonts, no libraries, no network requests.
- CopyThe full prompt, one click.
- PasteInto Cursor, Claude Code, or any agent.
- CompareAgainst the live demo above.