sveltekit-page-transitions
v0.0.8
Published
[Demo](https://konsta.vercel.app)
Downloads
44
Readme
sveltekit-page-transitions
Install
npm -i sveltekit-page-transitions
Usage
+layout.svelte
<script>
import '../app.css'
import { App } from 'konsta/svelte'
+ import { PageTransitionController, cover } from 'sveltekit-page-transitions'
</script>
<App theme="ios" safeAreas>
+ <PageTransitionController transition={cover}>
<slot />
+ </PageTransitionController>
</App>
+page.svelte (all top level pages that inherit from the layout)
<script>
import { Page } from 'konsta/svelte'
+ import { PageTransition } from 'sveltekit-page-transitions'
</script>
+<PageTransition>
<Page>
/* Page content goes here */
</Page>
+</PageTransition>