![]() Topic awaiting preservation: Hiding a Div when scrolling (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: |
![]() How can I hide a div while the page is being scrolled and display it again immediately after scrolling ends? |
Paranoid (IV) Inmate From: Dublin, Ireland |
![]() Probably no better but if you have a function on an interval measuring the differences in the scrolled length that is run onScroll, hide is when its changing , show when it stays the same for one third of a second or three runs of the function. |
Bipolar (III) Inmate From: Brisbane |
![]() FWIW you could use the CSS "fixed" property to acomplish this without any scripting at all. It's just a pitty IE doesn't support this one yet. |
Bipolar (III) Inmate From: |
![]() Thanks guys. I think I'll just leave it as is for now. The menu doesn't snap into position when the mousewheel is turned but it will as soon as the mouse moves. |