Blog

Adding page transitions#

You can enable page transitions passing the animate prop to the provider

jsx
1
import { DokzProvider } from 'dokz'
2
import React from 'react'
3
4
export default function App(props) {
5
const { Component, pageProps } = props
6
return (
7
<DokzProvider animate>
8
<Component {...pageProps} />
9
<PageEnterTransition hue={200} duration={500} />
10
</DokzProvider>
11
)
12
}
Previous
Change Sidebar Ordering
Next
Change docs root path
Adding page transitions