mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
chore(docs): specify how ngClass deals with natural CSS transitions
This commit is contained in:
parent
eb51b024c9
commit
947a44d1ee
1 changed files with 4 additions and 4 deletions
|
|
@ -193,10 +193,10 @@ function classDirective(name, selector) {
|
|||
|
||||
## ngClass and pre-existing CSS3 Transitions/Animations
|
||||
The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.
|
||||
Therefore, if any CSS3 Transition/Animation styles (outside of ngAnimate) are set on the element, then, if a ngClass animation
|
||||
is triggered, the ngClass animation will be skipped so that ngAnimate can allow for the pre-existing transition or animation to
|
||||
take over. This restriction allows for ngClass to still work with standard CSS3 Transitions/Animations that are defined
|
||||
outside of ngAnimate.
|
||||
Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder
|
||||
any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure
|
||||
to view the step by step details of {@link ngAnimate.$animate#methods_addclass $animate.addClass} and
|
||||
{@link ngAnimate.$animate#methods_removeclass $animate.removeClass}.
|
||||
*/
|
||||
var ngClassDirective = classDirective('', true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue