Last active
January 7, 2016 10:22
-
-
Save leandrowd/00cb396a7ce64f189943 to your computer and use it in GitHub Desktop.
vertical-carousel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.npmjs.com/package/react-responsive-carousel | |
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var Carousel = require('react-responsive-carousel').Carousel; | |
var DemoCarouselVertical = React.createClass({ | |
render() { | |
return ( | |
<Carousel axis="vertical" showArrows={true} onChange={onChange} onClickItem={onClickItem} onClickThumb={onClickThumb}> | |
<div> | |
<img src="assets/1.jpeg" /> | |
<p className="legend">Legend 1</p> | |
</div> | |
<div> | |
<img src="assets/2.jpeg" /> | |
<p className="legend">Legend 2</p> | |
</div> | |
<div> | |
<img src="assets/3.jpeg" /> | |
<p className="legend">Legend 3</p> | |
</div> | |
<div> | |
<img src="assets/4.jpeg" /> | |
<p className="legend">Legend 4</p> | |
</div> | |
<div> | |
<img src="assets/5.jpeg" /> | |
<p className="legend">Legend 5</p> | |
</div> | |
<div> | |
<img src="assets/6.jpeg" /> | |
<p className="legend">Legend 6</p> | |
</div> | |
</Carousel> | |
); | |
} | |
}); | |
ReactDOM.render(<DemoCarouselVertical />, document.querySelector('.demo-carousel-vertical')); | |
// Don't forget to include the css in your page | |
// <link rel="stylesheet" href="carousel.css"/> | |
// Begin DemoSliderControls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment