When you click a button a div
appears with the effect rising to the top, with Jquery. I need to click it again to disappear with the opposite animation - descending. Since I understand little of JS, I could only do it with two different buttons.
Is there a way to do this, in the style of a toggle
with just one button?
My code so far:
$(".lyricshow").click(function () {
$(".lyricscreen").show()
.animate({top:0}, function() {});
});
$(".lyricsclose").click(function () {
$(".lyricscreen").hide()
.animate({bottom:0}, function() {});
});