HTMLify

css3.html
Views: 173 | Author: demo
<!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>

Comments