Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Send Message · Manish-Tamang
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By Manish-Tamang
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 · Manish-Tamang
Send Message · Manish-Tamang is an animated CSS button by Manish-Tamang. 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 class="send-message-btn">
<div class="inner-randi">
<span class="khatey">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" height="20px" width="20px">
<path stroke-linejoin="round" stroke-linecap="round" stroke-width="2" stroke="#000000" d="M11.5003 12H5.41872M5.24634 12.7972L4.24158 15.7986C3.69128 17.4424 3.41613 18.2643 3.61359 18.7704C3.78506 19.21 4.15335 19.5432 4.6078 19.6701C5.13111 19.8161 5.92151 19.4604 7.50231 18.7491L17.6367 14.1886C19.1797 13.4942 19.9512 13.1471 20.1896 12.6648C20.3968 12.2458 20.3968 11.7541 20.1896 11.3351C19.9512 10.8529 19.1797 10.5057 17.6367 9.81135L7.48483 5.24303C5.90879 4.53382 5.12078 4.17921 4.59799 4.32468C4.14397 4.45101 3.77572 4.78336 3.60365 5.22209C3.40551 5.72728 3.67772 6.54741 4.22215 8.18767L5.24829 11.2793C5.34179 11.561 5.38855 11.7019 5.407 11.8459C5.42338 11.9738 5.42321 12.1032 5.40651 12.231C5.38768 12.375 5.34057 12.5157 5.24634 12.7972Z"></path>
</svg>
</span>
Send Message
</div>
</button>CSS
.send-message-btn {
background-color: #ffffff;
border: 2px solid #e0e0e0;
border-radius: 12px;
padding: 14px; /* Increased padding to adjust for 4px gap */
cursor: pointer;
transition: all 0.2s ease-in-out;
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
}
.send-message-btn:hover {
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.send-message-btn:active {
transform: scale(0.98);
}
.inner-randi {
display: flex;
align-items: center;
justify-content: center;
background-color: #f0f0f0;
border-radius: 24px;
padding: 10px 16px;
position: relative;
width: calc(100% - 1px);
height: calc(100% - 20px);
border: 2px solid #e0e0e0;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
font-size: 16px;
color: #000;
white-space: nowrap;
}
.khatey {
margin-right: 8px;
transform: rotate(-30deg);
}