diff --git a/resources/css/app.css b/resources/css/app.css index 0dec220..b52d796 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -69,6 +69,16 @@ @layer base { } } +/* Cross-document View Transitions: page-to-page navigations cross-fade + instead of flashing white. Off for visitors who ask for less motion; + browsers without support just navigate normally. Turbo Frame updates + aren't document navigations, so they're unaffected. */ +@media (prefers-reduced-motion: no-preference) { + @view-transition { + navigation: auto; + } +} + @keyframes spin { from { transform: rotate(0deg);