morphing-infinity
loading-ui/morphing-infinityFreeComponent
@loading-ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by @loading-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://loading-ui.com/r/morphing-infinity.jsonSource
1"use client";23import { motion } from "motion/react";45const circleA =6 "M 12 8 C 14.21 8 16 9.79 16 12 C 16 14.21 14.21 16 12 16 C 9.79 16 8 14.21 8 12 C 8 9.79 9.79 8 12 8 Z";78const infinity =9 "M 12 12 C 14 8.5 19 8.5 19 12 C 19 15.5 14 15.5 12 12 C 10 8.5 5 8.5 5 12 C 5 15.5 10 15.5 12 12 Z";1011const circleB =12 "M 12 16 C 14.21 16 16 14.21 16 12 C 16 9.79 14.21 8 12 8 C 9.79 8 8 9.79 8 12 C 8 14.21 9.79 16 12 16 Z";1314function MorphingInfinity(props: React.ComponentProps<"svg">) {15 return (16 <svg17 viewBox="0 0 24 24"18 fill="none"19 stroke="currentColor"20 strokeWidth={1.5}21 strokeLinecap="round"22 strokeLinejoin="round"23 role="status"24 aria-label="Loading"25 {...props}26 >27 <motion.path28 animate={{29 d: [circleA, infinity, circleB, infinity, circleA],30 }}31 transition={{32 d: {33 duration: 5,34 ease: "easeInOut",35 repeat: Infinity,36 times: [0, 0.25, 0.5, 0.75, 1.0],37 },38 }}39 />40 </svg>41 );42}4344export { MorphingInfinity };
What it pulls in
npm packages
Files it writes
More from @loading-ui
All 50 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordion-loaderaccordion-loader | @loading-ui | Components | Free | no deps | |
| analyzing-imageanalyzing-image | @loading-ui | Components | Free | 1 dep | |
| arcarc | @loading-ui | Components | Free | no deps | |
| barsbars | @loading-ui | Components | Free | no deps | |
| bobbing-dotsbobbing-dots | @loading-ui | Components | Free | 1 dep | |
| bouncing-dotsbouncing-dots | @loading-ui | Components | Free | no deps | |
| classicclassic | @loading-ui | Components | Free | no deps | |
| clock-ringclock-ring | @loading-ui | Components | Free | no deps |
