toggle animations on click