I have a task that requires to rotate a logo with only inline CSS, and without JS at all.
I tried to look forward into defining an animation in the style
attribute but couldn’t find a thing.
I have a task that requires to rotate a logo with only inline CSS, and without JS at all.
I tried to look forward into defining an animation in the style
attribute but couldn’t find a thing.
2
Answers
please try this code
You can’t define animation inline. The animation is not declared in the element, it’s only called upon it.
However If you only want to rotate (not animate), you can do this with css
transform
property.Here is an example: