An ultra-precise, smooth, and immersive SVG-based analog clock simulation that dynamically adjusts the second-hand movement for real-time error correction. Ensures that the hands never move backward while maintaining a seamless and realistic experience.
- 📏 Accurate Second Hand Adjustments – The clock automatically corrects time discrepancies by subtly adjusting speed without abrupt jumps.
- 🎨 Modern SVG-Based Design – Fully responsive and resolution-independent, ensuring crisp visuals on any screen.
- 🌗 Dark/Light Mode Support – Auto-adapts to system preferences for an optimal viewing experience.
- ⏱ Smooth Animations – Clock hands move fluidly to simulate real-world physics.
- 🔧 Customizable – Easily tweak styles via CSS variables for colors, stroke widths, and clock face design.
You'll need live-server for quick development.
npm install
npm start
npx live-server
If you prefer using Python:
python -m http.server 8000
Then, open http://localhost:8000/
in your browser.
Modify style.css
to customize:
- Clock face colors
- Hand stroke widths
- Animation speeds
- Dark mode colors
Look for the CSS variables inside :root {}
in the style.css
file.
- JavaScript (ES6+) – Handles dynamic clock logic & animations.
- SVG – Creates fully scalable vector-based clock components.
- CSS3 – Styles and animations.
- Halfmoon CSS Framework – Provides layout utilities.
- Topcoat CSS Framework – Enhances UI component styling.
- 🕰️ Implement easing functions for more natural second-hand movements.
- 🔊 Add a ticking sound effect to enhance immersion.
- 🌍 Support multiple time zones & world clocks.
- 🎛 Introduce user-configurable settings for customizing clock appearance & behavior.
MIT License – Free to use, modify, and share.