HTMLify
css2.html
Views: 702 | 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 39 40 41 42 43 44 | <!DOCTYPE html> <html> <head> <title>Fade In and Out Animation Demo</title> <style> /* Custom CSS for the animation */ .container { text-align: center; padding: 50px; } .fade-in-out { animation: fadeInOut 4s; opacity: 0; } @keyframes fadeInOut { 0% { opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } } </style> </head> <body> <div class="container"> <h1>Fade In and Out Animation Demo</h1> <p>Animate an element with a fading in and out effect:</p> <!-- Element with Fading In and Out Animation --> <div class="fade-in-out"> <p>This element fades in and out.</p> </div> </div> </body> </html> |