<h3>Add a Little More Distortion</h3>
<div class="stage">
<div class="box bounce-6"></div>
</div>
body {
font: 1em sans-serif;
text-align: center;
}
.stage {
border-bottom: 3px solid #444;
display: flex;
height: 330px;
width: 100%;
}
.box {
align-self: flex-end;
animation-duration: 2s;
animation-iteration-count: infinite;
background-color: #F44336;
height: 200px;
margin: 0 auto 0 auto;
transform-origin: bottom;
width: 200px;
}
.bounce-6 {
animation-name: bounce-6;
animation-timing-function: ease;
}
@keyframes bounce-6 {
0% { transform: scale(1,1) translateY(0); }
10% { transform: scale(1.1,.9) translateY(0); }
30% { transform: scale(.9,1.1) translateY(-100px); }
50% { transform: scale(1.05,.95) translateY(0); }
57% { transform: scale(1,1) translateY(-7px); }
64% { transform: scale(1,1) translateY(0); }
100% { transform: scale(1,1) translateY(0); }
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.