Control time on any web page. Debug, study, or speedrun animations.
npm install slowmo
slowmo(0.5); // Half speed
// slowmo(2); // Double speed
// slowmo(1); // Normal speed
@keyframes
JS animation loop
element.animate()
HTML5 video
import { slowmo } from "slowmo";
slowmo(0.5); // Any speed
slowmo(0); // Pause
slowmo.pause();
slowmo.play();
slowmo.reset(); // Back to 1x
slowmo.getSpeed(); // Current
Inspired by agentation by Benji Taylor and his related blog posts [1] [2]