Gathering detailed insights and metrics for react-elastislide
Gathering detailed insights and metrics for react-elastislide
npm install react-elastislide
Typescript
Module System
Node Version
NPM Version
71.2
Supply Chain
83
Quality
82.3
Maintenance
100
Vulnerability
80.9
License
Total Downloads
875
Last Day
1
Last Week
5
Last Month
19
Last Year
875
Minified
Minified + Gzipped
Latest Version
0.1.2
Package Id
react-elastislide@0.1.2
Unpacked Size
134.93 kB
Size
27.06 kB
File Count
79
NPM Version
10.2.3
Node Version
20.10.0
Publised On
31 Oct 2024
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
5
Compared to previous week
Last month
35.7%
19
Compared to previous month
Last year
0%
875
Compared to previous year
4
react-elastislide is a customizable React slider component that supports images, videos, or HTML content with smooth elastic scrolling animations and flexible slide types.
1npm i react-elastislide
slides: IElastiSlide[]
– An array of slides to display.slideWidth?: number
– The width of each slide (optional).slideHeight?: number
– The height of each slide (optional).gap?: number
– The gap between each slide (optional).animDuration?: number
– Duration of the slide animation in seconds (optional).animDelay?: number
– Delay between slide animations in seconds (optional).btnPrev?: any
– Custom previous button component (optional).btnNext?: any
– Custom next button component (optional).btnPrevContent?: string
– Text content for the previous button (optional).btnNextContent?: string
– Text content for the next button (optional).overflow?: boolean
– Whether to allow the slider to overflow (optional).classNames?: ElastiSliderClassNames
– Custom class names for styling the slider (optional).onSlideClicked?: (index: number, slide: IElastiSlide, slides: IElastiSlide[]) => void
– Callback triggered when a slide is clicked (optional).onFirstScreen?: (slides: IElastiSlide[]) => void
– Callback triggered when the first screen is visible (optional).onLastScreen?: (slides: IElastiSlide[]) => void
– Callback triggered when the last screen is visible (optional).onScreenChanged?: (currentStep:number,totalSteps:number,slides: IElastiSlide[]) => void
- Callback triggered when screen is changed (optional).1const esliderConfig: ElastiSliderProps = { 2 slides: [ 3 { src: 'img_1.png', type: ElastiSlideType.Image }, 4 { src: 'img_2.png', type: ElastiSlideType.Image }, 5 { src: 'img_3.png', type: ElastiSlideType.Image } 6 ], 7 slideWidth: 300, 8 slideHeight: 300, 9 gap: 40, 10 animDuration: 0.35, 11 animDelay: 0.075, 12 overflow: true, 13 classNames: { 14 container: 'eslider-container', 15 arrows: 'eslider-arrows', 16 arrow: 'eslider-arrow', 17 arrowPrev: 'prev', 18 arrowNext: 'next', 19 hidden: 'hidden', 20 slider: 'eslider', 21 slide: 'eslide', 22 slideContent: 'eslide-content', 23 }, 24 onSlideClicked: (index: number, slide: IElastiSlide, slides: IElastiSlide[]) => { 25 console.log(`Slide clicked: ${index}`, slide); 26 } 27}; 28 29<ElastiSlider {...esliderConfig} />
No vulnerabilities found.
No security vulnerabilities found.