Component · Buttons

Glowing buttons with orbiting comets

by Informeek Studio 11 November 2026
Live Hover the buttons, then book a night

The prompt

Create the call to action for a fictional observatory event on a starry page (#05060f): a gold (#ffd27a) uppercase label "Nightjar Observatory", the serif heading "Watch the Perseids from the dark-sky dome" and one line with the date, time and what is included. Below, three 54px buttons: a pill "Book a sky night, £18" on a deep indigo gradient (#2a2c5e to #12132e) with the price in gold, a ghost pill "See the sky map", and a 54px rounded square bell button labelled "Remind me the day before". Give every button a canvas 12px larger on each side that draws a faint 1px track along its rounded outline and comets that travel around it: the primary has a gold comet and an ice blue (#9fd8ff) one half a lap apart, the others one each. Compute positions along the straight sides and corner arcs, draw each tail as 26 short segments that thicken and brighten towards the head with additive blending, and finish with a white-hot radial head. A lap takes 4.6s at rest and 1.7s on hover or keyboard focus, when the tails also grow; a press kicks the speed up three times and flashes the head. Booking swaps the label to "Booked, see you at 10 pm" and a status line confirms each action. On phones the primary goes full width. Reduced motion holds the comets still.

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 choosing comet colours from your own brand and changing the event copy.

About these glowing buttons

For an observatory open night, each glowing button carries its own light around with it: small comets with fading tails travel along each outline, two on the main booking button and one on each of the others. At rest they drift round in under five seconds, and when you hover or tab to a button they speed up, stretch their tails and brighten, which makes the focused button unmistakable.

Each comet is drawn on a canvas just larger than its button. Its position is worked out along the straight edges and the rounded corners, so it follows a pill and a rounded square equally well, and the tail is a chain of short strokes that get brighter towards the head. The buttons themselves stay plain HTML, so they work with a keyboard and screen reader exactly as normal.

Why the prompt works

  • It explains how to follow the outline, straight sides plus corner arcs, so comets never cut corners.
  • It gives lap times for rest and hover, which set the mood.
  • It describes the tail in segments with additive blending, the source of the glow.
  • It writes the event copy and every button state, including the booked label.

Where to use it

Event bookings, launch pages, space and science brands and any dark hero with one main action. Give the primary button two comets and the rest one, so the hierarchy stays clear.

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 · Buttons

Six CSS animated buttons

Live
Component · Buttons

Specular lacquer buttons

Live
Component · Toggles

Tactile lever toggle switches