Smashing Conf Freiburg
Val Head
Senior Design Advocate, Adobe
@vlh
@media (prefers-reduced-motion: reduce) {
/* alternative behaviour */
}
let motionQuery = matchMedia('(prefers-reduced-motion)');
const handleReduceMotionChanged = () => {
if (motionQuery.matches)
//alternate behaviour;
}
motionQuery.addListener(handleReduceMotionChanged);
handleReduceMotionChanged();
Newsletter: uianimationnewsletter.com
Twitter: @vlh