File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ type Config = {
2222
2323 // Whether to animate the product tour. (default: true)
2424 animate? : boolean ;
25+ // Animation duration in milliseconds. (default: 400ms)
26+ duration? : number ;
2527 // Overlay color. (default: black)
2628 // This is useful when you have a dark background
2729 // and want to highlight elements with a light
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export type Config = {
1212 steps ?: DriveStep [ ] ;
1313
1414 animate ?: boolean ;
15+ duration ?: number ;
1516 overlayColor ?: string ;
1617 overlayOpacity ?: number ;
1718 smoothScroll ?: boolean ;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function refreshActiveHighlight() {
5757}
5858
5959function transferHighlight ( toElement : Element , toStep : DriveStep ) {
60- const duration = 400 ;
60+ const duration = getConfig ( "duration" ) || 400 ;
6161 const start = Date . now ( ) ;
6262
6363 const fromStep = getState ( "__activeStep" ) ;
You can’t perform that action at this time.
0 commit comments