Pinwheel

Circular rotating gallery with radial image arrangement.

Main Features of Pinwheel

How to Use Pinwheel in Next.js

Installation Guide for Pinwheel

Props

Customize the component with these props

PropertyTypeDefaultDescription
images
string[][]Array of image URLs
bladeCount
number8Number of blades in the pinwheel
backgroundColor
stringbg-slate-950Background color of the component
containerHeight
stringh-[300vh]Height of the container
wheelSize
stringw-[150vh] h-[150vh]Size of the pinwheel
bladeWidth
stringw-80Width of each blade
bladeHeight
stringh-[50vh]Height of each blade
bladeBgColor
stringbg-red-500/20Background color of blades
centerSize
stringw-64 h-64Size of the center circle
centerBgColor
stringbg-slate-950Background color of center
centerBorderColor
stringborder-white/20Border color of center
centerText
stringROTATE_YText in the center
centerTextColor
stringtext-whiteColor of center text
centerTextSize
stringtext-xlSize of center text
rotationRange
[number, number][0, 360]Rotation range in degrees
className
stringAdditional CSS classes

When to Use

Excellent for creative studios, product showcases, and Next.js applications that want to emphasize a central hub. Use this React component to create a radial gallery that rotates like a pinwheel as the user scrolls down.

Best Practices

Follow React best practices by using the `centerText` for high-impact branding. Maintain scalable component architecture by keeping the `bladeCount` reasonable (e.g., 6-12) for visual clarity. Optimize for performance by using efficient radial transforms for the images.

Why This Component Matters in Modern UI Development

Radial and circular galleries provide a unique alternative to standard linear grids. This reusable React component gives developers a robust way to implement complex polar-coordinate motion, adding semantic authority and visual movement to your real-world application architecture.

Frequently Asked Questions

QCan I change the rotation direction?

Yes, by swapping the `rotationRange` values (e.g., from [360, 0]), you can make the pinwheel spin clockwise or counter-clockwise.

QWhat size images should I use?

The `bladeWidth` and `bladeHeight` props let you adapt the blade size to any image aspect ratio.

QIs the center circle interactive?

The center hub is designed for branding, but can be easily extended with hover effects or custom React children.

Pinwheel - React Parallax & Scroll Effects | Uilora