Motion Kit

Showcase

Logo Carousel

Grid of logos that cycles through items with a blurred vertical swap animation. Framework-agnostic Custom Element.

  • lit
  • gsap

Preview

Logos cycle through each column at a staggered interval with blur and slide transitions.

Installation

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

Usage

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

<motion-logo-carousel
  logos='[{"src":"/logos/a.svg","alt":"A"},{"src":"/logos/b.svg","alt":"B"}]'
  columns="3"
  cycle-interval="2000"
></motion-logo-carousel>

API Reference

Attribute Type Default
logos JSON array of logo objects with src, alt, and name properties. string "[]"
columns Number of columns to distribute logos into. number 2
cycle-interval Milliseconds between logo cycles. number 2000