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

LenisPluginOptions interface

Options of `lenisPlugin`.

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

Members

NameTypeDescription
readonly handoffboolean

Keep driving Lenis after the last app using it goes away (StrictMode, HMR). Default true.

readonly lenis?LenisLike

The site's Lenis. One created later (ReactLenis, a page transition) comes in through use().

readonly takeoverboolean

With true (default) only the pump advances Lenis. The site's own raf calls (own loop, gsap.ticker, autoRaf) are absorbed and only wake the pump. With false Diorama never calls raf, the site drives Lenis and GL may lag a frame ('external').

Also exported from @dioramajs/lenis.

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