mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-18 11:31:07 +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
|
## 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.
|
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
|
Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder
|
||||||
is triggered, the ngClass animation will be skipped so that ngAnimate can allow for the pre-existing transition or animation to
|
any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure
|
||||||
take over. This restriction allows for ngClass to still work with standard CSS3 Transitions/Animations that are defined
|
to view the step by step details of {@link ngAnimate.$animate#methods_addclass $animate.addClass} and
|
||||||
outside of ngAnimate.
|
{@link ngAnimate.$animate#methods_removeclass $animate.removeClass}.
|
||||||
*/
|
*/
|
||||||
var ngClassDirective = classDirective('', true);
|
var ngClassDirective = classDirective('', true);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue