<h1>Bouncy</h1>
<div class="object-1"></div>
<div class="object-2"></div>
<div class="object-3"></div>
body
{
font-family: arial;
background: radial-gradient(circle, #757462, #272623);
background: radial-gradient(circle, #757462, #272623);
}
h1
{
animation: bounceSide .5s cubic-bezier(.63,.09,.75,.46) infinite alternate;
animation: bounceSide .5s cubic-bezier(.63,.09,.75,.46) infinite alternate;
position: relative;
float: left;
color: white;
}
.object-1
{
position: absolute;
width: 100px;
height: 100px;
border-radius: 50%;
left: 50%;
background: #ffcc00;
animation: bounce .3s cubic-bezier(.63,.09,.75,.46) infinite alternate;
animation: bounce .3s cubic-bezier(.63,.09,.75,.46) infinite alternate;
}
.object-2
{
position: absolute;
width: 100px;
height: 100px;
border-radius: 50%;
left: 25%;
background: #00ccff;
animation: bounce .7s cubic-bezier(.63,.09,.75,.46) infinite alternate;
animation: bounce .7s cubic-bezier(.63,.09,.75,.46) infinite alternate;
}
.object-3
{
position: absolute;
width: 100px;
height: 100px;
border-radius: 10%;
left: 75%;
background: #00cc00;
animation: bounce .2s cubic-bezier(.63,.09,.75,.46) infinite alternate;
animation: bounce .2s cubic-bezier(.63,.09,.75,.46) infinite alternate;
}
@-webkit-keyframes bounce {
0%, 10% { top: 10px; height: 100px; width: 100px; }
15% { height: 103px; width: 97px; }
35% { height: 105px; width: 95px; }
75% { height: 107px; width: 95px; }
85% { height: 107px; width: 95px; }
100% { top: 200px; height: 80px; width: 105px; }
}
@-moz-keyframes bounce {
0%, 10% { top: 10px; height: 100px; width: 100px; }
15% { height: 103px; width: 97px; }
35% { height: 105px; width: 95px; }
75% { height: 107px; width: 95px; }
85% { height: 107px; width: 95px; }
100% { top: 200px; height: 80px; width: 105px; }
}
@-webkit-keyframes bounceSide {
0% { left: 10px; }
100% { left: 200px; }
}
@-moz-keyframes bounceSide {
0% { left: 10px; }
100% { left: 200px; }
}
by rald_dev