Skip to content

Commit 54bab3f

Browse files
committed
feat(reduce-motion): remove view-transition
1 parent 61c85b6 commit 54bab3f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ user has requested this at a system level.
435435

436436
### Reduce Motion Features
437437

438-
##### Animations, scrolling effects, and transitions are reduced in all browsers
438+
##### Animations, scrolling effects, transitions and view transitions are reduced in all browsers
439439

440440
```css
441441
@media (prefers-reduced-motion: reduce) {
@@ -450,6 +450,10 @@ user has requested this at a system level.
450450
transition-delay: 0s !important;
451451
transition-duration: 0s !important;
452452
}
453+
454+
@view-transition {
455+
navigation: none !important;
456+
}
453457
}
454458
```
455459

reduce-motion.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* 2. Remove fixed background attachments when motion is reduced (opinionated).
44
* 3. Remove timed scrolling behaviors when motion is reduced (opinionated).
55
* 4. Remove transitions when motion is reduced (opinionated).
6+
* 5. Remove view-transitions when motion is reduced (opinionated).
67
*/
78

89
@media (prefers-reduced-motion: reduce) {
@@ -17,4 +18,8 @@
1718
transition-delay: 0s !important; /* 4 */
1819
transition-duration: 0s !important; /* 4 */
1920
}
21+
22+
@view-transition {
23+
navigation: none !important; /* 5 */
24+
}
2025
}

0 commit comments

Comments
 (0)