content = 280) c..." />

Hide an element without masking item over top?

You can easily do this with a wrapper that has overflow set to hidden jsfiddle.net/xvNf6/1 HTML div id="wrapper" style="height:0px;"> content = 280) clearInterval(animationTimer) },1) if you can use jQuery $("#wrapper"). Animate({height:"280px"},1000).

You can easily do this with a wrapper that has overflow set to hidden jsfiddle.net/xvNf6/1/ HTML content Sample CSS #wrapper{width:300px;height:280px;margin:0 auto; overflow:hidden; background:#eee} Javascript //if you must not use jQuery var animationTimer = setInterval(function(){ var wrapper = document. GetElementById("wrapper"); wrapper.style. Height = (parseInt(wrapper.style.

Height) + 1) + "px"; if(parseInt(wrapper.style. Height) >= 280) clearInterval(animationTimer) },1); //if you can use jQuery $("#wrapper"). Animate({height:"280px"},1000).

Sorry, I forgot to mention that I don't want to adjust the height of the element I am exposing either. Imagine for example the element to be exposed is an image, so whereas resizing it would almost achieve the desired effect, the image would appear squashed. If that makes sense?

– Ashley Sep 23 at 16:02 @Ashley that's the point of the overflow:hidden div. With that, it doesn't resize anything but instead cuts it all off. – Joseph Sep 23 at 16:10.

Place your element within a parent div with overflow:hidden. Then, position your element beyond bounds of the parent div so that it is hidden. #wrapper { overflow: hidden; } #target { height: 100px; top: -100px; } /* shift element out of view */ You can then reveal it by animating to {"top":0} to get the slidedown effect that doesn't resize the height of the element.

Here's a rather crude demo: jsfiddle.net/7RSWZ/ Update: Here's another demo that attempts to deal better with different content sizes by dynamically setting the heights and top values. jsfiddle.net/7RSWZ/2.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions