Slot text

Slot text: Text and numbers that spin into their new value on staggered slot machine reels. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Slot text

npx motion-ui-skill add slot-text

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Source files

Slot text

Text and numbers that spin into their new value on staggered slot machine reels.

Install

npx motion-ui-skill add slot-text

Dependencies

  • clsx
  • motion
  • react
  • tailwind-merge

Usage

"use client";

import { SlotText as SlotText } from "@/components/craft/slot-text";

export function Example() {
  return (
    <div className="p-6">
      <SlotText />
    </div>
  );
}

Browse this category