Component · Text animations

Wavy text animation headline

by Informeek Studio 11 November 2026
Live Run the pointer or a finger along the headline to make a wave

The prompt

Create a wavy text animation for a surf school hero. Pale seafoam page (#e9f5f1 to #dff0ee) with a soft warm sun glow (#fff3d6) in the top right. A white pill with a tiny teal wave icon and "Tidewell Surf School, Porthkennack". Headline "Ride the long swell", 136px on desktop and 46px on phones, weight 800, deep teal ink (#0e3b4d). Split it into letters inside no-wrap word spans and move every letter each frame with requestAnimationFrame. Its lift is the sum of three waves measured along the headline: a gentle ripple of 0.035em, a travelling swell of 0.2em that rolls left to right every 4.6 seconds, and a bump of 0.16em under the pointer that fades in while it moves and out 0.9s after it stops. Rotate each letter by the wave slope, capped at 9 degrees, and tint it from ink to teal (#138a8a) to coral (#ff6f59) as it rises. Under the headline, an SVG line drawn from the same function so the water matches the letters. Then a short line about morning lessons with boards and wetsuits, a coral "Book a lesson" button and a white "Today's tide times" button. Pointer and touch both work, with touch-action pan-y so the page can still scroll. Keep the sentence in an aria-label, pause when the tab is hidden and leave a still, gentle curve 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 headline and the three wave colours to match your brand.

About this wavy text animation

This wavy text animation was built to behave like the sea rather than a metronome, so no two seconds of it look quite the same. A small ripple runs through the headline all the time, a bigger swell rolls across it every few seconds, and moving the pointer or a finger along the words raises a wave of your own that follows you and settles when you stop.

Letters lean with the slope of the water and change colour as they rise, from deep ink to teal to coral at the crest, so the eye follows the swell across the line. A thin line under the headline is drawn from the same wave, which ties the type and the water together.

Why the prompt works

  • It adds the waves together. Ripple, swell and pointer bump are separate, so each one can be tuned.
  • It caps the tilt. Nine degrees keeps letters from crashing into their neighbours.
  • It keeps the page scrollable. Pan-y touch action lets a thumb make waves without trapping the scroll.

Where to use it

Surf, sailing and swimming brands, summer campaigns, kids products and any light hearted hero that wants motion without a single image.

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

CSS 3D text you can tilt

Live
Component · Text animations

Paper fold text effect

Live
Component · Text animations

Echo text effect headline