0.2.0 • Published 3 years ago

3d-book v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

3d-book

3d-book is a React book component created by three.js.

Installation

3d-book is available as an npm package.

npm install 3d-book

Usage

import Book from '3d-book'

function App() {
  return (
    <div className='App'>
      <Book
        style={{ width: 500, height: 600, background: 'white' }}
        bookCovers={{
          front: '/images/front.jpeg',
          back: '/images/back.jpeg',
          spine: '/images/spine.jpeg'
        }}
      />
      <h2>
        <a href='https://github.com/zoomKoding/3d-book'>3d book</a> by{' '}
        <a href='https://threejs.org/'>three.js</a>
      </h2>
      <strong>Hover your mouse to rotate the book.</strong>
    </div>
  )
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

0.2.0

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago