Back to buttons

Live preview

Preview settings

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

⌘ / Ctrl + S saves locally

Send Message · asgardOP

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

By asgardOP

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

Send Message · asgardOP is an animated CSS button by asgardOP. 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="button">
  <div>
    <svg viewBox="0 0 24 24" fill="none" height="24" width="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="w-6 h-6 text-gray-800 dark:text-white">
      <path d="m12 18-7 3 7-18 7 18-7-3Zm0 0v-5" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" stroke="currentColor"></path>
    </svg>
    Send Message
  </div>
</button>

CSS


.button {
  width: 170px;
  height: 55px;
  border-radius: 10px;
  border: 1px solid gray;
  border-bottom: 2px solid rgb(77, 77, 77);
  display: flex;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.349);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: 0.4s;
  background: linear-gradient(140deg, white, rgb(214, 214, 214));
}

.button:hover {
  box-shadow: none;
  transform: scaleY(0.6);
  border-bottom: 2px solid rgb(77, 77, 77);
  background: linear-gradient(160deg, white, rgb(214, 214, 214));
}

.button:active {
  margin-top: 20px;
  transition: 0.05s;
}

.button::before {
  content: "";
  position: absolute;
  left: -1px;
  bottom: 0px;
  width: 170px;
  height: 0px;
  background: rgb(194, 194, 194);
  border-top: 0px solid black;
  border-bottom: 0px solid black;
  transition: height 0.4s, bottom 0.4s, opacity 0s 0.35s;
  opacity: 0;
  box-shadow: inset 0px -10px 10px rgba(167, 167, 167, 0.719);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.button:hover::before {
  height: 35px;
  bottom: -27px;
  opacity: 1;
  border-bottom: 1px solid black;
  transition: height 0.4s, bottom 0.4s;
}

.button:active::before {
  height: 18px;
  bottom: -9px;
  transition: height 0.05s, bottom 0.05s, opacity 0s 0s;
}

.button div {
  width: 150px;
  height: 40px;
  background: linear-gradient(180deg, rgba(212, 212, 212, 0.925), white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-weight: 900;
}

.button div svg {
  width: 20px;
  transform: rotate(40deg);
  margin-right: 5px;
}