A visually engaging, interactive 3D rotating globe built with HTML, CSS, and JavaScript. The globe spins continuously and features clickable markers that display location info — perfect for portfolios, travel websites, or educational tools.
- 🌎 Smooth 3D rotating globe animation
- 📍 Clickable markers for specific coordinates
- 💬 Info box updates when markers are clicked
- 📱 Responsive and lightweight
- 🧠 Built with pure HTML, CSS & JavaScript (no libraries)
index.html
: Main HTML structure with globe and markersstyle.css
: Styling for the 3D globe, markers, and info boxscript.js
: Marker click handling and info display
-
Clone the repository:
git clone https://github.com/codewithoyem/interactive-3d-globe-100daysofcode.git cd interactive-3d-globe-100daysofcode
-
Open the HTML file:
open index.html
- Open the page and hover or touch a card.
- Watch the globe spin continuously.
- Click on a red marker to see the location name in the info box.
- Add more markers by inserting new
<div class="marker" style="--lat:LAT; --lon:LON;" title="NAME"></div>
elements inside the.globe
div.
Feel free to fork, improve, or customize!
- Fork this repository
- Create a new branch
- Make your changes
- Submit a Pull Request
- Created by CODEWITHOYEM
- 📧 mailto:oyem@crisent.com
- 🌐 oyem.crisent.com
- 🐦 @codewithoyem
This project is licensed under the MIT License and is available for use under the MIT License.