Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9d69a0a

Browse files
matskoIgorMinar
authored andcommitted
feat($animate): ensure CSS transitions can work with inherited CSS class definitions
BREAKING CHANGE ngAnimate addClass / removeClass animations are now applied right away. This means that as soon as the animation starts the class will be added (addClass) or removed (removeClass) to the element being animated instead of after the -add-active / -remove-active animations are completed. This allows for animations outside of ngAnimate to not conflict with $animate. This commit introduces beforeAddClass and beforeRemoveClass animation event functions and executes any addClass and removeClass event functions AFTER the class has been added or removed (this is opposite functionality of how ngAnimate used to work when performing JS-enabled animations addClass / removeClass animations). If your animation code relies on any animations being performed prior to the class change then simply use the new beforeAddClass and beforeRemoveClass animation event functions. Finally, when animating show and hide animations using CSS transitions or keyframe animations, ng-hide-remove doesn't require `display:block!important` for ng-hide-add anymore.
1 parent 7d2d257 commit 9d69a0a

File tree

2 files changed

+501
-285
lines changed

2 files changed

+501
-285
lines changed

0 commit comments

Comments
 (0)