image-carousel

Installation
SKILL.md

Image Carousel Pattern

Build smooth image carousels that auto-advance on hover with touch swipe support and animated progress indicators.

Core Features

  • Hover-activated: Auto-advance starts only when user hovers (not on page load)
  • Touch swipe: Mobile-friendly swipe navigation with threshold detection
  • Progress indicators: Glassmorphic pill indicators with animated fill
  • Pause on interaction: Manual navigation pauses auto-advance temporarily

State Management

const [currentIndex, setCurrentIndex] = useState(0);
const [isHovered, setIsHovered] = useState(false);
const [progressKey, setProgressKey] = useState(0);  // Forces animation restart
const [isPaused, setIsPaused] = useState(false);
const [touchStart, setTouchStart] = useState<number | null>(null);
Related skills
Installs
6
GitHub Stars
4
First Seen
Feb 18, 2026