Ok, I want to make an image slide out from the left side of our website. This is my CSS
.panel{
display:none;
float:left;
}
.pull-me img{
display:inline-block;
width:20px;
height:150px;
text-decoration:none;
border-radius:0px 5px 5px 0px;
padding-top:10px;
}
This is my jQuery
$(document).ready(function(){
$('.pull-me').click(function() {
$('.panel').animate({width:'toggle'},350);
});
});
And this is the HTML
<div class="panel">
<a href="http://www.trustpilot.dk/review/game-desk.net" title="Se vores anmeldelser på http://trustpilot.dk"> <script type="text/javascript"> var tpJsHost = (("https:" == document.location.protocol) ? "https://s3.amazonaws.com/trustbox.trustpilot.com/badge/da/4stars/tp_badge-140.png" : "http://trustbox.trustpilot.com/badge/da/4stars/tp_badge-140.png"); document.write(unescape("%3Cimg src="+ tpJsHost + " alt=Trustpilot Badge %3E%3C/img%3E")); </script></a>
</div>
<p class="slide"><a hre"#" class="pull-me"><img src="http://game-desk.net/templates/gamedesk2013v2/images/trustpilot.png"></a></p>
It works, but not as I want to. When I click the pull-me class, the panel class comes out, but they are on top of eachother. I want the pull-me class to follow when the panel goes out. How can I do that?
