Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Don't Click · Bastimans
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By Bastimans
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 Don't Click · Bastimans
Don't Click · Bastimans is an animated CSS button by Bastimans. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects
- 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>Don't Click</button>CSS
button {
background-color: #ffc600;
/* sets the background color of the button to yellow */
color: #000000;
/* sets the text color of the button to black */
padding: 12px 24px;
/* adds some padding to the button */
border: none;
/* remove the default border */
border-radius: 30px;
/* rounds the corners of the button */
font-size: 18px;
/* sets the font size of the button text */
font-weight: bold;
/* sets the font weight of the button text to bold */
cursor: pointer;
/* changes the cursor to a pointer when hovering over the button */
text-shadow: 2px 2px 3px #ffc600;
/* adds a subtle shadow to the button text */
box-shadow: 2px 2px 3px #ffc600;
/* adds a subtle shadow to the button */
transition: all 0.2s ease-in-out;
/* adds transition effect when hovering over the button */
}
button:hover {
background-color: #000000;
/* changes the background color of the button to black when hovered */
color: #ffc600;
/* changes the text color of the button to yellow when hovered */
transform: scale(1.1);
/* increases the size of the button slightly when hovered */
}
button:active {
transform: scale(0.97);
}