Skip to content

Commit fe52845

Browse files
committed
Disable animation motion when preferred
1 parent 4d99539 commit fe52845

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/block-library/src/query/style.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@
2424
300ms
2525
ease-in;
2626
}
27+
28+
&.start-animation,
29+
&.finish-animation {
30+
@media (prefers-reduced-motion: reduce) {
31+
transition-duration: 0s;
32+
transition-delay: 0s;
33+
animation-duration: 1ms;
34+
animation-delay: 0s;
35+
}
36+
}
2737
}
2838

2939
@keyframes wp-block-query__enhanced-pagination-start-animation {

0 commit comments

Comments
 (0)