Skip to content

Instantly share code, notes, and snippets.

@andyyou
Last active September 13, 2016 09:09
Show Gist options
  • Save andyyou/40345e39efc94dfae17d to your computer and use it in GitHub Desktop.
Save andyyou/40345e39efc94dfae17d to your computer and use it in GitHub Desktop.
React Coverflow example
var React = require('react');
var ReactDOM = require('react-dom');
var Coverflow = require('react-coverflow');
var fn = function () {
/* do you want */
}
ReactDOM.render(
<Coverflow
width={960}
height={480}
displayQuantityOfSide={2}
navigation={false}
enableHeading={false}
>
<img src='[image/path/please_change]' alt='title or description' data-action={fn} />
<img src='[image/path/please_change]' alt='title or description' data-action="http://andyyou.github.io/react-coverflow/"/>
<img src='[image/path/please_change]' alt='title or description' data-action="http://andyyou.github.io/react-coverflow/"/>
</Coverflow>,
document.querySelector('.content')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment