Skip to content

Commit

Permalink
ViewTransitions.astro aktualisieren
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuele Stoppa <[email protected]>
  • Loading branch information
martrapp and ematipico authored Feb 26, 2024
1 parent d8a4edd commit 0e8e09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/components/ViewTransitions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const { fallback = 'animate' } = Astro.props;

if (supportsViewTransitions || getFallback() !== 'none') {
if (import.meta.env.DEV && window.matchMedia('(prefers-reduced-motion)').matches) {
console.warn(`Astro ViewTransitions: all view transition animations, including fallback animation, are disabled as this device has the prefer-reduced-motion setting enabled.`);
console.warn(`[transitions]: all view transition animations, including fallback animation, are disabled as this device has the prefer-reduced-motion setting enabled.`);
}
document.addEventListener('click', (ev) => {
let link = ev.target;
Expand Down

0 comments on commit 0e8e09b

Please sign in to comment.