Hacker News new | ask | show | jobs
by maxmcd 4214 days ago
Lock the body of a site by default? I can see when I'm scrolling.

Position fixed? What about when the modal content is longer than than the scroll area?

There are animations for me on mobile. :)

1 comments

If you make the black overlay container position fixed and the window itself normal, you can have the modal scroll within the context of the black overlay. Facebook uses this same method and it's significantly nicer!
Ah, of course, understood.