Make a div fall off the page

Posted by Daniel Hertz on Stack Overflow See other posts from Stack Overflow or by Daniel Hertz
Published on 2010-04-10T23:04:46Z Indexed on 2010/04/10 23:13 UTC
Read the original article Hit count: 324

Hey,

So I have been playing with jQuery for a good time now and I'm trying to get an effect to work properly. I have a main square div in the middle of the page and when someone clicks a link I want the box to look like its falling off the page and disappear, revealing a new page behind it. I'v been playing with the easing plugin but I can seem to get what I want to work. Basically I have the div's top margin or just top distance increased to a large number. However, this just makes the div fall but it also expands my page and its just much lower on the page. I basically want the div to fall out of site and not change the dimensions of the site. Anyone know how to do that?

Thanks! Danny

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins