Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ user has requested this at a system level.

### Reduce Motion Features

##### Animations, scrolling effects, and transitions are reduced in all browsers
##### Animations, scrolling effects, transitions and view transitions are reduced in all browsers

```css
@media (prefers-reduced-motion: reduce) {
Expand All @@ -450,6 +450,10 @@ user has requested this at a system level.
transition-delay: 0s !important;
transition-duration: 0s !important;
}

@view-transition {
navigation: none !important;
}
}
```

Expand Down
5 changes: 5 additions & 0 deletions reduce-motion.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* 2. Remove fixed background attachments when motion is reduced (opinionated).
* 3. Remove timed scrolling behaviors when motion is reduced (opinionated).
* 4. Remove transitions when motion is reduced (opinionated).
* 5. Remove view-transitions when motion is reduced (opinionated).
*/

@media (prefers-reduced-motion: reduce) {
Expand All @@ -17,4 +18,8 @@
transition-delay: 0s !important; /* 4 */
transition-duration: 0s !important; /* 4 */
}

@view-transition {
navigation: none !important; /* 5 */
}
}