CSS Jelly Bounce Text
How to Create a Jelly Bounce Text Effect with CSS
Watch the full tutorial here:
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Jelly Bounce Text Effect</title>
</head>
<body>
<div class="bouncy-text">HELLO WORLD</div>
</body>
</html>
css
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #111;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.bouncy-text {
font-size: 60px;
font-family: monospace;
font-weight: bold;
color: #F8C391;
cursor: pointer;
display: inline-block;
transition: transform 0.3s ease;
}
.bouncy-text:hover {
animation: jellyBounce 0.8s ease;
}
@keyframes jellyBounce {
0% {
transform: scale(1, 1);
}
20% {
transform: scale(1.25, 0.75);
}
40% {
transform: scale(0.75, 1.25);
}
60% {
transform: scale(1.15, 0.85);
}
80% {
transform: scale(0.95, 1.05);
}
100% {
transform: scale(1, 1);
}
}