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

covered function

Closes the cover of `app` and resolves true once the page is covered, for routers that change the page from code: `await covered(app, event); router.push(href)`.

View as Markdown
import { covered } from '@dioramajs/diorama/transitions'

. Resolves false at once without the plugin, before the app runs, or when the cover can't play.

function covered(
  app: { readonly cover?: CoverApi },
  at?: CoverOrigin,
): Promise<boolean>

Parameters

NameTypeDescription
app{ readonly cover?: CoverApi }
at?CoverOrigin

Also exported from @dioramajs/transitions/cover.

Defined in packages/transitions/src/cover/index.ts.