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

GsapPluginOptions interface

Options of `gsapPlugin`.

View as Markdown
import type { GsapPluginOptions } from '@dioramajs/diorama/gsap'
interface GsapPluginOptions

Members

NameTypeDescription
readonly gsapGsapLike

The site's gsap.

readonly liveScrollboolean

Read window scroll in the frame, not from events (ScrollToPlugin, snap). Default true.

readonly pinsboolean

Effects inside a pinned ScrollTrigger get its progress as pin. Default true.

readonly scrollTriggerScrollTriggerStatic | undefined

Pass it explicitly, since a minified build renames the class. By default it is looked up in gsap.core.globals() by shape (getAll, update, refresh, create, addEventListener).

readonly tickerboolean | 'auto'

Frames from gsap.ticker. 'auto' (default) uses it unless the app runs on a deterministic driver with step or tick (offlineDriver, manualDriver), which is kept.

Also exported from @dioramajs/gsap.

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