3D & WebGLProNew

Dot Globe

A 3D sphere of dots in three.js. It turns slowly, some dots pulse, and you can spin it with the mouse.

Customize

dotColor
highlightColor

A Codearia component ยท Terms of use

Props

10 properties
PropertyTypeDefaultDescription
dotCountnumber2400Number of dots on the sphere.
dotColorstring"#a3a3a3"Color of the regular dots.
highlightColorstring"#ffffff"Color of the pulsing dots.
dotSizenumber2.4Dot size, in pixels.
highlightRationumber0.04Share of pulsing dots.
speednumber1Speed. 0 stops the motion.
tiltnumber18Axis tilt, in degrees.
draggablebooleantrueThe globe can be spun by mouse or finger.
childrenReactNodeโ€”Content on top of the effect.
classNamestringโ€”Classes for the wrapper.

Dependencies

3 required packages

npm install three clsx tailwind-merge

Related components

View all