francoischalifour / medium-zoom

🔎🖼 A JavaScript library for zooming images like Medium
https://medium-zoom.francoischalifour.com
MIT License
3.59k stars 164 forks source link

Create 2 new parameters : overlayStyles and imgStyles #40

Closed Banb4n closed 6 years ago

Banb4n commented 6 years ago
francoischalifour commented 6 years ago

Hi @Banb4n, thank you for working on this. However, changing an API like this is not something we can afford as it'd create breaking changes. This is something we should discuss as an issue beforehand.

For now, if you encounter a problem with the z-index value, you probably first want to check your own CSS styles. If you don't have control over them, you can still override the CSS class .medium-zoom-overlay.

Hope this will already fix your issue. We can decide later on if having styles as options (or any way of style overriding) is necessary as the demand increases.