DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Button Animation - 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
Button Animation
aartigoyal
Jan 30, 2026
4
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="btn-wrap"> <button class="btn">Get Started</button> </div>
1
body{ margin:0; height:100vh; display:flex; justify-content:center; align-items:center; background:#020617; font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif; } /* wrapper */ .btn-wrap{ position:relative; padding:3px; border-radius:999px; background:linear-gradient( 90deg, #4da3ff, #8b5cf6, #ff5c5c, #facc15, #4da3ff ); background-size:300% 300%; animation:borderFlow 6s linear infinite; } /* glow */ .btn-wrap::before{ content:""; position:absolute; inset:-18px; border-radius:999px; background:inherit; filter:blur(35px); opacity:.7; z-index:-1; } /* button */ .btn{ padding:22px 64px; border-radius:999px; border:none; background:rgba(255,255,255,.12); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); color:#fff; font-size:28px; font-weight:600; cursor:pointer; letter-spacing:.4px; transition:.45s cubic-bezier(.22,1,.36,1); position:relative; overflow:hidden; } /* shine */ .btn::after{ content:""; position:absolute; inset:-60%; background:linear-gradient( 120deg, transparent, rgba(255,255,255,.5), transparent ); transform:translateX(-120%); transition:1.2s; } /* hover */ .btn-wrap:hover .btn{ transform:translateY(-10px) scale(1.06); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.5); } .btn-wrap:hover .btn::after{ transform:translateX(120%); } @keyframes borderFlow{ 0%{background-position:0%} 100%{background-position:300%} }
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!