Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Send Message · aurellsoleil
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By aurellsoleil
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 Send Message · aurellsoleil
Send Message · aurellsoleil is an animated CSS button by aurellsoleil. 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
<div class="container">
<button class="button">
<svg class="icon" width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Communication / Paper_Plane">
<path id="Vector" d="M10.3078 13.6923L15.1539 8.84619M20.1113 5.88867L16.0207 19.1833C15.6541 20.3747 15.4706 20.9707 15.1544 21.1683C14.8802 21.3396 14.5406 21.3683 14.2419 21.2443C13.8975 21.1014 13.618 20.5433 13.0603 19.428L10.4694 14.2461C10.3809 14.0691 10.3366 13.981 10.2775 13.9043C10.225 13.8363 10.1645 13.7749 10.0965 13.7225C10.0215 13.6647 9.93486 13.6214 9.76577 13.5369L4.57192 10.9399C3.45662 10.3823 2.89892 10.1032 2.75601 9.75879C2.63207 9.4601 2.66033 9.12023 2.83169 8.84597C3.02928 8.52974 3.62523 8.34603 4.81704 7.97932L18.1116 3.88867C19.0486 3.60038 19.5173 3.45635 19.8337 3.57253C20.1094 3.67373 20.3267 3.89084 20.4279 4.16651C20.544 4.48283 20.3999 4.95126 20.1119 5.88729L20.1113 5.88867Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
</g>
</svg>
<span class="text">Send Message</span>
</button>
</div>CSS
.button {
cursor: pointer;
padding-right: 20px;
padding-left: 20px;
padding-top: 20px;
padding-bottom: 20px;
margin: 3px;
border: none;
border-radius: 30px;
font-size: large;
font-weight: 600;
display: flex;
background: #dadada;
background: -moz-linear-gradient(top, #dadada 0%, #eeeeee 25%, #ffffff 100%);
background: -webkit-linear-gradient(
top,
#dadada 0%,
#eeeeee 25%,
#ffffff 100%
);
background: linear-gradient(to bottom, #dadada 0%, #eeeeee 25%, #ffffff 100%);
}
.container {
box-shadow: 4px 2px 10px -1px rgba(12, 12, 12, 0.6);
/* border: 2px solid rgb(192, 192, 192); */
border-radius: 7px;
background: #ffffff;
background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee 75%, #dadada 100%);
background: -webkit-linear-gradient(
top,
#ffffff 0%,
#eeeeee 75%,
#dadada 100%
);
background: linear-gradient(to bottom, #ffffff 0%, #eeeeee 75%, #dadada 100%);
transition: all 0.3s;
}
.container:hover {
box-shadow: 1px 0px 3px 0px rgba(12, 12, 12, 0.6);
}
.container:active {
box-shadow: 0.5px 0px 1px 0px rgba(12, 12, 12, 0.6);
}
.icon {
margin-right: 5px;
}