I created a sliding div animation that is toggled by clicking a link. The div starts in a hidden state, and slides slowly open the first time the link is clicked. The second click hides the div immediately. This simple animation toggles between these two states.

In every browser I have tested (IE 6-8, Safari, Chrome), the animation can be interrupted as it opens by clicking on the toggle link. In other words, the command to hide the...