DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Electic Current - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
Electic Current
rohit
Feb 13, 2026
14
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="electric-card"> <h2>LIVE CURRENT</h2> <p>Power flowing continuously ⚡</p> </div>
1
body { margin: 0; height: 100vh; background: #050510; display: flex; justify-content: center; align-items: center; font-family: Arial, sans-serif; } /* Card */ .electric-card { position: relative; width: 250px; height: 250px; background: #111; border-radius: 20px; color: white; text-align: center; padding: 50px 20px; overflow: hidden; z-index: 1; box-shadow: 0 0 40px rgba(0,255,255,0.2); } /* Electric animated border */ .electric-card::before { content: ""; position: absolute; inset: -3px; border-radius: 22px; background: linear-gradient( 90deg, #00f0ff, #8a2be2, #00f0ff, #00ffea, #8a2be2 ); background-size: 400% 400%; animation: electricFlow 3s linear infinite; z-index: -2; } /* Inner mask */ .electric-card::after { content: ""; position: absolute; inset: 4px; background: #111; border-radius: 18px; z-index: -1; } /* Flow animation */ @keyframes electricFlow { 0% { background-position: 0% 50%; } 100% { background-position: 400% 50%; } } /* Extra electric pulse glow */ .electric-card { animation: pulseGlow 2s ease-in-out infinite; } @keyframes pulseGlow { 0%,100% { box-shadow: 0 0 20px #00f0ff, 0 0 40px #8a2be2; } 50% { box-shadow: 0 0 40px #00f0ff, 0 0 80px #8a2be2; } } h2 { letter-spacing: 2px; margin-bottom: 10px; } p { opacity: 0.7; }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!