I like to create a animate when user click on a button.There are two animate function I like to do on click so I thought to use toggle function which swap between two function.
Now problem is if I use toggle function it doing the two animate function without click and also the button disappears.
Here slider is the div which animates.
How to do the animate functions alternatively every time when user click a button?
Thanks in advance.