Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
β / Ctrl + S saves locally
btongheng's minimal button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By btongheng
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 btongheng's minimal button
btongheng's minimal button is an animated CSS button by btongheng. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Minimal
- 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="button">
BUTTON
</button>CSS
.button {
--π: #644dff;
--ππ: #4836bb;
--πππ: #654dff63;
cursor: pointer;
width: 234px;
height: 58px;
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
font-size: 1.125em;
font-weight: 800;
letter-spacing: 2px;
color: #fff;
background: var(--π);
border: 2px solid var(--ππ);
border-radius: .75rem;
box-shadow: 0 8px 0 var(--ππ);
transform: skew(-10deg);
transition: all .1s ease;
filter: drop-shadow(0 15px 20px var(--πππ));
}
.button:active {
letter-spacing: 0px;
transform: skew(-10deg) translateY(8px);
box-shadow: 0 0 0 var(--πππ);
}