Respect prefers-reduced-motion for transitions

This commit is contained in:
daudix
2024-04-03 00:46:32 +03:00
parent 68a0299fe2
commit deaae64392

View File

@ -35,10 +35,16 @@
--transition-long: 800ms; --transition-long: 800ms;
--transition-longer: 400ms; --transition-longer: 400ms;
--transition: 200ms; --transition: 200ms;
@media (prefers-reduced-motion) {
// VARIABLES
--transition-bezier: 0;
--transition-long: 0;
--transition-longer: 0;
--transition: 0;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root {
color-scheme: dark; color-scheme: dark;
// COLORS // COLORS