From 465abab2133dfff09a641173191e6e6f37d36f68 Mon Sep 17 00:00:00 2001 From: Felix Lemke Date: Wed, 23 Jan 2019 00:02:43 +0100 Subject: [PATCH] docs(animations): fix group and sequence function usage examples (#28305) animate functions now contain style functions instead of plain objects e.g. animate(1s, { background: black })) to animate(1s, style({ background: black })) PR Close #28305 --- packages/animations/src/animation_metadata.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/animations/src/animation_metadata.ts b/packages/animations/src/animation_metadata.ts index dfaf9d60a7..23d11c230e 100755 --- a/packages/animations/src/animation_metadata.ts +++ b/packages/animations/src/animation_metadata.ts @@ -671,8 +671,8 @@ export function animate( * * ```typescript * group([ - * animate("1s", { background: "black" })) - * animate("2s", { color: "white" })) + * animate("1s", style({ background: "black" })), + * animate("2s", style({ color: "white" })) * ]) * ``` * @@ -708,7 +708,7 @@ export function group( * ```typescript * sequence([ * style({ opacity: 0 })), - * animate("1s", { opacity: 1 })) + * animate("1s", style({ opacity: 1 })) * ]) * ``` *