PageRevealEvent: PageRevealEvent() constructor
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The PageRevealEvent()
constructor creates a new
PageRevealEvent
object instance.
Syntax
js
new PageRevealEvent(type, init)
Parameters
type
-
A string representing the type of event. In the case of
PageRevealEvent
this is alwayspagereveal
. init
-
An object containing the following properties:
viewTransition
Optional-
A
ViewTransition
object representing the active view transition for the related navigation. Defaults tonull
if there is no active view transition.
Examples
A developer would not use this constructor manually. A new PageRevealEvent
object is constructed when a handler is invoked as a result of the pagereveal
event firing.
Specifications
Specification |
---|
HTML Standard # the-pagerevealevent-interface |
Browser compatibility
BCD tables only load in the browser