diff --git a/plugins/view-transitions/includes/theme.php b/plugins/view-transitions/includes/theme.php index 504ad1244f..abb4dba33d 100644 --- a/plugins/view-transitions/includes/theme.php +++ b/plugins/view-transitions/includes/theme.php @@ -317,7 +317,7 @@ function plvt_load_view_transitions(): void { $default_animation_args = isset( $theme_support['default-animation-args'] ) ? (array) $theme_support['default-animation-args'] : array(); $default_animation_stylesheet = $animation_registry->get_animation_stylesheet( $theme_support['default-animation'], $default_animation_args ); $default_animation_stylesheet = plvt_inject_animation_duration( $default_animation_stylesheet, absint( $theme_support['default-animation-duration'] ) ); - wp_add_inline_style( 'plvt-view-transitions', $default_animation_stylesheet ); + wp_add_inline_style( 'plvt-view-transitions', '@media (prefers-reduced-motion: no-preference) {' . $default_animation_stylesheet . '}' ); /* * No point in loading the script if no specific view transition names are configured.