From fbfd628beea3361af4030e496776e70b2c4bb849 Mon Sep 17 00:00:00 2001 From: Orest Bida Date: Fri, 21 Apr 2023 00:33:59 +0200 Subject: [PATCH] Feat: disable transitions if `refers-reduced-motion` is enabled --- src/cookieconsent.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cookieconsent.css b/src/cookieconsent.css index 761c1851..e6462bf1 100644 --- a/src/cookieconsent.css +++ b/src/cookieconsent.css @@ -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,