1.1.1 • Published 3 years ago

test-responsive-slider v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

test-responsive-slider

Responsive slider for react

NPM JavaScript Style Guide

Install

npm install --save test-responsive-slider

Usage

import React, { Component } from 'react'

import ReactResponsiveSlider from 'test-responsive-slider'
import 'test-responsive-slider/dist/index.css'

class Example extends Component {
  render() {
    return <ReactResponsiveSlider />
  }
}

Props

NameTypeDescriptionDefault
controlsboolActivate / Deactivate slider controlsfalse
galleryArrayAn array of images paths ('some_path/some_img.jpg',...), if no gallery is provided, the slider will show a set of placeholder imagesArray of placeholder images
timingstringValue for the transition-timing property of the slider, it can be in s or ms units1s
timingFunctionstringValue for the transition-timing-function property of the slider, it can be any valid value for the css property "transtion-timing-function"linear
widthstringDefines slider width, the value can be any valid CSS width value100%
heightstringDefines slider height, the value can be any valid CSS height value300px

License

MIT © Israel2709