npm.io
1.2.2 • Published 8 years ago

react-3divs

Licence
MIT
Version
1.2.2
Deps
8
Size
48 kB
Vulns
1
Weekly
0
Stars
5

react_3divs

Divs in 3D as react components

install

npm install --save react-3divs@latest

import

import { Div3d, Viewer3d, Obj3d, Layer3d } from "react-3divs";

#Example

 <Viewer3d stats width={600} height={600} >
    <Div3d position={{ x: 10, y: 0, z: 0 }} >
                <h3>2D Content Here</h3>
    </Div3d>
   </Viewer3d>

run example

 #clone git
$ cd ./example 
$ npm install && npm start

Simple Use

 <Viewer3d stats width={600} height={600} defaultLight grid>
    <Obj3d src={model} mtl={mtl} />
    <Div3d name="div0" position={{ x: 10, y: 0, z: 0 }} >
                <h3>2D Content Here{this.state.counter}</h3>
    </Div3d>
   </Viewer3d>