Skip to content
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

overlay and image divs appended before closing body tag #37

Closed
selfagency opened this issue Feb 23, 2018 · 1 comment
Closed

overlay and image divs appended before closing body tag #37

selfagency opened this issue Feb 23, 2018 · 1 comment

Comments

@selfagency
Copy link

selfagency commented Feb 23, 2018

so this is weird—

      mediumZoom('[data-action="zoom"]', {
        container: ('#zoom-container'),
        background: bgColor,
        margin: 40
      })

when i click on an image, my specified container is completely ignored and the overlay and image are inserted before the closing body tag. the image is also repeated twice.

screenshot 2018-02-22 21 41 52

@francoischalifour
Copy link
Owner

Hi @selfagency, did you style your #zoom-container? You need to specify its dimensions with CSS attributes. Also, note that you don't need the parentheses around your selector.

If you need further support, please provide a reproducible example on Codepen for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants