Create a particle text effect for a music festival line-up card. Midnight page (#070a1f). Header with "Halcyon Weekender" in white and "14 to 16 August" on the right. Below, a 24px rounded stage (radial gradient from #141a4a at the bottom to #070a1f, 1px #1a2050 border, 380px tall on desktop and 190px on phones) holding a canvas. Draw a word in heavy system font on an offscreen canvas, sample its pixels on a grid of 3 to 5px and turn each filled point into a 1.7px square particle (15% at 2.6px) in cyan #6ee7ff, violet #a78bfa, pink #ff7ad9, gold #ffd36e or white, drawn with lighter blending. Particles spring toward their target with 0.045 stiffness and 0.84 damping. The pointer pushes particles away within 90px (60px on phones), harder while pressed; set touch-action none on the stage so a finger can drag through the letters. Three pill buttons Fri, Sat and Sun switch the word between LISTEN, GATHER and DANCE, giving every particle a random kick before it flies to its new place; the active pill gets a cyan to violet to pink gradient. Words also change on their own every 3.6 seconds when nobody has touched the card for 7 seconds. Use devicePixelRatio capped at 2, pause when hidden, announce the day and word in an aria-live region and place particles straight on their targets for reduced motion.
Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.
Use it in three steps
- Copy the prompt with the button above.
- Paste it into your AI site builder, or any AI chat that writes code.
- Make it yours by swapping the three words and the festival colours for your own event.
About this particle text effect
A particle text effect builds a word out of thousands of tiny dots that behave like something alive. On this festival card the dots spell the mood of each day, and moving the pointer or a finger through them pushes them aside like a hand through sand. Pick another day and every dot gets a little kick before it flies across to its place in the next word.
The word is drawn once on a hidden canvas, then its filled pixels are sampled on a small grid to give each particle a home. A spring pulls each one back, with enough damping that the letters settle rather than jitter. The colours mix cyan, violet, pink and gold with additive blending, so dense areas glow brighter on their own.
Why the prompt works
- It explains the sampling. Offscreen text plus a grid gap gives the right number of particles on any screen.
- It gives the physics. Stiffness, damping and push radius are the numbers that decide the feel.
- It keeps phones in mind. Touch action none and a smaller radius make dragging work under a thumb.
Where to use it
Event and festival sites, launch countdowns, gaming pages and any hero where a single word has to stop people scrolling.
The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.