Capítulo 390 de 411
Quick Start - gsap.matchMedia()
// create a matchMedia object
let mm = gsap.matchMedia()
// only add animations if the user is ok with motion!
mm.add("(prefers-reduced-motion: no-preference)", (context) => {
// This animation will not run if the user has opted out of animation at the OS level
gsap.to(".box", {
rotation: 360,
repeat: -1,
});
});