Circle Gallery

Draggable circular carousel with inertia and 3D transforms

circle-gallery-tw
001
002
003
004
005
006
007
008
009
010
011
012

Customize

Layout

15%
200px
250px
0.85
16px

Animation

0.35
0.9s
5°/s

Interaction

Props

imagesstring[]

Array of image URLs to display in the circular gallery

Default:[]
radiusPercentnumber

Radius of the circle as a percentage of viewport (10-50)

Default:38
itemWidthnumber

Width of each gallery item in pixels

Default:280
itemHeightnumber

Height of each gallery item in pixels

Default:400
itemScalenumber

Scale factor for items (0.5-1.5)

Default:0.85
borderRadiusnumber

Border radius for items in pixels

Default:8
enableDragboolean

Enable drag rotation of the gallery

Default:true
throwResistancenumber

Throw resistance for inertia (0-1, lower = more momentum)

Default:0.35
animationDurationnumber

Duration for initial animation in seconds

Default:0.9
showNumbersboolean

Show item numbers on cards

Default:true
autoSpinnumber

Auto-spin speed in degrees per second (0 = disabled)

Default:0
classNamestring

Additional CSS classes for the wrapper container

Default:""
itemClassNamestring

Additional CSS classes for each gallery item

Default:""
onItemClick(index: number, image: string) => void

Callback function when an item is clicked

Default:undefined