HTML, CSS & JavaScript 7 min read

Maha Shivratri 🕉️

Create a divine Maha Shivratri page with "Har Har Mahadev" — starfield canvas, lightning flashes, smoke effect, Om symbol, and a Mahadev reveal scene with rotating chakra and divine glow. Single-file HTML with embedded CSS and JavaScript. Perfect for Maha Shivratri wishes or a devotional tribute!

This Maha Shivratri project is a single-page experience with a dark blue gradient background, animated starfield (canvas), lightning overlay, and rising smoke. The first scene shows "Maha Shivratri" with an Om symbol and "Har Har Mahadev" subtitle; the second scene reveals a Mahadev-style composition with rotating chakra and divine aura. All code is in one index.html file in the shivratri/ folder.

Uses Google Fonts (Cinzel, Great Vibes), CSS animations, and JavaScript for scene transitions and canvas stars.

📦 Get the Complete Project

The project is a single HTML file with embedded CSS and JavaScript. Copy the code below or open the Live Demo and use "View Page Source".

⬇️ Full code below

📄 Complete HTML Code

Copy this into index.html in your shivratri/ folder. All CSS and JavaScript are inside this file.

index.html
Loading code...

📁 Project Assets

Single-file structure:

pages/
├── assets/
│   └── shivratri/
│       └── index.html   ← All HTML, CSS, JS in one file
  • One file: shivratri/index.html
  • Fonts load from Google Fonts (Cinzel, Great Vibes)

📦 Get Project on GitHub

Download the full project source from our GitHub repository.

⬇️ View GitHub

Key Features

  • 🕉️ Om symbol and "Maha Shivratri" / "Har Har Mahadev" title
  • ⭐ Animated starfield (canvas)
  • ⚡ Lightning flash overlay effect
  • 🌫️ Rising smoke / divine glow at bottom
  • 🕉️ Mahadev reveal scene with rotating chakra and aura
  • 📱 Full-viewport, no scroll (single scene experience)

Customization Tips

  • Text: Edit "Maha Shivratri", "Har Har Mahadev", and subtitle in the HTML
  • Colors: Change gradient and glow colors in the embedded CSS
  • Timing: Adjust animation durations and scene transition delays in CSS and JS

📢 Thanks for your support

English: We keep our projects free thanks to supporters like you. View the content below if you'd like, then press OK to continue to the download.

हिंदी: आप जैसे सपोर्टर्स की वजह से हम ये प्रोजेक्ट मुफ्त रख पाते हैं। नीचे का कंटेंट देख सकते हैं, फिर डाउनलोड के लिए OK दबाएं।

📢 Loading Demo

English: Please wait while we load the demo. You'll be redirected automatically in a few seconds.

हिंदी: कृपया प्रतीक्षा करें, हम डेमो लोड कर रहे हैं। आप कुछ सेकंड में स्वचालित रूप से रीडायरेक्ट हो जाएंगे।