Button Bounce Effect using CSS

In this tutorial we will see how to create Button Bounce Effect using CSS. This animation is created using transform and animation properties of CSS.

HTML Code

HTML Code is given below.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Button Bounce Effect using CSS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<button>How To Code School</button>
</body>
</html>

CSS Code

CSS Code is given below.

body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh; }
button {
background-color:#22438C;
padding: 20px 40px;
font-size: 30px;
border: none;
border-radius: 10px;
color: #fff;
cursor: pointer; }
@keyframes bounce {
0%, 25%, 50%, 75%, 90%, 100% {
transform: translateY(0); }
15%,40% {
transform: translateY(-20px); }
65% ,80% {
transform: translateY(-15px); }
95% {
transform: translateY(-5px); } }
button:hover {
animation: bounce 2s linear; }

Demo

Video Tutorial

Watch video tutorial on how to create Button Bounce Effect using CSS.

Social Media Menu with Popup Tooltip using HTML and CSS Horizontal Navigation Menu with HTML and CSS Responsive Sidebar Menu with CSS and JavaScript Cool CSS Button with Hover Animation Pure CSS Custom Radio Buttons Custom Emoji Radio Buttons with CSS Color Picker Design with HTML CSS and JavaScript Custom Radio Buttons with CSS Engraved HTML Buttons With CSS Neumorphic Buttons Design with CSS Cool Profile Card Design with HTML CSS Neumorphic Search Bar Design with HTML and CSS Simple Login Form with Placeholder Animation Pure CSS Button with Folded Corner Background Color Change Slider with HTML CSS and JavaScript 404 Page Not Found Template Design with HTML and CSS Movies Blog Card Design with HTML and CSS Simple CSS Border Animation with before and after Selector Custom Social Select Dropdown Menu with CSS and JavaScript Facebook Offline and Online Notification with CSS and JS New Year 2022 Text Animation with CSS and JS Change Placeholder Color using CSS Custom Select Tag DropDown with CSS and JavaScript Simple Price Range Slider With HTML CSS and JavaScript Profile Card With Hover Effect using HTML and CSS Circle With Two Colors using CSS Simple FAQ Accordion With HTML CSS and JavaScript