Slow down, pause, or speed up time of any web content.
Debug animations, study cool demos, and make games easier or harder.
Quick Start
import slowmo from "slowmo"
slowmo(0.5)
Try It
Drag outer edge to change speed. Click center to pause.
requestAnimationFrame
JS animation loop
Web Animations API
element.animate()
Full API
import slowmo from "slowmo"
slowmo(0.5)
slowmo(2)
slowmo(0)
slowmo(1)
slowmo.pause()
slowmo.play()
slowmo.reset()
slowmo.getSpeed()
Inspired by
agentation
by
Benji Taylor
and his related
blog
posts