CSS Animation Property

Full Stack Web Development Courses with Real-time projects Start Now!!

Program 1

<html>
    <head>
        <style>
            div{
                background-color:red;
                width:300px;
                height:300px;
                /*animation-name:example;
                animation-duration:3s;
                animation-delay:2s;
                animation-iteration-count:3;
                animation-timing-function: ease-out;*/
                animation:example 2s linear 2s 3;
                
               
                
            }
            @keyframes example
            {
                from {background-color: red;}
                to {background-color: yellow;}
            }

            
        </style>
    </head>
    <body>
        <div>
            This is some text
        </div>
    </body>
    </html>

 

We work very hard to provide you quality material
Could you take 15 seconds and share your happy experience on Google

courses

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *