Jump to content

CSS Animation


JoanaN

Recommended Posts

  • 7 months later...

There is Animation, Transition and Transform property of CSS. I have used transition and transform property on image like :

 <style>
        img  {
            width: 100px;
            height: 100px;
            transition: width 2s, height 2s, transform 2s;
        }

            img : hover {
                width: 300px;
                height: 300px;                
                transform: rotate(360deg);               
            }

    </style>

And Html tag

<body>  
    <img src="~/img.png"/>   
</body>

I hope you'll meet your desired output..!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...