Skip to content

Animated Globe

Render an interactive 3D globe in React with the Cobe library. Preview its rotation and customize the globe for your layout.

To Get the sparkle code Please Click That Link here

Installation

npx uilayouts@latest add globe

Props

PropTypeDefaultDescription
classNamestringundefinedOptional CSS class for styling the Earth component.
thetanumber0.25Controls the rotational angle of the Earth.
darknumber1Controls the darkness level of the Earth.
scalenumber1.1Controls the scaling factor of the Earth.
diffusenumber1.2Controls the diffuse light intensity of the Earth.
mapSamplesnumber40000The number of samples used for the map texture.
mapBrightnessnumber6The brightness of the map texture.
baseColor[number, number, number][0.4, 0.6509, 1]The base color of the Earth as an RGB array.
markerColor[number, number, number][1, 0, 0]The color of the markers on the Earth as an RGB array.
glowColor[number, number, number][0.2745, 0.5765, 0.898]The color of the glow effect on the Earth as an RGB array.

Example

Light Globe

Sparkles Globe