How I am able to zoom in on a rectangular area on an image using jQuery?

I don’t need the selection functionality working, just need to have a code that zoom in that area on ONE image by defining the correct position and scale.
Many thanks
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.
You can use the jQuery animate function for this.
You’ll want to animate the background-position property of your image, and the background-size property.
I personally use this extension for animations, since CSS3 transitions are generally smoother:
https://github.com/benbarnett/jQuery-Animate-Enhanced/