Component · Hover and click effects

Lightning animation logo mark

by Informeek Studio 11 November 2026
Live Hover the mark to charge it, click for a strike

The prompt

Build a lightning animation around a logo mark for a synth maker called Ionfield Instruments. Near black page (#05060d with a #101a33 glow). Centre a 320px button holding an invented SVG mark: a dark metal hexagon outline (11 units wide in a 200 unit box) around a lightning bolt shape, with a cyan to blue gradient copy of the bolt on top whose opacity rises with charge. Below it, an 80px headline "Voltage you can play", a pale "Pre-order Coil 9" button and a ghost "Hear the spark" button. On a full screen 2D canvas with the lighter blend mode, draw crackling arcs that jump between two points on the hexagon or bolt outline using midpoint displacement, five at rest and up to fourteen when charged. Every 0.25 to 1.1s fire a bolt with two branches from the nearest outline point to the pointer when it is close, or to a random point in the air. Stroke every line three times: 9px wide blue (#3d7bff) at 7%, 3.6px cyan at 34% and a 1.3px white core, flickering. Hovering or focusing the mark charges it. Clicking it or Hear the spark sends five big branching bolts outward with a soft blue screen flash. After 2.6s idle the charge pulses on its own for touch screens. Cap devicePixelRatio at 2 and for reduced motion draw one calm frame of arcs.

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 swapping the bolt for your own mark and keeping the outline points.

About this lightning animation

A good lightning animation never repeats itself, and this one is generated fresh every frame. Small arcs crawl and jump around the outline of the Ionfield mark, a hexagon around a bolt. Move close and branching bolts reach out toward your cursor. Hover the mark and it charges, with more arcs and a brighter core; click it and five big bolts tear outward while the page flashes blue for a moment.

Every bolt is built by midpoint displacement: start with a straight line, push its middle sideways by a random amount, then repeat on each half with smaller pushes. Six rounds give a convincing jagged path, and a few short side branches complete it. The glow is not a blur filter, which is slow on phones, but the same line stroked three times, wide and faint, then medium, then a thin white core, all added together with the lighter blend mode.

Why the prompt works

  • It names the algorithm, midpoint displacement, so bolts look natural.
  • It gives the three stroke widths and opacities that create the glow cheaply.
  • It ties the effect to charge, so hover and click feel different.
  • It uses an invented mark you can swap for your own outline.

Where to use it

Music hardware, energy and battery companies, gaming brands and launch pages that want a bold, electric logo moment.

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 · Hover and click effects

Pixelate effect colourway picker

Live
Component · Hover and click effects

Halftone print with a colour reveal lens

Live
Component · Hover and click effects

Enamel pin cards with a shine sweep