From bfd08c08c5c304bc7d9824eac4286fcde4c4e8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Rodr=C3=ADguez?= Date: Sat, 22 Oct 2016 20:35:12 +0200 Subject: [PATCH] docs(animation): add note about aliases (#2629) --- public/docs/ts/latest/guide/animations.jade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/docs/ts/latest/guide/animations.jade b/public/docs/ts/latest/guide/animations.jade index 80262bedee..14d189b283 100644 --- a/public/docs/ts/latest/guide/animations.jade +++ b/public/docs/ts/latest/guide/animations.jade @@ -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" )