Skip to content

Commit 4a0701b

Browse files
Stephan Brandtdohooo
authored andcommitted
Feat: Scroll interval and scoll duration should not be necessarily be the same time interval
1 parent cd25ad8 commit 4a0701b

File tree

5 files changed

+41
-29
lines changed

5 files changed

+41
-29
lines changed

docs/props.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
| defaultIndex || 0 | number | Default index |
1414
| autoPlay || false | boolean | Auto play |
1515
| autoPlayReverse || false | boolean | Auto play reverse playback |
16-
| autoPlayInterval || 1000 | autoPlayInterval | Auto play playback interval |
16+
| autoPlayInterval || 1000 | number | Auto play playback interval |
17+
| scrollAnimationDuration || 500 | number | Time a scroll animation takes to finish |
1718
| loop || true | boolean | Carousel loop playback |
1819
| onSnapToItem || | (index: number) => void | Callback fired when navigating to an item |
1920
| onScrollBegin || | () => void | Callback fired when scroll begin |

0 commit comments

Comments
 (0)