Looping Text Swap
Looping Text Swap é um componente de texto para React e Tailwind CSS, da biblioteca Motion Primitives, com licença MIT. Copia e cola no teu projeto.
Motion Primitives
MIT
text
O que é
Looping Text Swap é um componente de texto para React e Tailwind CSS, da biblioteca Motion Primitives, com licença MIT. Copia e cola no teu projeto.
Como usar
Abre o componente no catálogo, carrega em copiar, e cola no teu projeto. O prompt copiado leva o código e as regras para o teu agente o reproduzir sem alterar nada.
Cinco cópias grátis por mês. Sem cartão.
Não precisa de pacotes além do que o projeto já tem
Licença
Este componente vem de Motion Primitives e é redistribuído sob a licença MIT, que permite uso comercial. O aviso de copyright viaja com o código.
Looping Text Swap
import { TextLoop } from '@/components/core/text-loop';
export function TextLoopCustomVariantsTransition() {
return (
<p className='inline-flex whitespace-pre-wrap text-sm'>
Beautiful templates for{' '}
<TextLoop
className='overflow-y-clip'
transition={{
type: 'spring',
stiffness: 900,
damping: 80,
mass: 10,
}}
variants={{
initial: {
y: 20,
rotateX: 90,
opacity: 0,
filter: 'blur(4px)',
},
animate: {
y: 0,
rotateX: 0,
opacity: 1,
filter: 'blur(0px)',
},
exit: {
y: -20,
rotateX: -90,
opacity: 0,
filter: 'blur(4px)',
},
}}
>
<span>Founders</span>
<span>Developers</span>
<span>Designers</span>
<span>Design Engineers</span>
</TextLoop>
</p>
);
}