spinningarrow / zoom-vanilla.js

Medium's image zoom in vanilla JS (no jQuery).
https://code.sahil.me/zoom-vanilla.js/
MIT License
234 stars 22 forks source link

Feature: dynamic change z-index #49

Closed HelloChunWei closed 1 year ago

HelloChunWei commented 3 years ago

Hi there,

This is a great repo for me. Hover, if it has the bigger z-index( more than 666 ) at the HTML document, the image zooming may not work.

Then I create a function to find the maxium z-index at the HTML document, and dynamic change z-index. It guarantee the image zooming will not be cover by other DOM.

Please have a look. 👍

spinningarrow commented 1 year ago

Closing this PR since it can be solved using CSS as described here.