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

@dioramajs/diorama/astro

Astro integration that adds the Vite plugin.

View as Markdown
On this page
import { diorama } from '@dioramajs/diorama/astro'

Functions

dioramaThe Astro integration: the Vite plugin for the effects folder, Lenis and scroll on request.

Interfaces

AstroIntegrationLikeThe part of an Astro integration the plugin returns.
AstroLenisOptionsLenis options that can be written into the page. Functions (`easing`, `prevent`, `virtualScroll`) cannot: pass those to `smoothScroll` from diorama/astro/client in a script.
AstroSetupParamsWhat `astro:config:setup` gives the integration.
DioramaAstroOptionsOptions of the Astro integration.