Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

LenisApi interface

The `lenis` service.

View as Markdown
import type { LenisApi } from '@dioramajs/diorama/lenis'
interface LenisApi

Members

NameTypeDescription
readonly lenisLenisLike | undefined

The Lenis in use. Undefined before use() and after lenis.destroy().

readonly mode'diorama' | 'external'

'diorama' when the pump advances Lenis, 'external' with takeover: false.

use
use(lenis: LenisLike): Off

Switches to lenis. Off or lenis.destroy() releases it.

Also exported from @dioramajs/lenis.

Defined in packages/lenis/src/types.ts.