Is it possible to create a partially visible div on a webpage, similar to a footer, that slides up when clicked? This div will contain important information.
I have managed to achieve this to some extent, but the issue I am facing is that the div doesn't actually get hidden, rather it just changes its position.
You can view the demo by visiting: http://jsfiddle.net/8ZFMJ/394/
var clicked=false;
$(".two").on('click', function(){
if(clicked)
{
clicked=false;
$(".two").css({"bottom": -430});
}
else
{
clicked=true;
$(".two").css({"bottom": "-200px"});
}
});