Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit bfd08c0

Browse files
authored
docs(animation): add note about aliases (#2629)
1 parent 4c85f0a commit bfd08c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

public/docs/ts/latest/guide/animations.jade

+8
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ figure
179179
are different on enter and leave: the element enters from the left
180180
and leaves to the right.
181181

182+
.l-sub-section
183+
:marked
184+
These two common animations have their own aliases:
185+
code-example(language="typescript").
186+
transition(':enter', [ ... ]); // void => *
187+
transition(':leave', [ ... ]); // * => void
188+
189+
:marked
182190
## Example: Entering and leaving from different states
183191
figure
184192
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" )

0 commit comments

Comments
 (0)