
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@six-socks-studio/image-sequence-engine
Advanced tools
A performant scroll-based image sequence animation engine
A high-performance scroll-based image sequence animation engine with progressive loading capabilities. Perfect for creating smooth scroll-driven animations and video-like experiences on the web.
npm install @six-socks-studio/image-sequence-scroll
import { ImageSequenceEngine } from "@six-socks-studio/image-sequence-scroll";
// Create your sequence of image URLs
const imageUrls = Array.from(
{ length: 60 },
(_, i) => `https://your-domain.com/sequence/frame-${i}.jpg`
);
// Initialize the engine
const sequence = new ImageSequenceEngine({
container: document.querySelector(".sequence-container"),
wrapper: document.querySelector(".sequence-wrapper"),
imageUrls: imageUrls,
});
// Listen to events
sequence.options.container.addEventListener(
"imageSequence:loadingComplete",
() => {
console.log("All images loaded!");
}
);
sequence.options.container.addEventListener(
"imageSequence:imageLoaded",
(e) => {
console.log(`Loading progress: ${e.detail.loaded}/${e.detail.total}`);
}
);
<div class="sequence-wrapper">
<div class="sequence-container"></div>
</div>
<style>
.sequence-wrapper {
height: 300vh; /* Adjust based on your needs */
position: relative;
}
.sequence-container {
position: sticky;
top: 0;
width: 100vw;
height: 100vh;
}
</style>
{
container: HTMLElement, // Required: Container element for the canvas
wrapper: HTMLElement, // Required: Wrapper element for scroll tracking
imageUrls: string[], // Required: Array of image URLs
lenis: Lenis, // Optional: Existing Lenis instance
LenisClass: Class, // Optional: Lenis class for new instance
createLenis: boolean, // Optional: Create new Lenis instance
lenisOptions: Object // Optional: Options for new Lenis instance
}
imageSequence:imageLoaded: Fired when an image is loadedimageSequence:batchLoaded: Fired when a batch of images is loadedimageSequence:loadingComplete: Fired when all images are loadedimageSequence:readyToScroll: Fired when initial loading is complete and scrolling is unlockedimport { ImageSequenceEngine } from "@six-socks-studio/image-sequence-scroll";
import Lenis from "@studio-freight/lenis";
const sequence = new ImageSequenceEngine({
container: document.querySelector(".sequence-container"),
wrapper: document.querySelector(".sequence-wrapper"),
imageUrls: imageUrls,
LenisClass: Lenis,
createLenis: true,
lenisOptions: {
duration: 1.2,
smoothWheel: true,
},
});
npm installnpm run devnpm run buildCreated and maintained by Six Socks Studio.
MIT License - see LICENSE file for details
FAQs
A performant scroll-based image sequence animation engine
We found that @six-socks-studio/image-sequence-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.