views:

122

answers:

1

I'd really love the surrounding content to "scroll" up/down in like when using Scroll - but would also love the appropriate div to "fade" in.

+2  A: 

Set is opacity to 100% transparent, then do a slide in effect to scroll the content down. Finally, fade the element in again.

Something like:-

$("mydiv").css("opacity", "0").slideDown("normal", function() {$(this).fadeIn("normal");});
rikh
what'd be the best way to make that a toggle?
hejog
opacity at 1 is 100% *visible*. opacity refers to how opaque it is. opacity at 0 is transparent.
Jonathan Fingland
Ooops, you are right. I've changed the 1 to 0.
rikh