CSS-Tricks / AnythingZoomer

Zoom in on images or content
https://css-tricks.github.io/AnythingZoomer/
MIT License
207 stars 45 forks source link

Responsive Image #35

Closed programaction closed 8 years ago

programaction commented 8 years ago

Hi,

Is there a way to make it work with responsive image?

Thank you

JF

Mottie commented 8 years ago

What exactly do you mean by responsive image? Would you please modify this demo to illustrate what you mean.

If you want to programmatically update the plugin, call anything zoomer without any options:

// update plugin
$('.zoom').anythingZoomer();
programaction commented 8 years ago

I would like the zoom container or the image width in % so it adjust to the screen size. Is this possible?

Mottie commented 8 years ago

Using a percentage width is not currently possible.

Initially, I was thinking you meant you were using @media css definitions to step-wise change the image dimensions. If that was the case, then you would only need to update the plugin after the window resize event has stopped firing.

programaction commented 8 years ago

I will have to use @media then...

Thank you.