user405398
user405398

Reputation:

How to do image zoom out and zoom in with cursor attribute?

I have a scenario of opening an image in a new window. There i need to add zoom in and zoom out option for the images which are all big.

Here is one example. I want to know, how they are doing zoom in and zoom out.

Thanks!

Upvotes: 0

Views: 4484

Answers (2)

stecb
stecb

Reputation: 14746

if you want to do a "custom" zoom in/out, you could use some JS to set the zoom css prop i.e.:

http://www.jsfiddle.net/steweb/65FH5/

Upvotes: 1

deceze
deceze

Reputation: 522155

It's just an image, there's no magic. Any zoom function you may see there is a feature of your browser.

Upvotes: 2

Related Questions