Circle Gallery

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

Customize

15%
200px
250px
0.85
16px
0.35
0.9s
5°/s

Props

NameTypeDefaultDescription
imagesstring[][]Array of image URLs to display in the circular gallery
radiusPercentnumber38Radius of the circle as a percentage of viewport (10-50)
itemWidthnumber280Width of each gallery item in pixels
itemHeightnumber400Height of each gallery item in pixels
itemScalenumber0.85Scale factor for items (0.5-1.5)
borderRadiusnumber8Border radius for items in pixels
enableDragbooleantrueEnable drag rotation of the gallery
throwResistancenumber0.35Throw resistance for inertia (0-1, lower = more momentum)
animationDurationnumber0.9Duration for initial animation in seconds
showNumbersbooleantrueShow item numbers on cards
autoSpinnumber0Auto-spin speed in degrees per second (0 = disabled)
classNamestring""Additional CSS classes for the wrapper container
itemClassNamestring""Additional CSS classes for each gallery item
onItemClick(index: number, image: string) => voidundefinedCallback function when an item is clicked