Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Space · Shoh2008
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By Shoh2008
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 Space · Shoh2008
Space · Shoh2008 is an animated CSS button by Shoh2008. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Animated
- 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>
<div>Space</div>
<div class="liquid"></div>
</button>CSS
button {
font: 18px;
color: #fff;
text-decoration: none;
text-transform: uppercase;
padding: 5px 20px;
position: relative;
overflow: hidden;
border-radius: 5px;
transition: 0.2s;
transform: scale(2);
border: 1px solid;
}
button span {
position: relative;
z-index: 0;
display: flex;
color: #fff;
}
button .liquid {
position: absolute;
top: -50px;
left: 0;
width: 100%;
height: 150px;
background: #FF229F;
box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7);
z-index: -1;
transition: 0.6s;
}
button .liquid::after,
button .liquid::before {
position: absolute;
content: "🪐";
width: 200%;
height: 200%;
top: 0;
left: 0;
transform: translate(-25%, -75%);
}
button .liquid::after {
border-radius: 45%;
background: rgba(20, 20, 20, 1);
box-shadow: 0 0 10px 5px #33053C, inset 0 0 5px #33053C;
animation: animate 5s linear infinite;
opacity: 0.8;
}
button .liquid::before {
content: "🚀";
border-radius: 40%;
box-shadow: 0 0 10px rgba(26, 26, 26, 0.5),
inset 0 0 5px rgba(26, 26, 26, 0.5);
background: rgba(26, 26, 26, 0.5);
animation: animate_3881 7s linear infinite;
}
@keyframes animate_3881 {
0% {
transform: translate(-25%, -75%) rotate(0);
}
100% {
transform: translate(-25%, -75%) rotate(360deg);
}
}
button:hover .liquid {
top: -120px;
}
button:hover {
box-shadow: 0 0 5px #33053C, inset 0 0 5px #33053C;
transition-delay: 0.2s;
}