Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Edit · barisdogansutcu
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By barisdogansutcu
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 Edit · barisdogansutcu
Edit · barisdogansutcu is an animated CSS button by barisdogansutcu. 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>
<svg class="css-i6dzq1" stroke-linejoin="round" stroke-linecap="round" fill="none" stroke-width="2" stroke="#FFFFFF" height="24" width="24" viewBox="0 0 24 24">
<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>
</svg>
Edit
</button>CSS
button {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
border: solid 3px transparent;
background-clip: padding-box;
box-shadow: 0px 0px 0px 3px #ffffff00;
color: white;
min-height: 43px;
padding: 0 13px 0 13px;
border-radius: 50px;
text-transform: uppercase;
letter-spacing: 2px;
transition: all .5s ease;
}
button:active {
transform: scale(.9);
transition: all 100ms ease;
}
button:hover {
box-shadow: 0px 0px 0px 3px #30a1b8;
}
button svg {
width: 16px;
}