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

docs($animate): document the 3rd party framework compatibility issues #ngEurope #9722

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/ngAnimate/animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,19 @@
* Also, try not to mix the two class-based animation flavors together since the CSS code may become
* overly complex.
*
* <div class="alert alert-warning">
* **Note:** Some third-party frameworks place animation duration defaults across many element or className selectors in order to make their code small and reuseable.
* This can lead to issues with ngAnimate, which is expecting actual animations on these elements and has to wait for their completion.
* You can prevent this unwanted behavior by using a prefix on all your animation classes:
* ```css
* .animate-fade-add.animate-fade-add-active {
* transition:1s linear all;
* opacity:0;
* }
* ```
* After what you can configure `$animate` to enforce this prefix: `$animateProvider.classNamePrefix(/animate-/);`
* </div>
*
* ### CSS Staggering Animations
* A Staggering animation is a collection of animations that are issued with a slight delay in between each successive operation resulting in a
* curtain-like effect. The ngAnimate module (versions >=1.2) supports staggering animations and the stagger effect can be
Expand Down