Back to buttons

Live preview

Preview settings

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

⌘ / Ctrl + S saves locally

Keep hovering me · mrhyddenn

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

By mrhyddenn

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 Keep hovering me · mrhyddenn

Keep hovering me · mrhyddenn is an animated CSS button by mrhyddenn. 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

<div class="button">
    <a class="first"> Keep hovering me </a>
    <a class="slidein"> Welcome to Button</a>
    <a class="slidein two"> Keep going </a>
    <a class="slidein three"> Create on Button </a>
    <a class="slidein four"> Save favorite </a>
    <a class="slidein five"> ...and enjoy! </a>
    <a class="slidein six"> Respect us.</a>
    <a class="slidein seven"> and we will you. </a>
    <a class="slidein eight"> Happy coding. </a>
    <a class="slidein nine"> ...and thanks. </a>
    <a class="slidein ten"> Button </a>
</div>

CSS


.button {
  cursor: pointer;
  position: relative;
  text-align: center;
  display: block;
  width: 200px;
  border: none;
  font-size: 12px;
  height: 45px;
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 10px 50px #006eff;
  border-radius: 10px;
  padding: 10px 20px;
}

.button .ten {
  line-height: 52px;
}

.button:hover .slidein {
  left: 0%;
}

.button:hover .two {
  left: 0%;
  transition-delay: 1.5s;
}

.button:hover .three {
  left: 0%;
  transition-delay: 3s;
}

.button:hover .four {
  left: 0%;
  transition-delay: 4.5s;
}

.button:hover .five {
  left: 0%;
  transition-delay: 6s;
}

.button:hover .six {
  left: 0%;
  transition-delay: 7.5s;
}

.button:hover .seven {
  left: 0%;
  transition-delay: 9s;
}

.button:hover .eight {
  left: 0%;
  transition-delay: 10.5s;
}

.button:hover .nine {
  left: 0%;
  transition-delay: 12s;
}

.button:hover .ten {
  left: 0%;
  transition-delay: 14s;
}

.button .slidein {
  background: #3398ff;
  left: -100%;
  z-index: 2;
}

.button a {
  text-transform: uppercase;
  transition: left 300ms;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  background: #006eff;
  position: absolute;
  font-weight: bold;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
}

.slidein:nth-child( even) {
  background: #348bfc !important;
}

.slidein:nth-child( odd) {
  background: #0873ff !important;
}