Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-surfer-slider

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-surfer-slider

Cool animated photo / article slider

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

react-surfer-slider

Photo slider component with animated caption for React



Check examples

Installation

npm install --save react-surfer-slider

or

yarn add react-surfer-slider

Usage

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>

Props

NameTypeDefaultDescription
durationnumber6000Slide duration in milliseconds
ratioobject{width: 16, height: 9}Slider aspect ratio

Run examples locally

npm install
npm run dev

Keywords

FAQs

Package last updated on 26 Dec 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc