jquery animate change back

abohammed

New Member
I have an animateion which works fine. But I can't change it back. Can someone give me a hing?\[code\]$(".arrowclose").click(function() { $(".arrow").animate({ left: "218px" }, 1000, "easeOutQuad"); setTimeout(function() { $(".arrow").addClass("arrow_right arrowopen"); $(".arrow").removeClass("arrow_left arrowclose"); }, 1000);});$(".arrowopen").click(function() { $(".arrow").animate({ left: "486px" }, 1000, "easeOutQuad"); setTimeout(function() { $(".arrow").addClass("arrow_left arrowclose"); $(".arrow").removeClass("arrow_right arrowopen"); }, 1000);});\[/code\]
 
Back
Top