1.0.5 • Published 6 years ago

react-3d-cube v1.0.5

Weekly downloads
36
License
MIT
Repository
github
Last release
6 years ago

react-3d-cube

cube app using react & react-motion.

NPM JavaScript Style Guide

This package is included in react-motion-components.

Install

npm install --save react-3d-cube

Usage

demo

import * 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>
    );
  }
}

License

MIT © pjb0811

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago