Back to buttons

Live preview

Preview settings

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

⌘ / Ctrl + S saves locally

roufkp's hover button

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

By roufkp

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 roufkp's hover button

roufkp's hover button is an animated CSS button by roufkp. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.

Effects and categories
Hover effects
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">
  Button
</button>

CSS


.button {
  width: fit-content;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1rem;
  border: none;
  background: transparent;
  box-shadow: inset -20px -16px 0px 2px rgb(2 184 72);
  border-radius: 100px;
  color: rgb(67, 46, 19);
  transition: all 1s cubic-bezier(.66, .00, .34, 1.00);
}

button:hover {
  box-shadow: inset 0px 0px 0px 0px rgb(2 184 72);
  background: rgb(33, 30, 24);
  transform: translateY(-5px);
  color: rgb(230, 221, 221);
  font-weight: 700;
}