View Transitions Router API Reference
Это содержимое пока не доступно на вашем языке.
Добавлено в:
[email protected]
These modules provide functions to control and interact with the View Transitions API and client-side router.
This API is compatible with the <ClientRouter />
included in astro:transitions
, but can’t be used with native browser MPA routing.
For features and usage examples, see our View Transitions guide.
Imports from astro:transitions
Section titled Imports from astro:transitionsimport { ClientRouter, fade, slide } from 'astro:transitions';
<ClientRouter />
Section titled <ClientRouter />
Добавлено в:
[email protected]
Opt in to using view transitions on individual pages by importing and adding the <ClientRouter />
routing component to <head>
on every desired page.
---import { ClientRouter } from 'astro:transitions';---<html lang="en"> <head> <title>My Homepage</title> <ClientRouter /> </head> <body> <h1>Welcome to my website!</h1> </body></html>