Skip to content

Commit ad94d98

Browse files
committed
Respect reduced motion
1 parent e646bc3 commit ad94d98

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/resources/theme/core.globals.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,15 @@ export const coreStyles = css`
4444
--ha-space-20: 80px;
4545
4646
/* Animation timing */
47-
--ha-animation-duration: 400ms;
47+
--ha-animation-duration: 350ms;
4848
--ha-animation-delay-base: 50ms;
49+
50+
@media (prefers-reduced-motion: reduce) {
51+
html {
52+
--ha-animation-duration: 150ms;
53+
--ha-animation-delay-base: 20ms;
54+
}
55+
}
4956
}
5057
`;
5158

0 commit comments

Comments
 (0)