Respect prefers-reduced-motion

This commit is contained in:
Ben Grant 2021-06-03 17:57:55 +10:00
parent 018b045a1e
commit 7c8ede73cd
7 changed files with 62 additions and 5 deletions

View file

@ -70,6 +70,14 @@ export const Logo = styled.img`
animation: none;
transform: scale(.85);
}
@media (prefers-reduced-motion: reduce) {
animation: none;
transition: none;
&:active {
transform: none;
}
}
`;
export const Links = styled.nav`