Two separate implementations for different use cases. Choose the one that fits your needs.
Slide-by-slide navigation with full user control. Perfect for interactive browsing.
Infinite smooth scrolling without interruption. Ideal for ambient displays.
// In carousel-pagination.js
const AUTO_SCROLL_DELAY = 4000; // ms
// 3000 = faster
// 4000 = default
// 6000 = slower
// In carousel-continuous.js
const CONTINUOUS_SCROLL_SPEED = 0.5;
// 0.3 = very slow
// 0.5 = default
// 1.0 = fast
// 2.0 = very fast
// Desktop: 3 cards
// Tablet: 2 cards
// Mobile: 1 card
// Edit in CSS:
// @media (max-width: 1024px)
// In pagination.js
const USER_INTERACTION_TIMEOUT = 8000;
// Time to pause after
// user clicks/swipes (ms)
Try both demos to see which works best for your project!