You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would you show a smaller image on top of the preview image after zooming in? Would I need to programmatically combine them first into a single image before showing it?
The text was updated successfully, but these errors were encountered:
It depends if you want the logo in a static location, or if you want it to get zoomed / panned. If it's just a static location, you should be able to use regular CSS and control the behavior with :hover and z-index. Any z-index above 0 should work, because Zoom just relies on DOM order for stacking (no z-index).
In the demo (demo.html in the repo, or at http://www.jacklmoore.com/zoom/), the magnifying glass icon in the top-right corner is handled as described above. Here's the CSS:
If you wanted the logo to be zoomed and able to follow the image around, then they would have to be combined due to the limitations of Zoom. The plugin isn't sophisticated enough to handle an additional layer or multiple backgrounds.
How would you show a smaller image on top of the preview image after zooming in? Would I need to programmatically combine them first into a single image before showing it?
The text was updated successfully, but these errors were encountered: