HTMLify
css3.html
Views: 636 | Author: demo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <!DOCTYPE html> <html> <head> <title>Continuous Fade In and Out Animation with CSS</title> <style> /* Custom CSS for the animation */ .container { text-align: center; padding: 50px; } .fade-in-out { animation: fadeInOut 4s infinite; opacity: 0; } @keyframes fadeInOut { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } </style> </head> <body> <div class="container"> <h1>Continuous Fade In and Out Animation Demo</h1> <p>Animate an element with a continuous fading in and out effect:</p> <!-- Element with Continuous Fading In and Out Animation --> <div class="fade-in-out"> <p>This element continuously fades in and out.</p> </div> </div> </body> </html> |