how do I determine the positions in percentages?
$(document).ready(function(){
$("#button").toggle(function(){
$("#slide").animate({top:-100%},1000);
},function(){
$("#slide").animate({top:0%},1000);
});
});
Please suggest.
$(document).ready(function(){
$("#button").toggle(function(){
$("#slide").animate({top:'-100%'},1000);
},function(){
$("#slide").animate({top:'0%'},1000);
});
});
Add quotes. (I used single quotes, but js doesn't care if it is ' or ")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With