Respect reduced motion

This commit is contained in:
Aidan Timson
2025-10-07 16:26:57 +01:00
parent e646bc31d2
commit ad94d988bd

View File

@@ -44,8 +44,15 @@ export const coreStyles = css`
--ha-space-20: 80px; --ha-space-20: 80px;
/* Animation timing */ /* Animation timing */
--ha-animation-duration: 400ms; --ha-animation-duration: 350ms;
--ha-animation-delay-base: 50ms; --ha-animation-delay-base: 50ms;
@media (prefers-reduced-motion: reduce) {
html {
--ha-animation-duration: 150ms;
--ha-animation-delay-base: 20ms;
}
}
} }
`; `;