cube app using react & react-motion.
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.
npm install --save react-3d-cubeimport * as React from 'react';
import Cube from 'react-3d-cube';
class Example extends React.Component {
render() {
return (
<div>
<h1>react-3d-cube</h1>
<h2>no children</h2>
<div
style={{
width: 300,
height: 300
}}
>
<Cube size={300} index="front" />
</div>
<h2>set children</h2>
<div
style={{
width: 300,
height: 300
}}
>
<Cube size={300} index="front">
<div>front</div>
<div>right</div>
<div>back</div>
<div>left</div>
<div>top</div>
<div>bottom</div>
</Cube>
</div>
</div>
);
}
}MIT © pjb0811