do not do animateUsingClass on hidden elements

webkitTransitionEnd won't fire when the element is hidden
and the animation class will stay on the element
Merge pull request #7713 from adobe/zaggino/fix-7639

do not do animateUsingClass on hidden elements