Input
Output
<!DOCTYPE html> <html> <head> <style> .ball { width: 50px; height: 50px; background-color: tomato; border-radius: 50%; position: relative; animation: bounce 1s infinite ease-in-out; } @keyframes bounce { 0%, 100% { top: 0; } 50% { top: 100px; } } </style> </head> <body> <div class="ball"></div> </body> </html>