Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Backgrounds

  • DotPattern
  • GridPattern
  • StripedPattern
  • Spotlight
  • FadeMask
  • RetroGrid
  • Ripple
  • Meteors
  • Aurora
  • Particles
  • FlickeringGrid
  • WavyBackground
  • Silk
  • Iridescence
  • Threads
  • Orb
  • LiquidChrome
  • Balatro
  • Ballpit
  • Beams
  • ColorBends
  • DarkVeil
  • Dither
  • DotField
  • EvilEye
  • FaultyTerminal
  • Ferrofluid
  • FloatingLines
  • Galaxy
  • GradientBlinds
  • Grainient
  • GridDistortion
  • GridMotion
  • GridScan
  • Hyperspeed
  • LetterGlitch
  • Lightfall
  • Lightning
  • LightPillar
  • LightRays
  • LineWaves
  • LiquidEther
  • PixelBlast
  • PixelSnow
  • Plasma
  • PlasmaWave
  • Prism
  • PrismaticBurst
  • Radar
  • RippleGrid
  • ShapeGrid
  • SideRays
  • SoftAurora

Overlay Effects

  • BorderBeam
  • ShineBorder
  • GlareHover
  • Lens
  • AnimatedBeam
  • OrbitingCircles
  • ProgressiveBlur
  • CardSpotlight
  • Reveal
  • Antigravity
  • BlobCursor
  • ClickSpark
  • Crosshair
  • ElectricBorder
  • GhostCursor
  • GradualBlur
  • ImageTrail
  • LaserFlow
  • MagicRings
  • Magnet
  • MagnetLines
  • MetaBalls
  • MetallicPaint
  • OrbitImages
  • PixelTrail
  • PixelTransition
  • Ribbons
  • ShapeBlur
  • SplashCursor
  • StarBorder
  • StickerPeel
  • TargetCursor
  • Cubes
  • Tilt
  • BorderGlow
  • GlassIcons
  • GlassSurface
  • Lanyard
  • ModelViewer
  • FluidGlass

OrbitingCircles

orbiting-circles

Moves child items around one or more circular paths.

Usage

Basic usage

Child elements orbit at a constant speed, with a mark or logo in the center.

Hulian
A
B
C
D
1
2
tsx
<div className="relative flex size-[340px] items-center justify-center">
  <span className="text-sm font-medium text-muted-foreground">Hulian</span>
  <OrbitingCircles radius={140} duration={20}>
    <Chip c="A" />
    <Chip c="B" />
    <Chip c="C" />
    <Chip c="D" />
  </OrbitingCircles>
</div>

Reverse rotation

reverse allows the track to rotate in reverse direction, often used for internal and external double ring hedging enhancement levels.

Hulian
A
B
C
D
1
2
tsx
<OrbitingCircles radius={140} duration={20} reverse>
  <Chip c="A" />
  <Chip c="B" />
</OrbitingCircles>

Single loop · Hidden track

showPath=false Remove the dotted track and match the iconSize tone element box size.

React
TS
CSS
tsx
<div className="relative flex size-[340px] items-center justify-center">
  <OrbitingCircles radius={120} duration={16} showPath={false} iconSize={48}>
    <Chip c="React" />
    <Chip c="TS" />
    <Chip c="CSS" />
  </OrbitingCircles>
</div>

When to Use

Use it to revolve icons or avatars around a center point at a constant speed, such as a technology-stack or brand ecosystem display. Children are distributed evenly around the circumference and counter-rotate to remain upright. Stack instances with different radius and duration values for multiple tracks. To connect specific nodes with a moving beam, use AnimatedBeam.

Import

ts
import { OrbitingCircles } from "@hulianui/ui"

Props

NameTypeDefaultDescription
radiusnumber150Orbit radius in pixels
durationnumber20Duration of one revolution in seconds
reversebooleanfalseReverse rotation
iconSizenumber40Child element box size in pixels
showPathbooleantrueWhether to draw a dotted orbital circle
classNamestring-Additional class name for the root element

Slots

SlotTypeDescription
childrenReactNodeSurrounded child elements (icons, etc.), evenly distributed to the circumference by number

Usage Guidelines

  • Place it in a centered relative container, and the container size needs to be ≥ 2×radius, otherwise the track will be cut.
  • Pure CSS implementation, can be used directly in RSC without "use client".
  • Under the reduced-motion preference, the revolution will be weakened/stopped. Do not use it as the only information carrier.

Related

BorderBeam · ShineBorder · GlareHover · Lens · AnimatedBeam · ProgressiveBlur

Playground

Hulian
A
B
C
D
1
2
<div className="relative flex size-[340px] items-center justify-center">
  <OrbitingCircles radius={140} duration={20}>
    <Icon /><Icon /><Icon />
  </OrbitingCircles>
</div>
PreviousAnimatedBeamDecorationNextProgressiveBlur

On this page

  • Usage
  • Documentation
    • When to Use
    • Import
    • Props
    • Slots
    • Usage Guidelines
    • Related
  • Playground