Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
pjb0811Public archive

About

carousel app using react & react-motion

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

react-3d-carousels

carousel app using react & react-motion

NPM JavaScript Style Guide

This package is included in react-motion-components.

Warning

This repository is archived and no longer maintained. It was built on react-motion and React 15/16, both of which are now outdated. The npm package remains installable, but it will not receive updates or fixes.

react-motion-components, mentioned above, is archived as well.

Install

npm install --save react-3d-carousels

Usage

demo

import * as React from 'react'

import Carousel from 'react-3d-carousels'

class Example extends React.Component {
  render () {
    return (
      <div>
        <h1>react-3d-carousels</h1>
        <div
          style={{
            width: 300,
            height: 300,
            margin: '0 auto'
          }}
        >
          <Carousel
            ref={carousel => (this.carousel = carousel)}
            width={300}
            height={300}
            direction={'horizontal'}
            effect={'3d'}
            index={0}
          >
            <div style={{ background: 'green', width: 300, height: 300 }}>
              1
            </div>
            <div style={{ background: 'red', width: 300, height: 300 }}>2</div>
            <div style={{ background: 'blue', width: 300, height: 300 }}>3</div>
            <div style={{ background: 'yellow', width: 300, height: 300 }}>
              4
            </div>
          </Carousel>
      </div>
    )
  }
}

License

MIT © pjb0811

About

carousel app using react & react-motion

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages