Letter Swap Demo
fancy/letter-swap-demoFreeBlock
A block component.
Install it
npx shadcn@latest add https://www.fancycomponents.dev/r/letter-swap-demo.jsonSource
1import LetterSwapForward from "@/components/fancy/text/letter-swap-forward-anim"2import LetterSwapPingPong from "@/components/fancy/text/letter-swap-pingpong-anim"34export default function Preview() {5 return (6 <div className="w-dvw h-dvh rounded-lg bg-white text-xl md:text-3xl flex flex-col items-center justify-center font-calendas">7 <div className=" p-12 text-[#0015ff] rounded-xl align-text-top gap-y-1 md:gap-y-2 flex flex-col">8 <LetterSwapForward9 label="Hover me chief!"10 reverse={true}11 className="italic"12 />13 <LetterSwapForward14 label="{awesome}"15 reverse={false}16 className="font-bold"17 />18 <LetterSwapForward19 label="Good day!"20 staggerFrom={"center"}21 className="mono"22 />23 <LetterSwapPingPong24 label="More text?"25 staggerFrom={"center"}26 reverse={false}27 className="font-overused-grotesk font-bold"28 />29 <LetterSwapPingPong label="oh, seriously?!" staggerFrom={"last"} />30 </div>31 </div>32 )33}
What it pulls in
Other registry items
Files it writes
More from fancy
All 158 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Animated Gradient Demoanimated-gradient-demo | fancy | Blocks | Free | no deps | |
| Basic Number Ticker Demobasic-number-ticker-demo | fancy | Blocks | Free | no deps | |
| Box Carousel Autoplay Demobox-carousel-autoplay-demo | fancy | Blocks | Free | 1 dep | |
| Box Carousel Demobox-carousel-demo | fancy | Blocks | Free | 1 dep | |
| Box Carousel Video Demobox-carousel-video-demo | fancy | Blocks | Free | 1 dep | |
| Breathing Text Demobreathing-text-demo | fancy | Blocks | Free | no deps | |
| Circling Elements Democircling-elements-demo | fancy | Blocks | Free | no deps | |
| Circling Elements Easing Democircling-elements-easing-demo | fancy | Blocks | Free | no deps |
