Back to buttons

Live preview

Preview settings

Changes appear as you type. Use Tab to test keyboard focus.

⌘ / Ctrl + S saves locally

Send Message · benjimich

HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.

By benjimich

Remix button

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 · benjimich

Send Message · benjimich is an animated CSS button by benjimich. 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="wrapper">
  <div class="container">
    <button class="button">
      <svg class="imgSvg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
        <g stroke-width="0" id="SVGRepo_bgCarrier"></g>
        <g stroke-linejoin="round" stroke-linecap="round" id="SVGRepo_tracerCarrier"></g>
        <g id="SVGRepo_iconCarrier">
          <path fill="#000" d="M20.33 3.66996C20.1408 3.48213 19.9035 3.35008 19.6442 3.28833C19.3849 3.22659 19.1135 3.23753 18.86 3.31996L4.23 8.19996C3.95867 8.28593 3.71891 8.45039 3.54099 8.67255C3.36307 8.89471 3.25498 9.16462 3.23037 9.44818C3.20576 9.73174 3.26573 10.0162 3.40271 10.2657C3.5397 10.5152 3.74754 10.7185 4 10.85L10.07 13.85L13.07 19.94C13.1906 20.1783 13.3751 20.3785 13.6029 20.518C13.8307 20.6575 14.0929 20.7309 14.36 20.73H14.46C14.7461 20.7089 15.0192 20.6023 15.2439 20.4239C15.4686 20.2456 15.6345 20.0038 15.72 19.73L20.67 5.13996C20.7584 4.88789 20.7734 4.6159 20.7132 4.35565C20.653 4.09541 20.5201 3.85762 20.33 3.66996ZM4.85 9.57996L17.62 5.31996L10.53 12.41L4.85 9.57996ZM14.43 19.15L11.59 13.47L18.68 6.37996L14.43 19.15Z"></path>
        </g>
      </svg>

      <span>Send Message</span>
    </button>
  </div>
</div>

CSS


.wrapper {
  background-color: #fff;
  padding: 0.5px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wrapper:hover {
  scale: 1.05;
}
.wrapper:active {
  scale: 1;
}
.container {
  cursor: pointer;
  background-color: #fff;
  padding: 5px;
  border-radius: inherit;
  border: 2px rgb(158, 158, 158) solid;
  box-shadow: inset 0px -12px 20px -3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
.container:hover {
  box-shadow: 0px 10px 25px -3px rgba(0, 0, 0, 0.1),
    inset 0px -12px 20px -3px rgba(0, 0, 0, 0.1);
}
.button {
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: inherit;
  font-size: 20px;
  font-weight: 700;
  background-color: #fff;
  border-radius: 50px;
  border: none;
  padding: 14px;
  box-shadow: inset 0px 12px 20px -3px rgba(0, 0, 0, 0.1);
}

.imgSvg {
  width: 24px;
  margin-right: 14px;
}
.wrapper:hover .imgSvg {
  transform: rotate(405deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.125);
}