All components

Rolling Text

Rolling Text is a React and Tailwind CSS text component from Motion Primitives, licensed MIT. Copy it and paste it into your project.

Motion Primitives MIT text

What it is

Rolling Text is a React and Tailwind CSS text component from Motion Primitives, licensed MIT. Copy it and paste it into your project.

How to use it

Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.

Open in the catalogue

Four free copies a week. No card.

No packages beyond the project baseline

Licence

This component comes from Motion Primitives and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

Rolling Text

app/docs/text-roll/text-roll-custom-transition-delay.tsx
'use client';
import { TextRoll } from '@/components/core/text-roll';

export function TextRollCustomTransitionDelay() {
  return (
    <TextRoll
      className='overflow-clip text-4xl text-black dark:text-white'
      variants={{
        enter: {
          initial: { y: 0 },
          animate: { y: 40 },
        },
        exit: {
          initial: { y: -40 },
          animate: { y: 0 },
        },
      }}
      duration={0.3}
      getEnterDelay={(i) => i * 0.05}
      getExitDelay={(i) => i * 0.05 + 0.05}
      transition={{
        ease: [0.175, 0.885, 0.32, 1.1],
      }}
    >
      motion-primitives
    </TextRoll>
  );
}

Similar components