Skip to content

tannerdolby/react-book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book.js

Reusable component for displaying 3D book UI elements. Users can leverage the Open Library for book data, or provide your own book cover images. GSAP animation on click and tab interaction.

To find a specific book cover, search by title on the Open Library website and grab the Open Library ID.

Screen Shot 2023-10-06 at 1 13 55 AM

Examples

import Book from './components/Book';

function App() {
  return (
    {/* Use Open Library book data */}
    <Book
      title="The Hitch Hiker's Guide to the Galaxy"
      openLibraryId='OL32832269M'
    />
    {/* Provide your own book cover images */}
    <Book
      title="Archimedean Spiral"
      coverUrl="https://tannerdolby.com/images/arc-spiral-large-640.jpeg"
    />
  )
}