-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Conversation
@@ -9,3 +9,6 @@ | |||
ng\:form { | |||
display: block; | |||
} | |||
|
|||
.ng-animate { clip:rect(1px, 0, auto, auto); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a comment with explanation of why this is here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also please verify that the comment is stripped from the string inlined into angular.js (it should be)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* The clip property will ensure that the CSS transition will
- ALWAYS animate something when transitions are performed using
- ngAnimate + $animate. If a CSS transition doesn't have any
- transition properties to transition to then it will hang until a
- new style is changed. The clip style is a highly underused property
- and is only visible on screen if position=absolute|fixed is used. */
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And yes it does get stripped.
lgtm |
The message for the
|
…ass 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 ng-hide-remove doesn't require display:block!important anymore and that must be placed on ng-hide-add instead if you plan on animating show and hide animations using CSS transitions or keyframe animations.
I made the changes and landed this PR |
No description provided.