Does anyone know if there is any JavaScript library for image flipping. I don’t want the css3 effect i want to actually flip an image as you do on image editors when right becomes left.
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.
An easy way to flip an image is to use CSS3. I assume by “CSS3 effect” you meant an animation, and this does not do this.
This works by scaling the image by -1 on the X axis (flipping it along that axis) and 1 on the Y axis (doing nothing). If you wanted to flip on the Y axis rather than the X axis, you could switch around X and Y.
CSS3 transforms could also be used for rotating, if the need arose. Rather than
scale(-1, 1)you could use something likerotate(90deg)to rotate 90 degrees clockwise.For Internet Explorer support, you can use the
filterproperty: