Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Next · catraco
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By catraco
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 Next · catraco
Next · catraco is an animated CSS button by catraco. 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="btn-class-name">
<span>Next</span>
<svg viewBox="0 0 320 512" height="1em" xmlns="http://www.w3.org/2000/svg">
<path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z">
</path>
</svg>
</button>CSS
.btn-class-name {
--color: 180,255, 100;
border-radius: .5em;
transition: .3s;
background-color: rgba(var(--color), .2);
color: rgb(var(--color));
fill: rgb(var(--color));
font-family: monospace;
font-weight: bolder;
font-size: x-large;
text-transform: uppercase;
letter-spacing: 0.1em;
cursor: pointer;
border: 2px solid rgb(var(--color));
box-shadow: 0 0 10px rgba(var(--color), .4);
outline: none;
display: flex;
align-items: center;
padding: .5em 1em;
}
.btn-class-name:hover {
box-shadow: 0 0 0 5px rgba(var(--color), .5);
}
.btn-class-name span {
transform: scale(.8);
transition: .3s;
}
.btn-class-name:hover span {
transform: scale(1);
}
.btn-class-name svg {
font-size: 0;
transform: scale(0.5) translateX(0%) rotate(-180deg);
transition: .3s;
}
.btn-class-name:hover svg {
font-size: 20px;
transform: scale(1) translateX(20%) rotate(0deg);
}
.btn-class-name:active {
transition: 0s;
box-shadow: 0 0 0 5px rgb(var(--color));
}