mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 18:39:40 +00:00
Respect reduced motion
This commit is contained in:
@@ -44,8 +44,15 @@ export const coreStyles = css`
|
||||
--ha-space-20: 80px;
|
||||
|
||||
/* Animation timing */
|
||||
--ha-animation-duration: 400ms;
|
||||
--ha-animation-duration: 350ms;
|
||||
--ha-animation-delay-base: 50ms;
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
--ha-animation-duration: 150ms;
|
||||
--ha-animation-delay-base: 20ms;
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user