Back to buttons

Live preview

Preview settings

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

⌘ / Ctrl + S saves locally

hi-Kartik2004's button

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

By @hi-Kartik2004

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 hi-Kartik2004's button

hi-Kartik2004's button is an animated CSS button by @hi-Kartik2004. 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

<!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" />
    <link rel="stylesheet" href="./style.css" />
    <title>Document</title>
  </head>
  <body>
  <!-- Add Your button code here -->

   <a href="#about" class=hero__btn style="margin-top: 2rem;">KNOW MORE ABOUT CODEFURY 6.0</a>
  <script src="./app.js"></script>
  </body>
</html>

CSS


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: poppins, sans-serif;
  background-color: var(--light-black-bg-color);
}

:root {
  --yellow-color: #f9d855;
  --black-color: #000000;
  --purple-color: #7c7fff;
  --light-black-bg-color: #170f1ec0;
  --light-black-color: #170f1e;
  --cyan-color: #40ddff;
  --gray-color: #e5e1e6;
  --purple-shadow-color: #7c7eff79;
  --border-color: rgba(255, 255, 255, 0.377);
  --no-opacity-color: rgba(255, 255, 255, 0);
  --glow-color: rgba(245, 245, 245, 0.903);
  --gradient: linear-gradient(var(--cyan-color), var(--purple-color));
}

a{
  text-decoration: none;
}

.hero__btn,
.register__now__btn,
.shadow__btn {
  clip-path: polygon(
    12px 0px,
    100% 0px,
    100% 72%,
    calc(100% - 12px) 100%,
    0px 100%,
    0px 12px
  );
  overflow: hidden;
    font-weight: 700;
      color: var(--black-color);
}

.hero__btn,
.shadow__btn {
  padding: 1rem 0.75rem;
  font-weight: 700;
  transition: transform 0.1s;
  position: relative;
}

.hero__btn__wrapper {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero__btn {
  display: inline-block;
  background-image: linear-gradient(
    to right,
    var(--yellow-color),
    var(--cyan-color),
    var(--purple-color)
  );
  color: var(--light-black-color);
  box-shadow: 0 -2px 100px var(--yellow-color);
}

.hero__btn:hover {
  transform: rotate(1.5deg);
}
.hero__btn::before {
  position: absolute;
  content: " ";
  height: 120%;
  width: 110%;
  background-color: var(--border-color);
  top: 0;
  left: -10rem;
  transition: transform 0.3s;
  transform: rotate(45deg);
}
.hero__btn:hover::before {
  transform: rotate(45deg) translateY(-3rem);
}


/* 
1. Add your styles below this.
2. Don't change the above code.
3. You can change the background color of the body.
4. Remove the comments.
 */

JavaScript

// Add Your button script here