
Untitled
By: a guest on
Apr 29th, 2012 | syntax:
None | size: 0.56 KB | hits: 13 | expires: Never
Javascript Animate won't work
<script type="text/javascript">
$(document).ready(function() {
$("#slide").click(function(){
$('#contact-wrap').animate({
right: '0'
}, 500);
});
});
</script>
#contact-wrap
{
height: 30px;
width:10px;
border:solid 1px black;
display: block;
position:absolute;right:-200px;
}
<a id="slide">test</a>
<div id="contact-wrap"></div>
$("#slide").click(function(){
$('#contact-wrap').animate(
{ right: '0' },
500);
});