-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom not working after switching image #74
Comments
You need to manually add an event to your thumbnail clicks to switch out the 'background-image' in the inner div inside the zoomWindowContainer div. A pain, but it worked just now for me via jquery.
|
That actually doesn't fix it. The image in the zoonWindowContainer div is being replaced properly, but it doesn't move when I move the mouse over the image. |
same problem =/ |
I got it @JerVoo after onclick you need // remove current zoom and call again jQuery("#elevate-zoom").elevateZoom({ |
Thanks @mninaut, very helpful 👍 |
@mninaut you're actually amazing :D |
`I went with on click event to $(".zoom2").elevateZoom({ zoomType : "inner", cursor: "crosshair" });
$(".zoom3").elevateZoom({ zoomType : "inner", cursor: "crosshair" }); |
Does anyone know how to get the Lightbox and Gallery to change to constrain when viewed on small screens? |
thanks alot mninaut its work for me |
So here's what happens: in a website there's an image gallery. This consists of one large image and multiple smaller thumbnails below it, which may contain videos and images. When the thumbnail list contains a video, this video is being opened in lightbox directly. When it's an image, the large image must be switched. Clicking on it should open the Fancybox.
This all works without a problem: the large image switches whenever I click on a thumbnail. But after the switch, the zoom doesn't always work. It only shows a part of the image and when I move my mouse around over the image, nothing changes. The lens does follow my mouse, which indicates that it partially behaves the way it should. If I zoom in or out once and move the lens around again, the behaviour is back the way it's supposed to be.
Question: how can this be fixed? HTML and Javascript in use is below.
HTML
Javascript
The text was updated successfully, but these errors were encountered: