A modern, customizable clock widget that can be embedded into any webpage. Features smooth animations, multiple themes, and various display options.
- 🎨 8 Beautiful Themes:
- Cyber Green (default): Futuristic green glow with dark gradient background
- Neon Blue: Electric blue digits with deep space background
- Retro Red: Warm red glow with dark contrast
- Minimal White: Clean white design with subtle shadows
- Matrix: Digital rain effect with bright green text
- Vapor Wave: Pink and purple gradient with retro grid pattern
- Sunset: Warm gradient background with pulsing glow
- Synthwave: Perspective grid with neon pink and cyan accents
- 📏 Multiple sizes (small, medium, large, extra-large)
- 🕐 12/24 hour time formats
- ⚡ Smooth digit transitions and animations
- 🔄 Multiple instances support
- 📱 Responsive design
Add this to your HTML:
<div id="clock-widget-target"></div>
<script src="embeddable-clock.js"></script>
The demo page includes convenient navigation features:
- Desktop: Fixed sidebar navigation to quickly jump between themes
- Mobile: Horizontal scrollable menu at the bottom of the screen
- Back to top button appears when scrolling
- Smooth scrolling animations
- Visual indicators for current theme section
- Automatic mobile/desktop layout switching
data-theme="theme-name"
Available themes:
cyber-green
: Default theme with neon green text and dark gradientneon-blue
: Electric blue glow with space-like backgroundretro-red
: Warm red glow with dark contrastminimal-white
: Clean white text with subtle effectsmatrix
: The Matrix inspired theme with digital rain effectvapor-wave
: Retro aesthetic with pink/purple gradient and gridsunset
: Dynamic warm gradients with pulsing glowsynthwave
: 80s retro futurism with perspective grid
data-format="format"
Options:
12h
(default) - 12-hour format with AM/PM24h
- 24-hour military time format
data-show-seconds="true|false"
true
(default) - Shows hours, minutes, and secondsfalse
- Shows only hours and minutes
data-size="size"
Available sizes:
small
(2rem) - Compact displaymedium
(3rem, default) - Standard sizelarge
(4rem) - Enhanced visibilityextra-large
(5rem) - Maximum impact
<div id="clock-widget-target"
data-theme="neon-blue"
data-format="24h"
data-show-seconds="false"
data-size="large">
</div>
Visit our interactive demo page to:
- See all available themes in action
- Try different combinations of options
- Get the exact code for your preferred configuration
- Preview the clock in different sizes and formats
index.html
: Interactive demo page with live configurationembeddable-clock.js
: Core widget code with themes and animations
- Uses the Orbitron font for that perfect digital display look
- Smooth transitions between updates
- Efficient handling of multiple instances
- No external dependencies
- Lightweight and performance-optimized