joaopereirawd / animatedModal.js

animatedModal.js is a jQuery plugin to create a fullscreen modal with CSS3 transitions. You can use the transitions from animate.css or create your own transitions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Position fixed not working in the modals

peterlunglum opened this issue · comments

I am trying to make the close button in the modals follow the user as they scroll down within the modal. However, they're stuck in position as if they were position relative or absolute. Is anybody else experiencing this problem?

I've included the work in progress I'm using.

demos.zip

Found out that "backface-visibility" in animate.css messes with position:fixed. If you delete those, then position:fixed works in most browser, but unfortunately not in all browsers. If you don't include animate.css altogether it works in all browsers, BUT you cannot close the modal anymore :-( Does anybody know how to adjust animate.css correctly?