Topic awaiting preservation: Hiding a Div when scrolling (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: |
posted 02-20-2004 06:15
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 |
posted 02-23-2004 00:37
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 |
posted 02-23-2004 02:19
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: |
posted 02-23-2004 04:22
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. |