v2.2
MENU ANIMATIONS
UI SURECART
BUTTONS
Gallery Carousel
Creates a 3D cylindrical carousel with smooth rotation. Items are positioned in a circle using CSS 3D transforms with automatic opacity fading based on position. Can be scroll-driven or auto-rotating. Perfect for portfolios, product showcases, or interactive galleries.
Gallery Carousel
Scroll the page to rotate the carousel.
Dimensions
Distance of items from center. Larger radius creates wider, more spacious carousel.
Default: 600
3D perspective depth. Lower creates dramatic angle, higher is more subtle.
Default: 2000
Rotation
Speed of automatic rotation. Zero stops auto-rotation, higher spins faster.
Default: 0.02
Control carousel with page scroll. When true, scrolling rotates carousel.
Default: true
Smoothness of rotation transitions. Lower is smoother but slower, higher is snappier.
Default: 0.1
Performance
This element uses CSS 3D transforms with preserve-3d for carousel effect. Calculates item positions using trigonometry and applies rotateY transforms. Features scroll event listeners with passive mode, automatic opacity calculation based on angle, and requestAnimationFrame for smooth 60fps animation. Suitable for most devices with 6-12 items maximum for best performance.