Compare commits

..

No commits in common. "9ff1b202483565be36ffb82e38867046ccf35458" and "4978b26ef612d2e23ebcc9fff628890a160adebd" have entirely different histories.

View file

@ -38,10 +38,7 @@ function updateAnimation(id, frames, totalFrames) {
} }
// If the user have a setting on their device to minimize the amount of non-essential motion animate("illustration-accueil", 500);
const preferReduceMotion = window.matchMedia("(prefers-reduced-motion)").matches; animate("rennes", 1000);
animate("orsay", 2000);
animate("illustration-accueil", preferReduceMotion ? 1500 : 500); // Reduce framerate if use preference is to reduce motion
animate("rennes", preferReduceMotion ? 3000 : 1000); // Reduce framerate if use preference is to reduce motion
animate("orsay", preferReduceMotion ? 4000 : 2000); // Reduce framerate if use preference is to reduce motion
animate("parterre", 1500); animate("parterre", 1500);