javascript - Angular 1.2.5 animation classes are not removed in iOS6 -
i have animation, box slides , down. works on web, ios , android phonegap app , mobile safari (all tested). works on iphone5 ios6, have problems because supporting classes, such ng-hide-add, ng-hide-remove not deleted after animation completes. eperienced similar issues?
edit: appears animation doesn't work on ios6. classes added, never removed.
update: issue seems happen when animation time less 0.5s
i did tests , looks in application caused animation classes on ios6 sticky if animation under 0.5 seconds. able solve issue in hacky way, deleting classes manually upon animation finish event.
if(ios6) { $('.element').on('webkittransitionend otransitionend otransitionend mstransitionend transitionend', function() { $('.element').removeclass("ng-animate ng-hide-add ng-animate-start ng-animate-active ng-hide-add-active ng-hide-remove ng-hide-remove-active"); }); }
javascript angularjs animation
No comments:
Post a Comment