Documentation · v1.0.0

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.

Version1.0.0
HTML5 Pages31 Pages (10 Homes + 20 Inner)
Graphics EngineCustom WebGL (fx.js)
DependenciesZero (Pure HTML/CSS/JS)

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:

Obsidian Base--bg: #070605
Warm Ivory Ink--fg: #f2eee8
Optika Signal Orange--ac: #ff5a1f

4. 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-noglEnable WebGL plane, boost liquid intensity, or opt out per image.
data-rScroll-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 Hub
home-1.htmlOptika Classic (Ring Glow)
home-2.htmlLiquid Lens (WebGL Hero)
home-3.htmlPortrait Split
home-4.htmlWebGL Distortion Slider
home-5.htmlImage Trail & Hover Index
home-6.htmlLight Edition (Cream & Orange)
home-7.htmlShowreel & Drag Carousel
home-8.htmlGiant Type & Marquee
home-9.htmlBento Grid & 3D Tilt
home-10.htmlBending Side-Scroll Gallery
about.htmlStudio Overview
services.htmlCapabilities Matrix
service-single.htmlService Scope
works-grid.htmlFilterable Works Grid
works-masonry.htmlMasonry Showcase
works-list.htmlIndex Works List
project-single.htmlCase Study I
project-single-2.htmlCase Study II
team.htmlCreative Team
team-single.htmlDirector Profile
blog-grid.htmlEditorial Grid
blog-list.htmlEditorial List
post-single.htmlArticle View
pricing.htmlRetainer & Packages
contact.htmlValidated Inquiry Form
faq.htmlClient FAQ
careers.htmlOpen Roles
awards.htmlAwards & Press
process.htmlStudio Process
404.html404 Error Page

8. 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).