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

AstroSetupParams interface

What `astro:config:setup` gives the integration.

View as Markdown
import type { AstroSetupParams } from '@dioramajs/diorama/astro'
interface AstroSetupParams

Members

NameTypeDescription
readonly config{ readonly root: URL }

The site's config; root is where lenis is looked up.

injectScript
injectScript(stage: 'page' | 'page-ssr', content: string): void

Puts the page script (Lenis, scroll restoring) and lenis.css on every page.

updateConfig
updateConfig(config: { vite: { … } }): unknown

Adds the Vite plugin.

Defined in packages/diorama/src/astro.ts.