JoanaN Posted July 4, 2019 Share Posted July 4, 2019 Hi, I have these comic PNG images and I want to animate them using CSS. I want to rotate any resize them; how can I do that? Do you have any other animation ideas that work well with comic style? Thank you! Link to comment Share on other sites More sharing options...
shaili_shah Posted February 13, 2020 Share Posted February 13, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now