Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Bouncing Button
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By @ogeitunu
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 Bouncing Button
Bouncing Button is an animated CSS button by @ogeitunu. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, 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>
<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>Bouncing Button</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<a href="#" class="button">Apply</a>
</div>
</body>
</html>
CSS
body{
background-color: rgb(127, 225, 255);
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-weight: 30;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 95vh;
}
.button {
display: inline-block;
padding: 12px 24px;
font-size: 15px;
text-align: center;
border-radius: 6px;
background-color: #f44336;
color: #fcf4f4;
cursor: pointer;
animation: bounce 0.4s infinite alternate;
text-decoration: none;
}
@keyframes bounce {
0% { transform: translateY(0); }
100% { transform: translateY(-10px); }
}
.button:hover {
background-color: #ffa2c1;
}