[jQuery] Re: shifting a box sideways and making it gradually dissapear

2009-07-22 Thread Simon
Thanks! I had no idea the overflow property even existed. You've saved me a lot of head scratching. Cheers, Simon On Jul 22, 4:49 am, Paul Mills wrote: > Hi, > Try this. > Add overflow:hidden to #box and then animate the left of #innerbox: > > #box{ >   width:800px; >   height:400px; >   borde

[jQuery] Re: shifting a box sideways and making it gradually dissapear

2009-07-22 Thread Paul Mills
Hi, Try this. Add overflow:hidden to #box and then animate the left of #innerbox: #box{ width:800px; height:400px; border:1px solid #444; overflow:hidden; } $("#toggle").toggle(function(){ $("#innerbox").animate({ left: '180px' }, 'slow'); },function(){ $("#innerbox").animate({ left: '0