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

see comment here: https://github.com/adobe/brackets/pull/7639#issuecomment-41753833
cc @larz0 @redmunds