Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Code to Infinity · aadium
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By aadium
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 Code to Infinity · aadium
Code to Infinity · aadium is an animated CSS button by aadium. 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 class="cti">
<div class="CTI">
Code to Infinity
</div>
</button>CSS
.cti {
background-color: #6019bd;
padding: 17px 30px;
border: 3px solid transparent;
border-radius: 0.6em;
transition: 0.2s;
}
.cti:hover {
background-color: transparent;
border: 3px solid #6019bd;
box-shadow: 0px 0px 27px 5px #6019bd;
}
.CTI {
color: #fff;
font-family: 'Courier New', Courier, monospace;
font-size: 17px;
font-weight: bold;
overflow: hidden;
border-right: 4px solid transparent;
white-space: nowrap;
margin: 0 auto;
}
.cti:hover .CTI {
border-right: 4px solid #6019bd;
animation: letters 1.75s steps(22, end),
cursor .4s step-end infinite;
}
@keyframes letters {
from {
width: 0;
}
to {
width: 100%;
}
}
@keyframes cursor {
from {
border-color: transparent
}
50% {
border-color: #6019bd
}
}