What is CineRitual?
CineRitual is a framework that transforms static websites into cinematic, scroll-driven experiences. Instead of complex 3D libraries like Three.js, it uses a simple video-to-frames approach that creates stunning visual effects with minimal code.
AI-Native Design: CineRitual includes a .skills folder that allows AI coding assistants (Claude, Cursor, GitHub Copilot) to understand and execute complete workflows. Tell your AI “Create a luxury watch site” and it handles everything from video prompt generation to deployment.
How It Works
- Provide a video (3-10 seconds, MP4 format)
- CineRitual extracts frames from your video
- Frames sync with scroll creating a 3D-feeling animation
- Add your content over the cinematic background
Quick Start Guide
Prerequisites
- Node.js (v16 or higher)
- ffmpeg (Download here)
- A video file (MP4, 3-10 seconds)
Step 1: Clone the Repository
git clone https://github.com/tech-maxara/cineritual.git
cd cineritual
Step 2: Initialize a New Project
node utils/init.js my-project
This creates a new project folder with the complete structure:
my-project/
├── source/ # Place your video here
├── images/ # Frames will be saved here
├── index.html # Your website
└── .gitignore # Git configuration
Step 3: Add Your Video
Copy your video file into the source/ folder:
# Windows
copy your-video.mp4 my-project\source\video.mp4
# Mac/Linux
cp your-video.mp4 my-project/source/video.mp4
Step 4: Process Video into Frames
cd my-project
node ../utils/frame-converter.js source/video.mp4 images/ 60
This command:
- Extracts 60 frames from your video
- Saves them as
frame-001.jpg, frame-002.jpg, etc.
- Optimizes them for web display
Step 5: Customize Your Site
Open index.html and update the content:
<div class="ritual-content">
<span class="eyebrow">Your Brand</span>
<h1 class="headline">Your <em>Headline</em></h1>
<p class="subtext">Your description goes here.</p>
</div>
Step 6: Test Locally
Open index.html in your browser. Scroll to see the cinematic effect in action.
Step 7: Deploy
GitHub Pages (Free):
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
git push -u origin main
Then enable GitHub Pages in your repository settings.
Netlify (Easiest):
- Go to https://app.netlify.com
- Drag and drop your project folder
- Done
Features
Cinematic Frame-Sync Engine
Synchronize high-resolution video frames with scroll progress for smooth 3D-feeling animations. No WebGL complexity required.
5-Minute Setup
From raw video to deployed site in under 5 minutes. Simple commands, no complex configuration.
AI-Native Workflow
Built-in prompt templates for Gemini, Midjourney, and Flux. AI agents can execute complete workflows through natural language.
Premium Design System
Glassmorphism effects, storytelling typography, and curated color palettes included. Professional results out of the box.
Zero Dependencies
Vanilla JavaScript core. No React, no Vue, no build step. Just HTML, CSS, and GSAP for animations.
Perfect For
- Luxury product showcases (watches, fashion, jewelry)
- Tech product launches (SaaS, apps)
- Creative portfolios (designers, photographers)
- Real estate presentations
- Restaurant and food brands
Customization
Themes
CineRitual includes 3 pre-designed themes:
Dark Chocolate (Warm & Elegant)
- Background:
#120906
- Accent:
#c69c6d
- Best for: Luxury brands, watches, fashion
Night Neon (Futuristic & Bold)
- Background:
#050510
- Accent:
#00f2ff
- Best for: Tech products, gaming, crypto
Minimal Platinum (Clean & Sophisticated)
- Background:
#f9f9f9
- Accent:
#111111
- Best for: Architecture, real estate, minimalist brands
Adjust the scroll speed in your index.html:
const ritual = new CineRitual({
frameCount: 60,
scrollTriggerEnd: '+=150%'
});
+=100% = Fast (1 viewport scroll)
+=150% = Medium (recommended)
+=200% = Slow (2 viewport scrolls)
Custom Colors
Edit CSS variables in index.html:
:root {
--accent: #c69c6d;
--bg-main: #0d0604;
--text-main: #f5f0e1;
}
AI Skills
CineRitual includes AI-executable workflows in the .skills/ folder:
- create-cinematic-site - Complete workflow from concept to deployment
- generate-prompts - AI prompts for video creation
- process-video - Video-to-frames conversion
- customize-theme - Theme customization
- deploy-site - One-click deployment
AI coding assistants can read these skills and execute them through natural language commands.
Project Structure
cineritual/
├── .skills/ # AI-executable workflows
├── .agent/ # AI context and configuration
├── core/
│ ├── engine.js # Frame-sync animation engine
│ └── ui.css # Design system
├── templates/
│ └── bootstrap.html # Project template
├── utils/
│ ├── frame-converter.js # Video processing
│ └── init.js # Project initializer
├── assets/
│ ├── hero_compressed.gif
│ └── maxara-logo.jpeg
└── README.md
Troubleshooting
Frames not loading?
- Verify
frameCount in your script matches the actual number of frames
- Check frame naming:
frame-001.jpg, frame-002.jpg, etc.
- Look for 404 errors in browser console
Scroll animation not working?
- Ensure GSAP and ScrollTrigger CDN links are present in HTML
- Verify the canvas element has the correct class
- Check browser console for JavaScript errors
Performance issues?
- Reduce frame count to 40 or 30
- Compress images using TinyPNG or similar tools
- Consider using WebP format instead of JPEG
ffmpeg not found?
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Ways to contribute:
- Report bugs via Issues
- Suggest features
- Share your CineRitual sites in Discussions
- Submit pull requests
License
MIT License - see LICENSE file for details.
Built with passion by Maxara
For the extraordinary.

评论