Turn [the numbers or data I point to] into a 3D infographic with three.js: a small 3D chart that builds itself when it comes into view and shows the details when you point at it. Scene: one bar (or column) per data point on a thin base plate, built from boxes, with soft studio lighting, a light environment map for subtle reflections and soft shadows on the plate. Only use colours from my palette, with the highest value highlighted. The camera looks at the chart from a slightly raised three-quarter angle. Behaviour: when the chart comes into view, the bars grow from zero to their value one after another with a soft ease-out. Pointing at a bar (raycaster) lifts it a little, highlights it and shows its label and value in an HTML tooltip that follows the bar (project the top of the bar to screen coordinates every frame). The whole chart turns a few degrees with the mouse. The labels and values stay in HTML (also as a hidden table for screen readers), never baked into the 3D. Only render while visible, cap the device pixel ratio at 2. With prefers-reduced-motion, show the finished chart without growing. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
Text scramble reveal
Letters churn through random characters and lock into place one by one, like a word being decoded.
This is the real effect. Scroll or move your mouse inside the frame to try it.
Add a text scramble reveal to [the heading I point to] (letters churn through random characters and lock into place one by one, like a word being decoded). Behaviour: when the heading comes into view, every letter starts as a random character. From left to right, each slot keeps changing to another random character a few times, then locks to its real letter with a small stagger (about 40 to 60ms per letter, the whole heading in under a second and a half). Use random characters of roughly the same width as the final letter, so the text does not jump around or change its number of lines while it decodes. While decoding, the unlocked characters are shown at lower opacity, locked ones at full opacity. When everything is locked, a text cursor blinks twice at the end and disappears. Tech: plain JavaScript and requestAnimationFrame, no library. Keep the real text in the HTML and set aria-label, so screen readers and search engines read the final words, not the noise. Reserve the width so nothing shifts. Run it once per page view. With prefers-reduced-motion, show the final text immediately. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
What it is
A word that decodes itself. Every letter flips through random characters and then locks, left to right, until the real word is there.
When it works
For a short wordmark or headline on a brand that has something to do with tech, code or AI. The Living with Prompts logo builds itself like this on page load. Keep it to a few words, it is a moment, not a reading experience.
Get it right
- Use random characters about as wide as the real letter, so the word does not wobble.
- Keep the whole thing under a second and a half.
- Put the real text in an aria-label. A screen reader should never read the noise.
Also called
- Decoding text effect
- Text shuffle animation
- Hacker text reveal
- Letter scramble intro
More effects.
All effects- 3D and motionPrompt
- 3D and motionPrompt
Replace the icons in [the section I point to] with 3D icon illustrations: tiny looping 3D scenes made with three.js, one per item. Scenes: for every item, design a small object that fits its meaning, built from simple geometry (cylinders, cones, tori, boxes) and tilted a little toward the viewer, with one calm looping motion. For example: a light bulb that switches on, a chat bubble with three typing dots, a padlock that clicks shut. Look: one shared soft studio light (hemisphere light plus one directional light) and only colours from my palette. Transparent canvas background so the scenes sit on the section colour. The headings and text stay in HTML. Behaviour: every scene loops calmly, no fast spins. The objects turn a few degrees toward the mouse. Render all scenes with one renderer and canvas (browsers limit the number of WebGL contexts), only animate while visible, cap the device pixel ratio at 2. With prefers-reduced-motion, show one still frame. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
- 3D and motionPrompt
Add a fly-through words background to [the section I point to]: words and small points of light fly toward the viewer through a calm space scene. Words: take them from this website itself. Read the real topics, services or benefits from the site's pages and headings and use short ones (one or two words each). Never make up placeholder words. Visual: a 2D canvas behind the content. The background looks like space with depth: a base colour, two or three large, soft glows (radial gradients) and a field of tiny static stars, only in colours from my palette, all drawn once to an offscreen canvas and shifted slightly with the mouse for parallax. On top, small points and the words are placed at random positions in 3D space in front of the camera. Every frame they move closer; project them to the screen with a simple perspective divide (screen = centre + position / depth * focal length). Size and opacity grow as they come closer, points leave short streaks. Words use my heading font. When something passes the camera it respawns far away. Behaviour: a calm base speed. The vanishing point follows the mouse a little (eased). Keep it light: no WebGL, no images, device pixel ratio capped at 2, pause when off screen. Put the headline in HTML on top and keep it readable. With prefers-reduced-motion, show a still frame. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.