BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/fancy/circling-elements

Circling Elements

fancy/circling-elements
FreeComponent

A ui component.

Install it

npx shadcn@latest add https://www.fancycomponents.dev/r/circling-elements.json

Source

fancy/blocks/circling-elements.tsxwww.fancycomponents.dev/r/circling-elements.json
1"use client"
2
3import { Children } from "react"
4import { motion } from "motion/react"
5
6import { cn } from "@/lib/utils"
7
8type CirclingElementsProps = {
9 children: React.ReactNode
10 radius?: number
11 duration?: number // in seconds
12 easing?: string
13 direction?: "normal" | "reverse"
14 className?: string
15 pauseOnHover?: boolean
16}
17
18const CirclingElements: React.FC<CirclingElementsProps> = ({
19 children,
20 radius = 100,
21 duration = 10,
22 easing = "linear",
23 direction = "normal",
24 className,
25 pauseOnHover = false,
26}) => {
27 return (
28 <div className={cn("relative z-0 group/circling", className)}>
29 {Children.map(children, (child, index) => {
30 const offset = (index * 360) / Children.count(children)
31
32 const animationProps = {
33 "--circling-duration": duration,
34 "--circling-radius": radius,
35 "--circling-offset": offset,
36 "--circling-direction": direction === "reverse" ? -1 : 1,
37 animation: `circling ${duration}s ${easing} infinite`,
38 animationName: "circling",
39 animationDuration: `${duration}s`,
40 animationTimingFunction: easing,
41 animationIterationCount: "infinite",
42 } as React.CSSProperties
43
44 return (
45 <motion.div
46 key={index}
47 style={animationProps}
48 className={cn(
49 "transform-gpu animate-circling absolute -translate-x-1/2 -translate-y-1/2",
50 pauseOnHover &&
51 "group-hover/circling:![animation-play-state:paused]"
52 )}
53 >
54 {child}
55 </motion.div>
56 )
57 })}
58 </div>
59 )
60}
61
62export default CirclingElements

What it pulls in

npm packages

  • motion

Files it writes

  • fancy/blocks/circling-elements

Facts

Registry
fancy
Type
registry:ui
Access
Free
Files written
1
Theme wiring
ships cssVars
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

www.fancycomponents.dev danielpetho/fancy on GitHub Raw registry item This item as JSON

More from fancy

All 158 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Gradient With Svganimated-gradient-with-svgfancyComponentsFreeno deps
Basic Number Tickerbasic-number-tickerfancyComponentsFree1 dep
Box Carouselbox-carouselfancyComponentsFree1 dep
Breathing Textbreathing-textfancyComponentsFree1 dep
Css Boxcss-boxfancyComponentsFree1 dep
Cursor Attractor And Gravitycursor-attractor-and-gravityfancyComponentsFree5 deps
Drag Elementsdrag-elementsfancyComponentsFree1 dep
Elastic Lineelastic-linefancyComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex