<Counter>
sharedMotionStatsPresentation
Animates a number from from to to on slide enter (client).
When to use: Headline metrics on pitch slides.
Preview
| Prop | Type | Notes |
|---|---|---|
| from | number | Optional. Default: 0. Start value. |
| to | number | Required. End value. |
| suffix | string | Optional. Appended after the number. |
| tween | object | Optional. Optional { duration, ease, delay } for the count. |
Examples
<Counter from={0} to={142} suffix=" hrs / week" tween={{ duration: 1.2, ease: "power2.out" }} />