All components

Text On A Circle

Text On A Circle 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

Text On A Circle 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.

Text On A Circle

app/docs/spinning-text/spinning-text-custom-variants.tsx
import React from 'react';
import { SpinningText } from '@/components/core/spinning-text';

export function SpinningTextCustomVariants() {
  return (
    <SpinningText
      radius={5.5}
      fontSize={1}
      variants={{
        container: {
          hidden: {
            opacity: 1,
          },
          visible: {
            opacity: 1,
            rotate: 360,
            transition: {
              type: 'spring',
              bounce: 0,
              duration: 6,
              repeat: Infinity,
              staggerChildren: 0.03,
            },
          },
        },
        item: {
          hidden: {
            opacity: 0,
            filter: 'blur(4px)',
          },
          visible: {
            opacity: 1,
            filter: 'blur(0px)',
          },
        },
      }}
      className='font-[450]'
    >
      {`pre-order • pre-order • pre-order • `}
    </SpinningText>
  );
}

Similar components