Skip to content

Commit

Permalink
do not animate for prefers reduced motion
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieomaguire committed Jul 23, 2024
1 parent fba6022 commit 193d756
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/components/pie-cookie-banner/src/cookie-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ $breakpoint-wide: 700px;
display: none;
}

@keyframes animate-enter {
0% { transform: translate3d(0, 75%, 0); }
@media (prefers-reduced-motion: no-preference) {
@keyframes animate-enter {
0% { transform: translate3d(0, 75%, 0); }

100% { transform: translate3d(0, 0, 0); }
}
100% { transform: translate3d(0, 0, 0); }
}

animation: 0.5s animate-enter ease-out;
animation: 0.5s animate-enter ease-out;
}
}

.c-cookieBanner-title,
Expand Down

0 comments on commit 193d756

Please sign in to comment.