Home › Forums › CSS › How to make image look like it is rotating? › Reply To: How to make image look like it is rotating?
June 28, 2017 at 11:45 pm
#256234
Participant
In your animation, you’re changing the width
, which gives you the idea the image is rotating along the y-axis. Why not use the height
then?
Or, another way is using rotation
, like this:
0% {transform: rotateX(0deg);}
50% {transform: rotateX(90deg);}
100% {transform: rotateX(0deg);}