I was wondering if there was a simple way to scale smaller images inside a fancyBox (2.0.6) container.
Right now my page works fine when I have high-res images, the fancybox scales to the viewport.
What I want to do is if there’s a small image (say 200x300px), I want to resize that image to fit the viewport. I’m aware it will degrade in quality, but I still want it to scale up.
Can this be done? I coundn’t find anything in the fancyBox API to do this, and no plugins.
Thanks!
It’s feasible BUT the transition will look really weird (because is not the normal way to work but forcing the upscale)
Assuming you have this html:
you can try this script:
PS. use at your own risk