CSS를 사용하여 margin-bottom 속성에 애니메이션을 구현하려면 다음 코드를 실행해 보세요.
예시
<!DOCTYPE html> <html> <head> <style> p { animation: mymove 3s infinite; margin-bottom: 20px; } @keyframes mymove { 70% { margin-bottom: 60px; } } </style> </head> <body> <p>This is demo text! This is demo text! This is demo text! This is demo text! This is demo text! This is demo text! This is demo text! This is demo text! This is demo text! This is demo text! This is demo text! This is demo text! </p> <p>This is demo text 2!</p> </body> </html>