Is it possible to rotate images from right to left in a DIV with pure CSS i mean without using any JavaScript?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That is possible using CSS3’s
transform: rotate(...)or some proprietary IE filters. See an example or the specification.e.g.
Note that this transform is a rendering transform; so the rotation won’t affect layout (similar to
position: relativecontent). That’s why absolute positioning is often the easiest route to use here. Also, be aware that the spec isn’t final; details may change (in particular, how transforms interact with layout – another reason to stick withposition:absolute;).Finally, you may be interested in animated transitions; as a randomly googled example you could look here. These are also not yet finalized, though implemented partially in firefox, webkit and opera: a sign the standard will probably stick. Non-stop animations are an Apple proposal which so far is implemented in webkit only and are quite a bit more complex than transitions; I’d stay away from these except for tech demos since the standard may well change in potentially complex ways.