GitHub

Infinite Moving Cards

Continuously scrolling card carousel

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { InfiniteMovingCards } from "@corew500/ui/infinite-moving-cards"

<InfiniteMovingCards>Content</InfiniteMovingCards>

Variants

infiniteMovingCardsVariants

AxisValuesDefault
direction
leftright
left
speed
slownormalfast
normal

infiniteMovingCardsContainerVariants

AxisValuesDefault
variant
defaultfaded
default

infiniteMovingCardItemVariants

AxisValuesDefault
size
smdefaultlg
default

API Reference

Props

PropTypeDefaultDescription
pauseOnHoverenumtruePause the animation when hovering over the container
duplicationsnumber2Number of times to duplicate the content (default: 2)
directionenumleft
speedenumnormal
variantenumdefault

Accessibility

Screen Readers

  • - Duplicated content uses `aria-hidden="true"` to prevent repetition.

Additional

  • Consider providing a static alternative for users who prefer reduced motion.
  • Animation respects `prefers-reduced-motion` system preference.

Localization

Translatable Content

  • - All card content should be translated before passing to components.
  • No built-in text; localize children content as needed.

Related

Related Components