We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db3ecb commit 21e26c3Copy full SHA for 21e26c3
1 file changed
packages/pure/utils/theme.ts
@@ -45,15 +45,11 @@ export function setTheme(theme?: string, save = false) {
45
}
46
47
// The View Transitions API is used here to animate the theme change.
48
- // @ts-expect-error: The View Transitions API is not yet in the default TypeScript library.
49
if (document.startViewTransition) {
50
const x = window.innerWidth // Start from top-right corner
51
const y = 0 // Start from top-right corner
52
const endRadius = Math.hypot(window.innerWidth, window.innerHeight)
53
-
54
55
const transition = document.startViewTransition(applyTheme)
56
57
transition.ready.then(() => {
58
document.documentElement.animate(
59
{
0 commit comments