
Spotify clone with Astro 7 View Transitions
A Spotify-inspired interface using Astro's client router and View Transitions for fluid navigation. The example also uses Tailwind CSS and Svelte.
Local development
Node.js 22.12 or newer and Bun are required.
bun installbun run dev
Run the migration checks before submitting changes:
bun run checkbun run buildbun run format:check
Deploy
You can deploy the example using Vercel Template or see a live demo
Video
About
View Transitions animate between DOM states. Learn more in these links:
- Astro Documentation: https://docs.astro.build/en/guides/view-transitions/
- MDN Documentation: https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API
Browser support
Native same-document View Transitions are supported in Chrome and Edge 111+, Firefox 144+, Safari and iOS 18+, and corresponding mobile browsers. MDN marks the feature as Baseline 2025.
This project intentionally configures Astro's client router with fallback="none". Older browsers still navigate, but use full-page navigation without animation.


