Optika — Creative Agency & Studio HTML5 Template
31 responsive HTML5 pages powered by WebGL image planes, liquid hero shaders, cursor image trails, self-hosted typography, and validated AJAX-ready forms with zero build dependencies.
1. Package & Folder Structure
The main archive unzips into two top-level folders: documentation/ (this guide) and optika-html/ (the production website).
optika-main-files/
├── documentation/
│ └── index.html # Offline, self-contained documentation
└── optika-html/
├── index.html # Demo showcase hub
├── home-1.html .. home-10.html
├── about.html, services.html, works-grid.html, contact.html, ...
├── README.txt
└── assets/
├── css/style.css # Full stylesheet, dark & light tokens
├── js/main.js # Core UI, filters, sliders, form validation & AJAX
├── js/fx.js # WebGL image planes, hover ripple & scroll bend
├── fonts/ # Self-hosted Inter Tight, DM Mono & Instrument Serif
└── img/ # Photography, glow backgrounds & showcase thumbs
2. Quick Start & Local Preview
Browsers restrict WebGL texture loading and local font CORS over file://. Serve optika-html/ via any local HTTP server for exact rendering:
cd optika-html
php -S 127.0.0.1:8080
# or: npx serve .
# or: python -m http.server 8080
3. Colors & Light Edition
Optika defaults to a deep obsidian palette and includes a built-in cream light mode by adding class="th-light" to <body> (used in home-6.html). Edit CSS variables in assets/css/style.css:
--bg: #070605--fg: #f2eee8--ac: #ff5a1f4. Self-Hosted Typography
Optika bundles Inter Tight, DM Mono, and Instrument Serif (.woff) inside assets/fonts/ (SIL Open Font License) for zero external font requests and GDPR compliance.
5. WebGL Shaders & Interactive Attributes
assets/js/fx.js upgrades img[data-gl] and portfolio/team media into GPU-accelerated WebGL planes with scroll-velocity bend and hover ripple. If WebGL is unavailable or on mobile, standard responsive <img> elements render automatically.
| Attribute / Class | Purpose |
|---|---|
data-gl / data-glfx="3" / data-nogl | Enable WebGL plane, boost liquid intensity, or opt out per image. |
data-r | Scroll-triggered reveal animation. |
data-count="212" / data-suf="+" | Animated numeric counter on scroll into view. |
data-cur="View" | Custom cursor label on hover. |
data-trail='["a.jpg","b.jpg"]' | Cursor image trail on hero or index sections. |
data-filters + [data-cat] | Interactive category filtering on works & journal grids. |
canvas#gl[data-imgs][data-titles] | Full-screen WebGL distortion slider (home-4.html). |
6. Validated Forms & AJAX Submission
contact.html and all 30 footer newsletter forms use data-optika-form and novalidate. assets/js/main.js validates required inputs, email syntax, and minimum length with inline .f-err messages and aria-invalid.
To connect a live backend (Formspree, Getform, or custom PHP endpoint), add action="https://your-endpoint.com/submit" method="POST" to any <form data-optika-form>; main.js will submit via fetch() and display status in .ok / .form-err.
7. All 31 Included HTML5 Pages
index.htmlDemo Showcase Hubhome-1.htmlOptika Classic (Ring Glow)home-2.htmlLiquid Lens (WebGL Hero)home-3.htmlPortrait Splithome-4.htmlWebGL Distortion Sliderhome-5.htmlImage Trail & Hover Indexhome-6.htmlLight Edition (Cream & Orange)home-7.htmlShowreel & Drag Carouselhome-8.htmlGiant Type & Marqueehome-9.htmlBento Grid & 3D Tilthome-10.htmlBending Side-Scroll Galleryabout.htmlStudio Overviewservices.htmlCapabilities Matrixservice-single.htmlService Scopeworks-grid.htmlFilterable Works Gridworks-masonry.htmlMasonry Showcaseworks-list.htmlIndex Works Listproject-single.htmlCase Study Iproject-single-2.htmlCase Study IIteam.htmlCreative Teamteam-single.htmlDirector Profileblog-grid.htmlEditorial Gridblog-list.htmlEditorial Listpost-single.htmlArticle Viewpricing.htmlRetainer & Packagescontact.htmlValidated Inquiry Formfaq.htmlClient FAQcareers.htmlOpen Rolesawards.htmlAwards & Pressprocess.htmlStudio Process404.html404 Error Page8. Assets & Credits
- Fonts: Inter Tight, DM Mono, Instrument Serif (SIL Open Font License, self-hosted in
assets/fonts/). - Photography: Curated studio and editorial photography bundled in
assets/img/for demonstration. - Author: Faton Designs (faton.works).