Compare commits
No commits in common. "091f4ddc4a64e972e8aaa0f786c905a404fa11de" and "31aa58a8636234350d79f1ec1ebfafa7cf57dbac" have entirely different histories.
091f4ddc4a
...
31aa58a863
1 changed files with 44 additions and 47 deletions
|
@ -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
|
||||
const preferReduceMotion = window.matchMedia("(prefers-reduced-motion)").matches;
|
||||
|
||||
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("illustration-accueil", 500);
|
||||
animate("rennes", 1000);
|
||||
animate("orsay", 2000);
|
||||
animate("parterre", 1500);
|
Loading…
Reference in a new issue