❤️ Support our project - Your donation helps us continue developing awesome tools!


Docs
Orbiting Circles

Orbiting Circles

A collection of circles which move in orbit along a circular path

Circles

Installation

npx nyxbui@latest add orbiting-circles

Add the following animations to your tailwind.config.ts file:

// tailwind.config.ts
module.exports = {
  theme: {
    extend: {
      animation: {
        orbit: "orbit calc(var(--duration)*1s) linear infinite",
      },
      keyframes: {
        orbit: {
            "0%": {
                transform: "rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)",
            },
            "100%": {
                transform: "rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)",
            },
        },
      },
    },
  },
};

Props

PropTypeDescriptionDefault
classNamestringThe class name for the component""
childrenReact.ReactNodeThe children nodes of the componentnull
reversebooleanIf true, the animation plays in reversefalse
durationnumberThe duration of the animation in seconds20
delaynumberThe delay before the animation starts in seconds10
radiusnumberThe radius of the orbit in pixels50