Skip to content

Commit bdfa17d

Browse files
Change of defaults
1 parent 8d75be2 commit bdfa17d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/docs-reanimated/docs/layout-animations/layout-transitions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ SequencedTransition.duration(1000)
138138
});
139139
```
140140

141-
- `.duration(duration: number)` sets length of the animation (in milliseconds). Defaults to '300'.
141+
- `.duration(duration: number)` sets length of the animation (in milliseconds). Defaults to '500'.
142142
- `.delay(durationMs: number)` is the delay before the animation starts (in milliseconds). Defaults to `0`.
143143
- `.reverse()` determines if the animation should run in reverse. Defaults to `false`.
144144
- `.reduceMotion(reduceMotion: ReduceMotion)` determines how the animation responds to the device's reduced motion accessibility setting.
@@ -189,7 +189,7 @@ FadingTransition.duration(1000)
189189
});
190190
```
191191

192-
- `.duration(duration: number)` sets length of the animation (in milliseconds). Defaults to '300'.
192+
- `.duration(duration: number)` sets length of the animation (in milliseconds). Defaults to '500'.
193193
- `.delay(durationMs: number)` is the delay before the animation starts (in milliseconds). Defaults to `0`.
194194
- `.reduceMotion(reduceMotion: ReduceMotion)` determines how the animation responds to the device's reduced motion accessibility setting.
195195
- `.withCallback(callback: (finished: boolean) => void)` is the callback that will fire after the animation ends. Sets `finished` to `true` when animation ends without interruptions, and `false` otherwise.
@@ -347,7 +347,7 @@ EntryExitTransition.duration(1000)
347347
});
348348
```
349349

350-
- `.duration(duration: number)` sets length of the animation (in milliseconds). Defaults to '300'.
350+
- `.duration(duration: number)` sets length of the animation (in milliseconds). Default depends on entry/exit animation.
351351
- `.delay(durationMs: number)` is the delay before the animation starts (in milliseconds). Defaults to `0`.
352352
- `.exiting(animation)` determines animation shown when element is removed from position. Defaults to `FadeOut`.
353353
- `.entering(animation)` determines animation shown when element is added to new position. Defaults to `FadeIn`.

0 commit comments

Comments
 (0)