Back to buttons

Live preview

Preview settings

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

⌘ / Ctrl + S saves locally

Neuromorphism Button

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

By @sumitkr2000

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 Neuromorphism Button

Neuromorphism Button is an animated CSS button by @sumitkr2000. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.

Effects and categories
Hover effects, Icon, Animated
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

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Neuromorphism Button</title>

    <!-- fontawesome -->
    <script src="https://kit.fontawesome.com/b70d731558.js" crossorigin="anonymous"></script>

    <!-- custom stylesheet -->
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <div class="container">
        <button type="button"><i class="acpt fa-solid fa-phone"></i> Accept</button>
        <button type="button" class="reject">Reject <i class="rjct fa-solid fa-phone"></i></button>
    </div>
</body>

</html>

CSS


@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.container {
  height: 100vh;
  width: 100%;
  background: #ebeef1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

button {
  text-align: center;
  font-size: 25px;
  font-weight: 500;
  padding: 10px 15px;
  margin: 20px;
  background: #ebeef1;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  color: #00a037;
  box-shadow: 10px 10px 10px -1px rgba(10, 99, 169, 0.16),
    -10px -10px 10px -1px rgba(255, 255, 255, 0.7);
}

@keyframes moveRight {
  from {
    opacity: 10;
    transform: translate(0px);
  }
  to {
    opacity: 0;
    transform: translate(70px);
  }
}

@keyframes moveLeft {
  from {
    opacity: 10;
    transform: translate(0px);
  }
  to {
    opacity: 0;
    transform: translate(-80px);
  }
}

button:hover .acpt {
  animation: moveRight 1.5s linear 0s infinite;
}

button:hover .rjct {
  animation: moveLeft 1.5s linear 0s infinite;
}

button.reject {
  color: #ed0000;
  box-shadow: inset 10px 10px 10px -1px rgba(10, 99, 169, 0.16),
    inset -10px -10px 10px -1px rgba(255, 255, 255, 0.7);
}

button i {
  padding: 10px;
  color: #fff;
  border-radius: 100%;
}

button .acpt {
  margin-right: 55px;
  background-color: #00a037;
}

button .rjct {
  margin-left: 70px;
  background-color: #ed0000;
}