Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Explore space · BHARGAVPATEL1244
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By BHARGAVPATEL1244
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 Explore space · BHARGAVPATEL1244
Explore space · BHARGAVPATEL1244 is an animated CSS button by BHARGAVPATEL1244. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Icon
- 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 class="space-button">
<span>Explore space</span>
<svg viewBox="0 0 24 24">
<path d="M5.5 16.5l5-5-5-5"></path>
<path d="M11 11h8v2h-8z"></path>
<path d="M16.5 7.5l5-5-5-5"></path>
<path d="M19 4v8h-2v-8z"></path>
</svg>
</button>CSS
.space-button {
display: inline-block;
background-color: #111;
color: #fff;
border: none;
border-radius: 30px;
padding: 12px 32px;
font-size: 1.2em;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
position: relative;
overflow: hidden;
cursor: pointer;
transition: background-color 0.3s ease;
}
.space-button span {
position: relative;
z-index: 1;
}
.space-button svg {
position: absolute;
top: 50%;
right: 12px;
transform: translateY(-50%);
width: 16px;
height: 16px;
fill: #fff;
transition: transform 0.3s ease;
}
.space-button:hover {
background-color: #f8f8f8;
color: #111;
}
.space-button:hover svg {
transform: translateX(4px);
}
.space-button:active {
background-color: #f94b4c;
color: #fff;
}