Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
op-amateur's button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By @op-amateur
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 op-amateur's button
op-amateur's button is an animated CSS button by @op-amateur. 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
<html>
<head><title>button</title>
<link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="pos"><!--main button page-->
<button class="styled">
Add to favorites
</button>
</div>
</body></htnml>CSS
/*style page*/
.pos{
float:right;
width:50%;
padding:25% 0;
}
.styled {
border-width: 4px;
line-height: 2.5;
padding: 0 20px;
font-size: 1rem;
text-align: center;
vertical-align:middle;
color: #fff;
text-shadow: 1px 1px 1px #000;
border-radius: 50px;
background-color: rgb(76, 13, 158);
}