You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SvelteKit version of the [Shared Element Transitions Google CodeLab](https://codelabs.developers.google.com/create-an-instant-and-seamless-web-app#5). Only works in Chrome Canary with the documentTransition API flag enabled and may break at any time due to the API changing.
3
+
SvelteKit version of the [Shared Element Transitions Google CodeLab](https://codelabs.developers.google.com/create-an-instant-and-seamless-web-app#5). Only works in Chrome Canary with the `chrome://flags/#document-transition` flag enabled and may break at any time due to the API changing.
4
4
5
-
Bugs that I need to look into:
5
+
## Additional features
6
6
7
-
- layout shifting during transition
7
+
In porting this to Svelte, I also implemented some additional features.
8
+
9
+
- Also transition the fruit page heading, in addition to the image
10
+
- Transition _back_ to the list of fruits
11
+
- Respect reduced motion by not playing the transition if reduced motion is enabled
12
+
- Transition when the back/forward buttons are clicked (the original demo only used a link click as the trigger)
13
+
14
+
## Bugs
15
+
16
+
- layout shifts during transition
8
17
- sveltekit:prefetch causes the page to transition from the top-right corner instead. not sure why.
0 commit comments