Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
⚡ Join now · StealthWorm
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By StealthWorm
Button submission checks
Checks will appear after the preview updates.
Buttons only: no full pages, forms, cards or navigation. Put scripts in the JavaScript tab. Tailwind uses utilities from HTML and JavaScript; use complete class names. Custom CSS supports plain CSS, without @apply, imports or plugins.
Accessibility quick check
Waiting for the rendered preview…
Try Tab, Enter and Space in the preview. Check the focus ring, hover and disabled states, then enable Reduce motion. These checks are guidance, not an accessibility certification.
Explore freely here. Remix to publish your version with credit to the creator.
About ⚡ Join now · StealthWorm
⚡ Join now · StealthWorm is an animated CSS button by StealthWorm. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects
- Using this example
- Copy the HTML or download index.html, style.css and app.js. Test keyboard focus, motion and contrast in your own project.
Usage, Tailwind and licensing questions
Read the source files
HTML
<button type="button" class="btn">
<div class="smoke">
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
<div class="cloud"></div>
</div>
<div class="title">
<span class="thunder">⚡</span>
<strong class="description">Join now</strong>
</div>
<div class="glass">
<div class="inner-glass"></div>
</div>
</button>CSS
.btn {
z-index: 0;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
padding: 4px;
width: 20rem;
height: 6rem;
border-top: 2px double #ffffff92;
border-bottom: none;
border-left: 2px outset #0000007e;
border-right: 2px solid #e94fcab3;
border-radius: 1.8rem;
background-origin: border-box;
background-clip: content-box, border-box;
filter: hue-rotate(-15deg) drop-shadow(0px 30px 10px #00000028) saturate(2);
background: linear-gradient(
64.14deg,
#b938ff 0%,
#daa1f1 10%,
#f179ec 15.58%,
#fefffe 28.15%,
#fc9f9d 45.31%,
#ed8664 53.18%,
#ff7423 58.79%,
#ff875f 65.28%,
#fbabae 75.48%,
#fcbde5 85.31%,
#e94fca 100.29%
);
transition: all 0.5s;
}
.btn:hover {
transform: scale(1.1);
filter: hue-rotate(-365deg) drop-shadow(0px 30px 10px #00000028) saturate(2);
}
.btn:hover .title > strong {
font-size: 1.2rem;
font-weight: 800;
transition: all 0.8s;
}
.glass {
z-index: 10;
display: flex;
border: double 2px rgba(255, 255, 255, 0.263);
backdrop-filter: blur(2px);
filter: blur(1px) brightness(1.1) saturate(50%) hue-rotate(30deg);
border-radius: 1.6rem;
width: 100%;
height: 100%;
padding: 1rem;
background-color: #ffffff1c;
background-origin: content-box;
background-clip: content-box, border-box;
box-shadow: inset 0 0 10px #a84fd88d;
}
.inner-glass {
z-index: 10;
display: flex;
border-left: 1px solid rgba(255, 255, 255, 0.564);
border-right: 1px solid rgb(255, 255, 255);
backdrop-filter: blur(40px);
box-shadow: inset 0 0 20px rgba(246, 142, 213, 0.86);
-webkit-backdrop-filter: blur(5px);
border-radius: 0.6rem;
width: 100%;
height: 100%;
background-origin: border-box;
background-clip: content-box, border-box;
filter: brightness(140%);
}
.title {
inset: 0;
display: flex;
text-align: center;
width: 100%;
height: 100%;
position: absolute;
z-index: 90;
align-items: center;
justify-content: center;
color: black;
font-size: 1rem;
gap: 0.5rem;
}
.thunder {
display: flex;
align-items: center;
justify-content: center;
filter: grayscale(100%) brightness(0);
font-size: 1.2rem;
}
.description {
font-size: 1.2rem;
font-weight: 600;
}
.smoke {
z-index: 90;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
position: absolute;
}
.cloud {
position: absolute;
border-radius: 9999px;
}
.cloud:nth-of-type(1) {
filter: blur(3px) drop-shadow(-2px 0 3px #ffffff);
display: flex;
left: 1.6rem;
top: 0.2rem;
width: 10rem;
height: 1rem;
background: linear-gradient(
to right,
rgba(255, 255, 255, 0.868) 30%,
transparent 100%
);
}
.cloud:nth-of-type(2) {
left: 2.5rem;
top: 2rem;
width: 4rem;
height: 2rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 1) 0%,
rgba(255, 255, 255, 0) 70%
);
/* border: 1px solid red; */
filter: drop-shadow(-10px 10px 3px #d277cc);
}
.cloud:nth-of-type(3) {
left: 10rem;
top: 0.5rem;
width: 5rem;
height: 5rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 1) 0%,
rgba(255, 255, 255, 0) 50%
);
/* border: 1px solid red; */
filter: drop-shadow(-5px -5px 7px #ff5500b4);
}
.cloud:nth-of-type(4) {
left: 17rem;
top: 1rem;
width: 3.4rem;
height: 4rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 1) 0%,
transparent 70%
);
/* border: 1px solid red; */
filter: drop-shadow(-1px 0 30px #ff002f);
}
.cloud:nth-of-type(5) {
top: 0.5rem;
width: 100%;
height: 0.7rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.293) 30%,
rgba(255, 181, 21, 0.164) 50%,
rgba(234, 44, 255, 0.419) 60%,
rgba(255, 255, 255, 0) 90%
);
}
.cloud:nth-of-type(6) {
left: 17.6rem;
top: -0.1rem;
width: 2rem;
height: 2rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 1) 0%,
rgba(255, 255, 255, 0) 70%
);
}
.cloud:nth-of-type(7) {
left: 7.6rem;
transform: rotate(-35deg);
top: -2rem;
width: 2rem;
height: 5rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.614) 0%,
#fd87602d 60%,
rgba(255, 255, 255, 0) 100%
);
}
.cloud:nth-of-type(8) {
left: 5.5rem;
top: -1rem;
width: 3rem;
height: 3rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.614) 0%,
rgba(255, 255, 255, 0) 80%
);
}
.cloud:nth-of-type(9) {
filter: blur(1px) drop-shadow(0px 0 3px #ffffff);
left: 0.5rem;
bottom: 1.4rem;
width: 100%;
height: 0.1rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 1) 50%,
rgba(255, 255, 255, 0) 90%
);
}
.cloud:nth-of-type(10) {
filter: blur(1px) drop-shadow(0px 0 3px #ffffff);
display: flex;
left: 0.3rem;
top: 1rem;
width: 1rem;
height: 3rem;
border-top: 1px solid white;
border-right: 1px solid white;
border-bottom: none;
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0.419) 0%,
transparent 50%
);
}
.cloud:nth-of-type(11) {
border-radius: 100%;
filter: blur(4px) drop-shadow(0px -10px 10px #ff5107fb);
display: flex;
left: 12rem;
top: 3.5rem;
width: 5rem;
height: 1.8rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.773) 10%,
rgba(255, 255, 255, 0.159) 60%
);
}
.cloud:nth-of-type(12) {
filter: blur(2px) drop-shadow(0px -10px 10px #f36b9d);
display: flex;
left: 11rem;
top: 1.1rem;
width: 6rem;
height: 0.3rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.973) 30%,
rgba(255, 255, 255, 0.159) 100%
);
}
.cloud:nth-of-type(13) {
filter: blur(3px) drop-shadow(-15px 0 5px #f8283d9e);
display: flex;
left: 8rem;
top: 3.7rem;
width: 5.5rem;
height: 1.7rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.762) 10%,
rgba(255, 255, 255, 0.159) 70%
);
}
.cloud:nth-of-type(14) {
filter: blur(1px) drop-shadow(10px -10px 10px #6f0424);
transform: rotate(-35deg);
display: flex;
left: 0.5rem;
bottom: 0.3rem;
width: 0.5rem;
height: 1.2rem;
background: radial-gradient(
circle,
rgba(255, 255, 255, 0.848) 0%,
rgba(255, 255, 255, 0.159) 60%
);
}