HTMLify

css1.html
Views: 204 | Author: demo
<!DOCTYPE html>
<html>
<head>
    <title>Non-Bootstrap Animation Demo</title>
    <style>
        /* Custom CSS for the animation */
        .container {
            text-align: center;
            padding: 50px;
        }

        .fade-in {
            animation: fadeIn 4s;
            opacity: 0;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>CSS Animation Demo</h1>
        <p>Animate an element with a simple fading effect:</p>

        <!-- Element with Fading Animation -->
        <div class="fade-in">
            <p>This is an element with a fading animation.</p>
        </div>
    </div>
</body>
</html>

Comments