I need help. I am able to turn an event on with the click of a button, but can't figure out how to turn it off with another click of that same button. Also, I can't seem to get the animation speed and easing to work. Any suggestions? (I'm learning Jquery)
#services {
background: none repeat scroll 0 0 #FFFFFF;
margin: 0;
padding: 20px;
position: absolute;
right: -22%;
top: 0;
width: 22%;
min-height: 100%;
box-shadow: -2px 0 5px #000000;
-moz-box-shadow: -2px 0 5px #000000;
-webkit-box-shadow: -2px 0 5px #000000;
overflow: auto;
}
<script>
$(".btn-services").on('click', function(){
$("#services").animate({right:'0%'}, 1000, 'linear');
});
</script>