up_down
HTML<div class="up_down"></div>
CSS@keyframes up_down {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-30px);
}
100% {
transform: translateY(0);
}
}
.up_down {
animation: up_down 1s forwards ease;
}