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
This commit is contained in:
Felix Lemke 2019-01-23 00:02:43 +01:00 committed by Jason Aden
parent c1fb9c265c
commit 465abab213
1 changed files with 3 additions and 3 deletions

View File

@ -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 }))
* ])
* ```
*