docs(animation): add note about aliases (#2629)
This commit is contained in:
parent
4c85f0a91d
commit
bfd08c08c5
|
@ -179,6 +179,14 @@ figure
|
|||
are different on enter and leave: the element enters from the left
|
||||
and leaves to the right.
|
||||
|
||||
.l-sub-section
|
||||
:marked
|
||||
These two common animations have their own aliases:
|
||||
code-example(language="typescript").
|
||||
transition(':enter', [ ... ]); // void => *
|
||||
transition(':leave', [ ... ]); // * => void
|
||||
|
||||
:marked
|
||||
## Example: Entering and leaving from different states
|
||||
figure
|
||||
img(src="/resources/images/devguide/animations/animation_enter_leave_states.gif" alt="Enter and leave animations combined with state animations" align="right" style="width:200px" )
|
||||
|
|
Loading…
Reference in New Issue