More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
images | Array<string | { src: string; alt?: string }> | [] | Images that travel along the path, as URLs or objects with their own alt text. |
altPrefix | 'Orbiting image' | Prefix for the alt text of images given as plain URLs. | |
shape | 'ellipse' | 'circle' | 'square' | 'rectangle' | 'triangle' | 'star' | 'heart' | 'infinity' | 'wave' | 'custom' | 'ellipse' | Shape of the path the images follow. |
customPath | undefined | Your own SVG path, drawn in a baseWidth by baseWidth space. Used when shape is custom. | |
baseWidth | 1400 | Size of the coordinate space for the radii, the item size and custom paths. | |
radiusX | 700 | Horizontal radius for the ellipse, rectangle, infinity and wave. | |
radiusY | 170 | Vertical radius for the ellipse, rectangle, infinity and wave. | |
radius | 300 | Radius for the circle, square, triangle, star and heart. | |
starPoints | 5 | Number of points on the star. | |
starInnerRatio | 0.5 | Inner radius of the star as a fraction of the outer one. | |
rotation | -8 | Rotation of the whole path in degrees. Images stay upright. | |
duration | 40 | Seconds for one full lap. | |
itemSize | 64 | Size of each image, in the same units as the radii. | |
direction | 'normal' | 'reverse' | 'normal' | Which way the images travel. |
fill | Spreads the images evenly around the whole path. Turn it off to make them follow each other in a train. | ||
depth | 0.5 | Sense of depth, from 0 to 1. Images at the back get smaller, dimmer and pass behind the center content, and images at the front grow and pass in front of it. | |
alignToPath | Turns each image to follow the curve instead of staying upright. | ||
itemRadius | number | string | 12 | Corner radius of the images, in the same units as itemSize, or any CSS length. Half of itemSize makes circles. |
shadow | 0.3 | Strength of the soft shadow under each image, from 0 to 1. | |
hoverScale | 1.08 | How much an image grows when hovered. | |
hoverSpeed | 0.3 | Speed while the orbit is hovered, as a fraction of the normal speed. 0 pauses it and 1 keeps full speed. | |
draggable | Lets people drag or swipe sideways to spin the orbit, and fling it. | ||
clickToFront | Clicking an image glides it around to the front. | ||
onItemClick | (index: number, src: string) => void | undefined | Called when an image is clicked. When set, the images become keyboard-focusable buttons. |
showPath | Draws the path the images follow. | ||
pathColor | 'rgba(128,128,128,0.35)' | Color of the path line. | |
pathWidth | 2 | Width of the path line in pixels. | |
pathDash | Dash length of the path line in pixels. 0 draws a solid line. | ||
easing | 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'linear' | Easing applied to each lap. |
paused | Stops the orbit. Dragging still works. | ||
| Images fan out from the front around the path, and the line draws in, when the orbit first comes into view. | |||
centerContent | ReactNode | undefined | Content in the middle of the orbit. With depth, images pass behind and in front of it. |
width | number | string | '100%' | Width of the container. The orbit scales to fit. |
height | number | string | 'auto' | Height of the container. Auto matches the shape of the orbit, any other value fits the orbit inside. |
| Extra class names for the container. |
imagesArray<string | { src: string; alt?: string }>Images that travel along the path, as URLs or objects with their own alt text.
[]altPrefixstringPrefix for the alt text of images given as plain URLs.
'Orbiting image'shape'ellipse' | 'circle' | 'square' | 'rectangle' | 'triangle' | 'star' | 'heart' | 'infinity' | 'wave' | 'custom'Shape of the path the images follow.
'ellipse'customPathstringYour own SVG path, drawn in a baseWidth by baseWidth space. Used when shape is custom.
undefinedbaseWidthnumberSize of the coordinate space for the radii, the item size and custom paths.
1400radiusXnumberHorizontal radius for the ellipse, rectangle, infinity and wave.
700radiusYnumberVertical radius for the ellipse, rectangle, infinity and wave.
170radiusnumberRadius for the circle, square, triangle, star and heart.
300starPointsnumberNumber of points on the star.
5starInnerRationumberInner radius of the star as a fraction of the outer one.
0.5rotationnumberRotation of the whole path in degrees. Images stay upright.
-8durationnumberSeconds for one full lap.
40itemSizenumberSize of each image, in the same units as the radii.
64direction'normal' | 'reverse'Which way the images travel.
'normal'fillbooleanSpreads the images evenly around the whole path. Turn it off to make them follow each other in a train.
depthnumberSense of depth, from 0 to 1. Images at the back get smaller, dimmer and pass behind the center content, and images at the front grow and pass in front of it.
0.5alignToPathbooleanTurns each image to follow the curve instead of staying upright.
itemRadiusnumber | stringCorner radius of the images, in the same units as itemSize, or any CSS length. Half of itemSize makes circles.
12shadownumberStrength of the soft shadow under each image, from 0 to 1.
0.3hoverScalenumberHow much an image grows when hovered.
1.08hoverSpeednumberSpeed while the orbit is hovered, as a fraction of the normal speed. 0 pauses it and 1 keeps full speed.
0.3draggablebooleanLets people drag or swipe sideways to spin the orbit, and fling it.
clickToFrontbooleanClicking an image glides it around to the front.
onItemClick(index: number, src: string) => voidCalled when an image is clicked. When set, the images become keyboard-focusable buttons.
undefinedshowPathbooleanDraws the path the images follow.
pathColorstringColor of the path line.
'rgba(128,128,128,0.35)'pathWidthnumberWidth of the path line in pixels.
2pathDashnumberDash length of the path line in pixels. 0 draws a solid line.
easing'linear' | 'easeIn' | 'easeOut' | 'easeInOut'Easing applied to each lap.
'linear'pausedbooleanStops the orbit. Dragging still works.
introbooleanImages fan out from the front around the path, and the line draws in, when the orbit first comes into view.
centerContentReactNodeContent in the middle of the orbit. With depth, images pass behind and in front of it.
undefinedwidthnumber | stringWidth of the container. The orbit scales to fit.
'100%'heightnumber | stringHeight of the container. Auto matches the shape of the orbit, any other value fits the orbit inside.
'auto'Extra class names for the container.



