Create a text loop animation for a coffee roaster hero. Warm cream page (#f4ece1). A small white pill chip (#fffaf3, 1px #e7d9c6 border) with a CSS coffee bean and "Batch 214, roasted Tuesday". Below, an extra bold line "Small batch beans for your" in dark brown (#2b1a10), 56px on desktop. Under it, a 3D word drum: eight brew methods (espresso, pour over, moka pot, cold brew, french press, aeropress, stovetop, filter jug) placed around a cylinder with rotateX steps of 45 degrees and translateZ set from the face height, inside a container with 900px perspective, overflow hidden and a vertical mask that fades the top and bottom. The front word is terracotta (#c8553d) at 112px; the words just above and below show at 38% opacity in #8a6f5c, the rest are hidden. Every 2.2 seconds the drum turns one step with a 1s cubic-bezier(.7,-0.25,.25,1.25) so it pulls back slightly and overshoots like a mechanical counter. Clicking the drum, Enter or Arrow Down turns it forward, Arrow Up turns it back. Add a dark "Pick your grind" button and a Pause button with a play/pause icon and aria-pressed. Announce the current sentence in an aria-live region, stop the timer when the tab is hidden and only step on click for reduced motion. On phones use 26px and 46px.
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 loading the drum with your own audiences, products or cities.
About this text loop animation
This text loop animation finishes a sentence in eight different ways. The words sit around a cylinder like the numbers on a combination lock, and every couple of seconds the drum turns one notch to bring the next brew method to the front. The words just above and below stay faintly visible, so you can see what came before and what is coming, which a simple fade between words never shows.
The movement has a little character. The easing curve pulls the drum back a touch before it turns and lets it overshoot before it settles, the way a mechanical counter clicks into place. A soft mask fades the top and bottom of the drum so it reads as a curved surface rather than a list.
Why the prompt works
- It gives the geometry. Eight faces, 45 degree steps and a radius worked out from the face height keep the drum round.
- It sets the rhythm. A 2.2 second interval and a 1 second turn leave time to read each word.
- It hands over control. Click, arrow keys and a Pause button make the loop optional.
Where to use it
Hero headlines that speak to several audiences, product pages with many variants and sign-up pages that list who the service is for.
The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.