A ui component.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- motion
Code
import NumberTicker from "@/components/fancy/text/basic-number-ticker"
const NumberTickerDemo = () => {
return (
<div className="p-10 flex w-dvw h-dvh justify-center items-center bg-white">
<p className="w-full text-7xl md:text-9xl flex justify-center font-azeret-mono text-[#1f464d]">
<NumberTicker
from={0}
target={100}
autoStart={true}
transition={{ duration: 3.5, type: "tween", ease: "easeInOut" }}
onComplete={() => console.log("complete")}
onStart={() => console.log("start")}
/>
%
</p>
</div>
)
}
export default NumberTickerDemo
































