Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
react-surfer-slider
Advanced tools
Photo slider component with animated caption for React
Check examples
npm install --save react-surfer-slider
or
yarn add react-surfer-slider
import SurferSlider, { Slide } from 'react-surfer-slider'
import 'react-surfer-slider/dist/ReactSurferSlider.css'
<SurferSlider ratio={{width: 16, height: 9}} duration={6000}>
<Slide caption="Every golfer loves knocking back a cold one during a round. But should you do it?">
<a href="https://placedog.net/1024/768?id=7" target="_blank" rel="noopener noreferrer">
<img
src="https://placedog.net/1024/768?id=7"
srcSet="https://placedog.net/480/360?id=7 480w, https://placedog.net/800/600?id=7 800w"
alt="react-surfer-slider image"
/>
</a>
</Slide>
<Slide caption="Tides are the rise and fall of sea levels caused by the combined effects of the gravitational forces">
<a href="https://placedog.net/1024/768?id=118" target="_blank" rel="noopener noreferrer">
<img
src="https://placedog.net/1024/768?id=118"
srcSet="https://placedog.net/480/360?id=118 480w, https://placedog.net/800/600?id=118 800w"
alt="react-surfer-slider image"
/>
</a>
</Slide>
<Slide caption="Freedom, generally, is having the ability to act or change without constraint">
<a href="https://placedog.net/1024/768?id=140" target="_blank" rel="noopener noreferrer">
<img
src="https://placedog.net/1024/768?id=140"
srcSet="https://placedog.net/480/360?id=140 480w, https://placedog.net/800/600?id=140 800w"
alt="react-surfer-slider image"
/>
</a>
</Slide>
</SurferSlider>
Name | Type | Default | Description |
---|---|---|---|
duration | number | 6000 | Slide duration in milliseconds |
ratio | object | {width: 16, height: 9} | Slider aspect ratio |
npm install
npm run dev
FAQs
Cool animated photo / article slider
The npm package react-surfer-slider receives a total of 0 weekly downloads. As such, react-surfer-slider popularity was classified as not popular.
We found that react-surfer-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.