Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to make image look like it is rotating? Reply To: How to make image look like it is rotating?

#256234
JeroenR
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);}