Skip to content

Commit

Permalink
Feat: disable transitions if refers-reduced-motion is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Apr 20, 2023
1 parent b2b1680 commit fbfd628
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cookieconsent.css
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,15 @@ html.force--consent.show--consent body{
}
/* end positions */

/* Disable transitions if prefers-reduced-motion detected */
@media (prefers-reduced-motion) {
#cc--main #cm,
#cc--main #s-cnt,
#cc--main #s-inr{
transition: none!important;
}
}

@media screen and (max-width: 688px) {

#cm,
Expand Down

0 comments on commit fbfd628

Please sign in to comment.