Skip to content

reezmahanan/Digital-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ• Digital Clock

A beautiful, beginner-friendly digital clock web app with modern glassmorphism design, animated background, glowing text, and powerful featuresβ€”built using just HTML, CSS, and vanilla JavaScript.


Digital Clock Screenshot

🌟 Demo

Live Demo


✨ Features

Visual Features

  • Modern Design – Glassmorphism effect with blur & transparency
  • Gradient Background – Animated gradient and subtle particles
  • Glowing Text – Time displays a cyan glow
  • Responsive Layout – Perfect on mobile, tablet, desktop
  • Smooth Animations – Blinking colon & gentle glow

Functional Features

  • Real-Time Updates – Clock updates every second
  • 12H/24H Toggle – Click button or press SPACEBAR to switch formats
  • Current Date – Full date shown below time
  • Timezone Display – Shows your current timezone
  • Seconds Display – Small seconds counter included
  • Keyboard Shortcut – Toggle format with SPACEBAR

Beginner-Friendly Elements

  • Clean Code – Well-commented & organized for learning
  • CSS Variables – Easily customize colors
  • Responsive Design – Works on all screens
  • No Dependencies – Pure HTML, CSS, JS

🎨 Easy Customization

Change colors by editing these CSS variables at the top of digital-clock.html:

:root {
  --primary-color:    #00d4ff;   /* Main clock color */
  --secondary-color:  #0099cc;   /* Secondary elements */
  --background-dark:  #0a0a0a;   /* Dark background */
  --background-light: #1a1a1a;   /* Light background */
}

πŸš€ How to Use

  1. Open digital-clock.html in any web browser.
  2. The clock starts automatically!
  3. Toggle Format:
    • Click the "Switch to 12H/24H" button
    • Or press the SPACEBAR
  4. Enjoy!
    • Full date, timezone, seconds, and smooth animations.

πŸ’– Made With Love

  • Self-contained, well-documented, and super easy to customize.
  • Perfect for beginners and anyone who loves beautiful clocks!

⭐ Support & Give a Star!

If you like this project, please consider giving a ⭐ star and sharing it with friends!
Found a bug? Need a feature? Open an issue For questions or suggestions, reach out via Discussions


πŸ“‚ File


πŸ“§ Contact

Made with πŸ’™ by reezmahanan


Releases

No releases published

Packages

No packages published

Languages