Component · Text animations

CSS 3D text you can tilt

by Informeek Studio 11 November 2026
Live Drag the letters around, then tap them to squash

The prompt

Create CSS 3D text for a game studio playtest page. Sunny yellow page (#ffd84d) with faint concentric rings. A dark violet pill (#2a145f) with a pink dot and "Pocket Comet Games" in yellow uppercase. The headline "Play loud" on two lines, uppercase, weight 900, 214px on desktop and 21vw on phones, line height 0.86. Build the depth from 24 stacked copies of the text behind a white front face (#fffdf6 with a faint pink gradient), each pushed back by translateZ of 0.011em, coloured from hot pink (#ff4f8b) just behind the front to deep violet (#4b1fd6) at the back, inside a 1100px perspective with preserve-3d, plus a soft oval shadow underneath. The block always leans 9 degrees on X and -14 on Y. A mouse tilts it up to 34 degrees on X and 46 on Y, dragging with a finger or mouse rotates it further, and when left alone it sways in a slow figure of eight; all of it eases through a spring with 0.06 stiffness and 0.78 damping. A click or tap without dragging squashes and stretches the text over 650ms. The block is focusable: arrow keys tilt it, Enter squashes it. Below, a line about the Friday playtest and a violet "Join the playtest" button with a pink 5px drop. Hide the copies from screen readers and keep a still lean 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

  1. Copy the prompt with the button above.
  2. Paste it into your AI site builder, or any AI chat that writes code.
  3. Make it yours by changing the two words and the pink to violet depth colours.

About this CSS 3D text

Real CSS 3D text needs no 3D library. This headline is two dozen copies of the same words stacked one behind another a fraction of a pixel apart, coloured from hot pink to deep violet, with a clean white face on the front. Tilt the block and the copies fan out into a solid extrusion, the way a toy letter looks when you turn it in your hand.

Moving the mouse leans the letters toward it, dragging spins them further, and leaving them alone sets off a slow figure of eight sway. Every movement passes through a spring, so the text overshoots a touch and settles. A quick tap gives it a squash and stretch bounce, which suits a games studio far better than a polite hover.

Why the prompt works

  • It gives the stack. Layer count and spacing in em keep the depth in proportion at every size.
  • It sets a resting lean. A fixed tilt means the depth is visible even before anyone moves.
  • It covers every input. Mouse, drag, tap and arrow keys all move the same spring.

Where to use it

Game and toy brands, event posters, music releases and playful campaign pages with two or three bold words.

The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.

Keep exploring

More prompts like this

See the collection →
Live
Component · Text animations

Echo text effect headline

Live
Component · Text animations

Blur text reveal headline

Live
Component · Text animations

Text scramble decrypt effect