-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all features except pointer interaction and easing.
- Loading branch information
1 parent
5b02530
commit b34a3b8
Showing
3 changed files
with
160 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/embla-carousel-auto-scroll/src/components/Options.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
import { CreateOptionsType } from 'embla-carousel/components/Options' | ||
|
||
export type OptionsType = CreateOptionsType<{ | ||
direction: 'forward' | 'backward' | ||
speed: number | ||
delay: number | ||
playOnInit: boolean | ||
stopOnFocusIn: boolean | ||
stopOnInteraction: boolean | ||
stopOnMouseEnter: boolean | ||
rootNode: ((emblaRoot: HTMLElement) => HTMLElement | null) | null | ||
}> | ||
|
||
export const defaultOptions: OptionsType = { | ||
direction: 'forward', | ||
speed: 1, | ||
delay: 1000, | ||
active: true, | ||
breakpoints: {}, | ||
playOnInit: true, | ||
stopOnFocusIn: true, | ||
stopOnInteraction: true, | ||
stopOnMouseEnter: false, | ||
rootNode: null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters