Component · Animated backgrounds

Lighthouse animation in sea fog

by Informeek Studio 11 November 2026
Live Move to turn the beam, click to flash

The prompt

Build a lighthouse animation for a headland distillery as one WebGL fragment shader at 60% resolution. Paint a teal (#26454f) to navy (#061021) night sky, rolling fog from layered noise, a dark sea with moving glints, and a headland on the right with a banded lighthouse and a small stone warehouse with lit amber windows. The lamp throws two opposite beams that turn once every ten seconds. Treat the beam angle in 3D: horizontal length follows the cosine, so a beam shortens as it swings towards you, while its width and brightness grow with the sine, and the lamp flares into a wide bloom (#ffe6ad) when a beam faces the viewer. Light the fog and sea under the beams. The pointer turns the beam towards it, easing the short way round; a click or tap fires an 0.8s flash. After 2.5s idle it goes back to its ten second turn. Dim the scene behind the copy. Copy, left aligned on desktop: an amber label "Gannet Head Distillery", an 88px serif headline "Aged where the lamp still turns" with "still turns" in pale gold, one line and two buttons, a gold (#ffd98f) "Buy the 12 year old" and an outlined "Book a warehouse tasting". Add a "Fl W 10s" chart note on desktop. Fall back to a CSS conic beam without WebGL and draw one frame 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 light character from ten seconds to your own lighthouse.

About this lighthouse animation

A lighthouse animation lives or dies on the beam. A flat wedge rotating like a clock hand looks wrong, because a real beam turns in three dimensions. Here the lamp throws two opposite beams that turn once every ten seconds. As a beam swings away to the side it grows long and thin across the fog, as it swings towards you it shortens and widens, and when it faces you the whole lamp blooms. That one detail is what makes it feel like standing on the shore.

The rest of the scene is quiet. Fog rolls across a teal and navy sky, the sea catches glints where the light falls, and the distillery warehouse glows beside the tower, where the casks sit breathing in the sea air. Move the cursor and the lamp turns to point at it, easing the short way round; click and it fires a flash. Left alone it returns to its ten second turn, and the chart note in the corner gives the light its proper character.

Why the prompt works

  • It explains the 3D trick, length by cosine and width by sine.
  • It lights the fog, so the beam is only visible where there is something to catch it.
  • It eases the angle the short way round, so steering never spins backwards.
  • It keeps the copy on clear sky.

Where to use it

Coastal distilleries and breweries, seaside hotels, sailing schools and any brand about guidance or safety.

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 · Animated backgrounds

Animated gradient background in temper colours

Live
Component · Animated backgrounds

Guilloche pattern background

Live
Component · Animated backgrounds

Wavy lines background with plucked strings