0.0.4 • Published 1 year ago

webgl-persona-gallery v0.0.4

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 year ago

Entry interface

interface Entry {
  title: string
  description: string
  imageUrl: string
}

Example

const target = document.querySelector<HTMLDivElement>('#canvas-container')!
const entries: Entry[] = [
  {
    title: 'Title 1',
    description: 'Description 1',
    imageUrl: 'img/1.jpg',
  },
  {
    title: 'Title 2',
    description: 'Description 2',
    imageUrl: 'img/2.jpg',
  },
  {
    title: 'Title 3',
    description: 'Description 3',
    imageUrl: 'img/3.jpg',
  },
]
// Create new WebGLGallery instance.
// Will create canvas inside target element and start rendering.
new WebGLGallery(target, entries)
0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago