Live location tracking and playback for the game "manhunt"

View Transitions on screen change

bwc9876.dev 9eeb59a8 79517e8d

verified
+10 -2
+9 -1
frontend/src/components/App.tsx
··· 27 27 const [currentScreen, setScreen] = useState(initialScreen); 28 28 29 29 useTauriEvent("changeScreen", (newScreen) => { 30 - setScreen(newScreen); 30 + const update = () => { 31 + setScreen(newScreen); 32 + }; 33 + 34 + if (document.startViewTransition) { 35 + document.startViewTransition(update); 36 + } else { 37 + update(); 38 + } 31 39 }); 32 40 33 41 return (
+1 -1
frontend/src/style.css
··· 139 139 border-radius: 0; 140 140 border: none; 141 141 margin: 0; 142 - box-shadow: 0 0 25px black; 142 + /* box-shadow: 0 0 25px black; */ 143 143 width: 105%; 144 144 145 145 &:first-child {