Gathering detailed insights and metrics for tiny-slider-react-ar
Gathering detailed insights and metrics for tiny-slider-react-ar
Gathering detailed insights and metrics for tiny-slider-react-ar
Gathering detailed insights and metrics for tiny-slider-react-ar
npm install tiny-slider-react-ar
Typescript
Module System
Node Version
NPM Version
JavaScript (56.97%)
Shell (43.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
47 Stars
68 Commits
26 Forks
3 Watchers
2 Branches
5 Contributors
Updated on Apr 05, 2024
Latest Version
0.4.2
Package Id
tiny-slider-react-ar@0.4.2
Unpacked Size
21.07 kB
Size
6.92 kB
File Count
15
NPM Version
6.10.3
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
21
Original plugin tiny-slider
prop | decription |
---|---|
settings | options slider |
onClick | callback to return slide clicked (slideClicked, info, event) |
startIndex | index of carousel initiation |
onIndexChanged | event bind |
onTransitionStart | event bind |
onTransitionEnd | event bind |
onTouchStart | event bind |
onTouchMove | event bind |
onTouchEnd | event bind |
1import TinySlider from "tiny-slider-react"; 2 3const settings = { 4 lazyload: true, 5 nav: false, 6 mouseDrag: true 7}; 8 9<TinySlider settings={settings}> 10 {imgs.map((el, index) => ( 11 <div key={index} style={{ position: "relative" }}> 12 <img 13 className={`tns-lazy-img`} 14 src={loadingImage} 15 data-src={el} 16 alt="" 17 style={imgStyles} 18 /> 19 </div> 20 ))} 21</TinySlider>
How to use external buttons for prev & next
1const settings = { 2 lazyload: true, 3 nav: false, 4 mouseDrag: true, 5 controls: false // remove built-in nav buttons 6}
Get the slider from refs:
1<TinySlider settings={settings} ref={ts => this.ts = ts}>...</TinySlider>
Add onClick for your buttons:
1<button type="button" onClick={() => this.onGoTo('prev')}>Previous</button> 2<button type="button" onClick={() => this.onGoTo('next')}>Next</button>
Add the handler on your component:
1onGoTo = dir => this.ts.slider.goTo(dir)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 6/19 approved changesets -- score normalized to 3
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
19 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More