I’m using the following code to slide up and down a div:
$(document).ready(function(){
$(".toggle-button").click(function () {
$(".about").slideToggle("slow");
});
});
I will like to add a fade in and fade out effect to the toggle button.
Any suggestions about how to do that?
A simple way to achieve this is to pass the
togglevalue to animate():You can see the results in this fiddle.