Animate Image Sequence
A way to use a window scroll bar to scrub through an image sequence.
Example
const videoHolderElements = document.querySelector('#video-holder');
const imgSeqElement = document.querySelector('.img-seq');
if (videoHolderElements && imgSeqElement) {
new ImageVideoPlayer(
205,
5,
1116,
videoHolderElements as HTMLElement,
imgSeqElement as HTMLImageElement,
'img-seq/oceans'
);
}
Image sequence
The idea is that the images are sequenced like a stop action move or a old school flip book. So for example image should be number in order something like this oceans0000
to oceans1116
counting up.
Demo
You can run the project locally with yarn dev
or view demo and scroll down.