dist/timeweb.jsto the desired directory.
timeweb.goToto go to a virtual time, in milliseconds. For instance,
timeweb.goTo(5000);goes to 5 seconds on the virtual time line. It can only go forward. Note that currently
requestAnimationFrameis called once per
timeweb.goToregardless of the previous virtual time.
cancelInterval) to custom ones that use a virtual timeline, which can be stepped through programmatically.
This work was inspired by a talk by Noah Veltman, who described altering a document's
performance.now functions to refer to a virtual time and using
puppeteer to change that virtual time and take snapshots.