Skip to content

Commit

Permalink
Support for prefers-reduced-motion #178
Browse files Browse the repository at this point in the history
  • Loading branch information
qinyiyao committed Aug 3, 2021
1 parent 219a95f commit 512ce6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/medium-zoom.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
.medium-zoom-image {
transition: transform 1ms !important;
}
}

.medium-zoom-image--hidden {
visibility: hidden;
}
Expand Down

0 comments on commit 512ce6d

Please sign in to comment.