Respect prefers-reduced-motion
This commit is contained in:
parent
018b045a1e
commit
7c8ede73cd
7 changed files with 62 additions and 5 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue