Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syi0808/solider
https://github.com/syi0808/solider
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/syi0808/solider
- Owner: syi0808
- License: mit
- Created: 2021-01-22T07:45:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-23T11:07:29.000Z (over 3 years ago)
- Last Synced: 2024-04-25T11:03:18.781Z (7 months ago)
- Language: TypeScript
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Solider
## create function
### Parameters
- domObject: HTMLElement
- domObject is slider container element. you need add img or any tags in domObject.
- type: "2d" | "rotation" | "perspective"
- 2d is default type. normal 2d slider.
rotation is 3d slider. this is box (this version is test version thus only four children)
perspective is in development.
- autoplay: boolean
- autoplay is "isAutoplay"
- dots: boolean
- dots is "isDots"
- arrow: boolean
- arrow is "isArrow"
- infinite: boolean
- infinite is "isInfinite"
- draggable: boolean
- draggable is "isDraggable". not only PC, but also mobile.
- autoplayDelay: number (ms)
- speed: number (ms)
- speed is sliding duration.
- leftArrow: string
- rightArrow: string
- Left or Right arrow is string of HTMLElement.
- dotClass: string
- dotClaas is you want to add class in dot, you can use dotClass parameter.### Default Parameters
- domObject: null
- type: 2d
- autoplay: false
- dots: false
- arrow: false
- infinite: false
- draggable: false
- autoplayDelay: 5000
- speed: 400