Skip to content

Commit a9d22d6

Browse files
authored
feat: remove the full page view transitions and rely on the browser defaults (#384)
1 parent 5a15979 commit a9d22d6

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/index.css

-31
Original file line numberDiff line numberDiff line change
@@ -221,35 +221,4 @@
221221
.TanStackRouterDevtools > button {
222222
@apply origin-top-right -translate-y-4 translate-x-2 rotate-90 rounded-t-none border-t-0 border-border/10 shadow-xl;
223223
}
224-
225-
html {
226-
view-transition-name: theme-update;
227-
}
228-
229-
::view-transition-group(theme-update) {
230-
animation-timing-function: var(--expo-out);
231-
}
232-
233-
::view-transition-new(theme-update) {
234-
mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="0" cy="0" r="18" fill="white" filter="url(%23blur)"/></svg>')
235-
top left / 0 no-repeat;
236-
mask-origin: content-box;
237-
animation: scale 750ms;
238-
transform-origin: top left;
239-
}
240-
241-
::view-transition-old(theme-update),
242-
[data-theme="light"]::view-transition-old(theme-update),
243-
[data-theme="dark"]::view-transition-old(theme-update),
244-
[data-theme="system"]::view-transition-old(theme-update) {
245-
animation: scale 750ms;
246-
transform-origin: top left;
247-
z-index: -1;
248-
}
249-
250-
@keyframes scale {
251-
to {
252-
mask-size: 350vmax;
253-
}
254-
}
255224
}

0 commit comments

Comments
 (0)