Created
March 3, 2018 17:55
-
-
Save asalem1/b732568fde235a492f4e837055967d02 to your computer and use it in GitHub Desktop.
React Coverflow Example
This file contains hidden or 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
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} | |
> | |
<div | |
onClick={() => fn()} | |
onKeyDown={() => fn()} | |
role="menuitem" | |
tabIndex="0" | |
> | |
<img | |
src='[image/path/please_change]' | |
alt='title or description' | |
style={{ display: 'block', width: '100%' }} | |
/> | |
</div> | |
<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