apeman-react-slideshow

2.0.8 • Public • Published

apeman-react-slideshow

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for slideshow components.

Installation

$ npm install apeman-react-slideshow --save

Demo

Live demo is hosted on GitHub Pages.

Usage

'use strict'
 
import React from 'react'
import {ApSlideshow, ApSlideshowStyle} from 'apeman-react-slideshow'
 
const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApSlideshowStyle />
        <ApSlideshow images={[
                    './images/00.jpg',
                    './images/01.jpg',
                    './images/02.jpg',
                    './images/03.jpg',
                    './images/04.jpg',
                    './images/05.jpg',
                    './images/06.jpg',
                    './images/07.jpg'
                ]}
                     repeat={ true }
                     width={ 450 }
                     height={ 300 }
        />
      </div>
    )
  }
})
 

Components

ApSlideshowStyle

Props

Name Type Default Description
style object {}

ApSlideshow

Props

Name Type Default Description
images array []
repeat bool false
width number 420
height number 280
interval number 20000
effect enum 'fadeAndScale'

License

This software is released under the MIT License.

Links

Package Sidebar

Install

npm i apeman-react-slideshow

Weekly Downloads

11

Version

2.0.8

License

MIT

Last publish

Collaborators

  • okunishinishi