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

OrbitImages

orbit-images

Moves child items along preset or custom CSS offset paths with spacing and tilt controls.

Usage

Basic usage

The elliptical orbit is filled with sub-items at equal intervals and surrounds at a constant speed; centerContent stacks the static center.

1
2
3
4
5
6
Hulian
tsx
<OrbitImages
  items={images.map((src) => (
    <img key={src} src={src} alt="" className="h-full w-full rounded-full object-cover" />
  ))}
  shape="ellipse"
  duration={24}
  itemSize={48}
  showPath
  centerContent={<span className="text-sm font-semibold">Hulian</span>}
/>

Circular Orbit

shape=circle is equipped with radius to control the circle diameter, and more sub-items are evenly distributed.

1
2
3
4
5
6
7
8
tsx
<OrbitImages
  items={avatars}
  shape="circle"
  radius={260}
  duration={30}
  itemSize={44}
/>

Star Orbit·Reverse

shape=star takes the star path, direction=reverse lets the children flow in the reverse direction.

1
2
3
4
5
tsx
<OrbitImages
  items={avatars}
  shape="star"
  radius={300}
  duration={28}
  itemSize={40}
  direction="reverse"
  showPath
/>

Infinity symbol·Filing away

shape=infinity takes the ∞ path; fill=false lets the children start from the same starting point.

1
2
3
4
tsx
<OrbitImages
  items={avatars}
  shape="infinity"
  radiusX={620}
  radiusY={220}
  duration={20}
  itemSize={44}
  fill={false}
  showPath
/>

When to Use

Use it to circulate avatars, icons, or logos along a shaped track in an ecosystem, partner, or technology-stack display. For simple concentric circular orbits, use OrbitingCircles. OrbitImages supports richer offset-path shapes, arbitrary React nodes, and server rendering without JavaScript dependencies.

Import

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

Props

NameTypeDefaultDescription
shape"ellipse"|"circle"|"square"|"rectangle"|"triangle"|"star"|"heart"|"infinity"|"wave"|"custom""ellipse"Track preset; set customPath when using "custom"
customPathstring-SVG path d with shape="custom" (coordinates based on baseWidth square canvas)
baseWidthnumber1400Design canvas side length (px·square viewBox), only affects path geometric proportions
radiusXnumber560Horizontal radius of ellipse/rectangle/infinity/wave (px·based on baseWidth)
radiusYnumber170Vertical radius of ellipse/rectangle/infinity/wave
radiusnumber300Radius of circle/square/triangle/star/center
starPointsnumber5Number of points in the star track
starInnerRationumber0.5Star inner-to-outer radius ratio (0-1); lower values create sharper points
rotationnumber-8Orbital inclination angle (deg), the child rotates in the opposite direction to maintain uprightness
durationnumber40The time it takes to complete a lap (seconds), the larger it is, the slower it is
itemSizenumber64Single child side length (px·CSS pixels)
direction"normal"|"reverse""normal"Flow direction
fillbooleantrueDistributes items evenly when true; starts all items from the same point when false
showPathbooleanfalseTrace track path (debug/decoration)
pathColorstring"var(--color-border)"Track stroke color
pathWidthnumber2Track stroke width (px·based on baseWidth)
classNamestring-Passthrough to root container
styleCSSProperties-Inline styles forwarded to the root container, which defaults to a 1:1 aspect ratio and fills the parent width

Slots

SlotTypeDescription
items *ReactNode[]Sub-items surrounding the track (img/icon/avatar/card are acceptable), required
centerContentReactNodeCentered content (Logo/Title), does not rotate with the track

Usage Guidelines

  • Pure CSS offset-path driver with zero dependencies; however, offset-path has compatibility

differences in old browsers and some WebKit builds, so verify key scenarios on real devices.

  • Client component ("use client"): it measures the container in a layout effect to compute the

scale. Nothing is measured during SSR and nothing errors out; the first frame renders unscaled.

  • radiusX/Y/radius/baseWidth are all design pixels in the baseWidth coordinate system, not the final screen pixels - the container is scaled by CSS to fill the parent width, adjust the geometric proportion to change these, and adjust the actual size to change the size of the parent container.
  • pathColor uses semantic colors such as var(--color-border) with --color- prefix when giving tokens to avoid naked var from not being parsed. See [[hulian-token-color-var-needs-color-prefix]].

Related

BorderBeam · ShineBorder · GlareHover · Lens · AnimatedBeam · OrbitingCircles

Playground

1
2
3
4
5
6
<OrbitImages
  items={images.map((src) => (
    <img key={src} src={src} alt="" className="h-full w-full rounded-full object-cover" />
  ))}
  shape="ellipse"
  duration={24}
  itemSize={48}
  rotation={-8}
  showPath={false}
  fill={true}
/>
PreviousMetallicPaintDecorationNextPixelTrail

On this page

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