Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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. :)



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: