A mystical, magical web application with smooth video transitions and bilingual support.
Place your videos in the videos/ folder with these exact names:
videos/
├── starting-video.mp4 # Video shown on welcome screen
├── english-video.mp4 # Video shown when English is selected
└── farsi-video.mp4 # Video shown when Farsi is selected
- Format: MP4 (H.264 codec recommended)
- Resolution: 1280x720 or higher
- Duration: 10-30 seconds (plays once, stops on last frame)
- File Size: Keep under 10MB each for better performance
- Starting Video: Mystical, welcoming atmosphere (plays first, then stops on last frame)
- English Video: Content that complements English text (plays when English is selected)
- Farsi Video: Content that complements Farsi text (plays when Farsi is selected)
- Page Load: Starting video plays automatically with sound
- Video End: Videos stop on their last frame (no looping)
- Language Switch: Smooth 1.5-second fade transition between videos
- Volume Control: Adjustable volume slider in top-right corner
# Navigate to project folder
cd "C:\Users\faraz\OneDrive\Desktop\Code\AstroWeb"
# Start Python server
python -m http.server 8000
# Open browser and go to:
# http://localhost:8000- Double-click
index.html - Opens in default browser
- Magical Aesthetic: Purple background with twinkling stars
- Smooth Video Transitions: 1.5-second fade between videos
- Bilingual Support: English/Farsi with RTL support
- Responsive Design: Mobile-first approach
- Interactive Cards: Flippable cards with hover effects
- No Scrolling: Fixed viewport design
- Welcome Screen: Starting video plays
- Click "Start Journey": Transitions to English video
- Language Switching: Smooth video transitions
- Card Selection: Interactive mystical cards
AstroWeb/
├── index.html # Main HTML file
├── styles.css # All CSS styles
├── script.js # All JavaScript functionality
├── videos/ # Video files folder
│ ├── starting-video.mp4
│ ├── english-video.mp4
│ └── farsi-video.mp4
└── README.md # This file
- Colors: Edit
styles.cssto change the magical color scheme - Text: Modify translations in
script.js - Videos: Replace video files in
videos/folder - Animations: Adjust timing in CSS transitions
- Chrome (recommended)
- Firefox
- Safari
- Edge
- Mobile browsers
Enjoy your mystical journey! ✨🔮🌟