New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-animated-slider

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-animated-slider

Animated slider component for react

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
increased by0.93%
Maintainers
1
Weekly downloads
 
Created
Source

react-animated-slider

Animated slider component for react

Demo

Playground

Install:

npm install react-animated-slider --save

Most Simple Use:

import Slider from 'react-animated-slider';
import 'react-animated-slider/build/horizontal.css';

<Slider>
  {content.map((article, index) => <div key={index}>
    <h2>{article.title}</h2>
    <div>{article.description}</div>
  </div>)}
</Slider>

Properties:

slideIndex - number, default 0

Index of the slide that will be initially displayed.

duration - number, default 2000

Number of milliseconds before removing the animateIn and animateOut classes and adding current

previousButton - ReactElement, default "previous"

Will be rendered inside the previous button

nextButton - ReactElement, default "next"

Will be rendered inside the next button

classNames object, default

{
  previousButton: 'previousButton',
  nextButton: 'nextButton',
  track: 'track',
  slide: 'slide',
  hidden: 'hidden',
  previous: 'previous',
  current: 'current',
  next: 'next',
  animateIn: 'animateIn',
  animateOut: 'animateOut',
}

CSS classnames that will be apllied to the slides.

Classnames

previousButton

nextButton

track element wrapping all slides

slide apllied to every item (child)

hidden a slide that is not visible and is not adjacent to the current slide, therefore no animation will be usually needed

previous the slide that will appear or is appearing when the slider navigated back

next the slide that will appear or is appearing when the slider navigated forward

animateIn the slide moving into the view

animateOut the slide moving out of the view

FAQs

Package last updated on 26 Nov 2017

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