Component · Hover and click effects

Electric border on an EV charger card

by Informeek Studio 11 November 2026
Live Hover the card, then start charging

The prompt

Build a charging bay card for a fictional rapid charger network, Voltyard, on a near-black page (#060a11) with a faint blue glow. The card is up to 372px wide, 22px radius, #0f1828, with a "Voltyard" logo, a "Bay 4, CCS2" chip, a 188px ring gauge reading "150 kW, Peak power", a green "Available now" status, three facts (Price £0.59/kWh, Wait, Cable) and a cyan to blue (#6ff3ff to #7aa8ff) "Start charging" button. Draw an electric border with an SVG laid 16px outside the card: two rounded rectangles the size of the card, one 2px cyan stroke and one 1px white stroke, each through its own SVG filter of feTurbulence (type turbulence, baseFrequency about 0.024 and 0.05) into feDisplacementMap, with a Gaussian blur merged under the cyan line for glow. About 22 times a second, change the noise seed and nudge the frequency so the line crackles, with a 6 percent chance of a brief surge. A voltage value eases between 0.18 idle, plus 0.45 on hover, 0.6 while pressed and 0.55 while charging; it scales the displacement (4 plus voltage times 12) and the card glow. Charging turns the gauge into a battery ring rising from 34 percent with live kW, kWh added and minutes left, stopping at 80 percent. On phones it crackles by itself and a press surges it. Reduced motion leaves a still, gently distorted line.

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 brand, the stats and the border colour to match your own product.

About this electric border

This electric border is two ordinary rounded rectangles pushed around by noise. Each one runs through an SVG filter that generates turbulence and uses it to displace the line, and swapping the noise seed many times a second makes the edge jitter and crackle like a live wire. A blurred copy under the cyan line gives it a glow, and a thin white line on its own noise adds the hot core you see in real sparks.

The effect has a job. One voltage value controls everything, so the border is calm when the bay is idle, livelier when you hover, and at its strongest while the car is charging. The gauge, the live kilowatt reading and the minutes left all update as the battery fills, and the border settles again when the session ends.

Why the prompt works

  • It names both filter steps and their settings, which is the whole technique.
  • It gives the reseed rate, about 22 times a second, the number that makes it crackle.
  • It ties strength to state with one voltage value and clear numbers for each state.
  • It writes the charging flow, so the card behaves like a real product.

Where to use it

Energy and EV apps, power-up offers, game cards and alerts that need attention. Use it on one card per screen and keep the rest of the page dark so the glow has room.

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

Breathing shapes that sharpen near your finger

Live
Component · Hover and click effects

Koi pond with a water ripple effect

Live
Component · Hover and click effects

Confetti click animation