Motion Kit

Showcase

Slideshow

Full-bleed image slideshow with parallax slide transitions and thumbnail navigation. Framework-agnostic Custom Element.

  • lit
  • gsap

Preview

Click a thumbnail or use the navigation to transition between slides. The inner image parallaxes opposite the slide direction.

Installation

pnpm dlx shadcn@latest add https://motion-kit-astro.vercel.app/r/slideshow.json

Usage

---
import "@/components/motion-kit/slideshow-element.ts";
---

<motion-slideshow
  images='[{"src":"/1.jpg","alt":"One"},{"src":"/2.jpg","alt":"Two"}]'
  class="aspect-video w-full max-w-2xl rounded-xl overflow-hidden"
></motion-slideshow>

API Reference

Attribute Type Default
images JSON array of image objects with src and alt properties. string "[]"