Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
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 07
07 is an animated CSS button by @Meenal21i. 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>07</title>
<link rel="stylesheet" href="https://unpkg.com/boxicons@latest/css/boxicons.min.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<a href="#" class="button">
<span>Start Coding</span>
</a>
</body>
</html>CSS
/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
/* General styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-color: #090909;
height: 100vh;
display: grid;
place-items: center;
}
.button {
position: relative;
display: inline-block;
text-decoration: none;
color: #fff;
padding: 3px;
border-radius: 6px;
overflow: hidden;
}
.button::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 100%;
background:
linear-gradient(115deg,
#4fcf70, #fad648,
#a767e5, #12bcfe,
#44ce7b);
background-size: 50% 100%;
border-radius: inherit;
}
.button:hover::before {
animation:
animate_border .75s linear infinite;
}
.button span {
position: relative;
z-index: 2;
display: block;
background-color: #000;
padding: 13px 20px;
border-radius: 3px;
}
@keyframes animate_border {
to {
transform: translateX(-50%)
}
}