Create a lightning background for a sports pitch storm alert service. Layer a half resolution WebGL shader for storm clouds (layered noise in indigo #262540 over #06070d, lit from inside by flash uniforms), a 2D canvas for rain and bolts, and an SVG strip of a dark sports ground with goalposts and four floodlights glowing #ffcf73. Build every bolt by midpoint displacement, seven levels deep with roughness 0.42, add random side branches and twigs, and draw each in three additive passes: a 16px blue haze, a 5px lilac glow and a 1.8px white core. Flicker each strike like a real return stroke, three bright pulses in 0.3s then a 0.45s fade, light the clouds behind it and glow where it hits the ground. Draw 170 slanting rain streaks (80 on phones). The pointer chooses where the next strike lands, and a click or tap strikes right there. After 2.5s idle, strikes land at random every 1.8 to 4.4s with sheet lightning flickering in between. Copy: a lime bolt icon and label "Strikewise pitch alerts", an 80px headline "Clear the pitch before the first rumble", a lime (#e8ff5a) "Book a site survey" button and a live strike readout. Freeze on one still bolt 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
- Copy the prompt with the button above.
- Paste it into your AI site builder, or any AI chat that writes code.
- Make it yours by changing the ground silhouette to your own skyline or venue.
About this lightning background
A lightning background has to get one thing right, the flicker. Real lightning is not a single flash but a quick stutter of return strokes, and this storm copies that rhythm: three bright pulses in under a third of a second, then a slow fade while the clouds glow from inside. Rain slants across the page, sheet lightning flickers in the distance, and down at the bottom a floodlit pitch catches the light each time a bolt hits.
Each bolt is grown fresh by splitting a straight line again and again and nudging every midpoint sideways, which gives the jagged, branching shape. Side branches split off at random. The cursor decides where the next strike lands and a tap calls one down on the spot, so the storm feels like it is answering you. On a phone it simply keeps striking on its own.
Why the prompt works
- It names midpoint displacement with a depth and roughness, so bolts look natural.
- It times the flicker, the detail that separates real lightning from a flash.
- It layers three strokes for haze, glow and core.
- It ties the storm to a product, so the drama has a reason.
Where to use it
Weather and alert apps, outdoor event safety, energy companies, games and any dark hero that needs a jolt.
The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.