Vespra
documentation.

Everything you need to launch, customize and extend Vespra — an award-style creative studio & portfolio template built with hand-written HTML, CSS and vanilla JavaScript.

01 — IntroductionWelcome to the shadow.

Thank you for choosing Vespra! The template is designed for creative studios, agencies, freelancers, designers and developers who want a portfolio that feels like an award-winning website out of the box.

Vespra has zero dependencies: no jQuery, no frameworks, no build step and no third-party stock licences. It ships with 10 unique homepages (including 4 real-time WebGL experiences, a Résumé/CV, and an interactive vCard), 10 inner pages, a demo showcase, 37 original rendered images, and a generative SVG artwork library.

TipOpen Template/index.html straight in your browser to explore. For the best experience (page transitions, fonts and forms), use a local server, as described in Getting started.

02 — FeaturesWhat’s inside

21 HTML pages10 homepages + 10 inner + showcase
Fully responsiveDesktop · tablet · mobile
Page transitionsTwo-panel curtain
Eclipse preloaderOnce per session
Custom cursorContextual labels
Scroll revealsWords, clips, fades
4 WebGL engines + 37 rendersZero-dependency WebGL 1 & SVG
Live clocks & heatmapReal time data
Before/after sliderMouse, touch & keyboard
Filters & view toggleWork & journal
Validated formsFormspree-ready
AccessibleReduced motion, focus, ARIA

03 — Getting startedUp and running in a minute

1. Unzip the package

You will find the Template folder (21 HTML files, CSS, vanilla JS, WebGL engine, and 37 included images), the Documentation folder (this guide), plus README.txt and CHANGELOG.txt.

2. Preview locally

Double-click Template/index.html, or run a tiny local server from the Template folder — recommended, because some browsers restrict features on file:// URLs:

# Option A — Node.js
npx serve Template

# Option B — Python 3
cd Template && python3 -m http.server 8080
# then open http://localhost:8080

# Option C — VS Code
# install the "Live Server" extension and click "Go Live"

3. Upload

Upload the contents of the Template folder to your web host (via FTP, Netlify, Vercel, GitHub Pages or any static host). No server-side language is required.

Homepage choiceThe default homepage is index.html (Home 01 · Eclipse). To use another homepage, rename e.g. home-3.html to index.html, and update the “Home” links if needed.

04 — File structureWhere things live

Vespra/
├── Template/
│   ├── index.html            Home 01 · Eclipse
│   ├── home-2.html           Home 02 · Lens
│   ├── home-3.html           Home 03 · Sunrise
│   ├── home-4.html           Home 04 · Index
│   ├── home-5.html           Home 05 · Résumé / CV
│   ├── home-6.html           Home 06 · Virtual card (vCard)
│   ├── home-7.html           Home 07 · Slides (WebGL)
│   ├── home-8.html           Home 08 · Liquid (WebGL)
│   ├── home-9.html           Home 09 · Particles (WebGL)
│   ├── home-10.html          Home 10 · Archive (WebGL)
│   ├── landing.html          Demo showcase landing page
│   ├── about.html            Studio / about us
│   ├── about-me.html         Personal profile
│   ├── work.html             Portfolio grid + list
│   ├── project.html          Single case study
│   ├── services.html         Services, process, pricing, FAQ
│   ├── blog.html             Journal listing
│   ├── post.html             Single article
│   ├── contact.html          Contact + studios
│   ├── 404.html              Error page
│   ├── coming-soon.html      Countdown page
│   └── assets/
│       ├── css/vespra.css     All styles (tokens at the top)
│       ├── js/art.js         Generative SVG art library
│       ├── js/vespra.js       Interactions & animations
│       ├── js/vespra-gl.js    Hand-written WebGL 1 effects
│       └── img/              favicon.svg, og-image.svg, photo/ (37 images), demos/
├── Documentation/index.html
├── README.txt
└── CHANGELOG.txt

05 — PagesTwenty-one pages

FileHighlights
index.htmlHalftone eclipse hero, giant wordmark, rotating badge, double marquee tapes, manifesto with inline pills, staggered work grid, filterable index with hover previews, capabilities, count-up stats.
home-2.htmlInverting cursor lens hero, showreel pill, draggable film strip, moon-phase process, testimonial slider, lab bento grid with a live clock, journal rows, drag-to-fill wordmark footer.
home-3.htmlSunrise dial hero with glass widgets, accordion services, before/after case study, logo wall, team with fun facts, pricing plans, sun footer with project form.
home-4.htmlTypographic project index with swapping previews, studio story, interactive year heatmap, awards + studio radio player, polaroid wall, rising sun footer.
home-5.htmlPersonal Résumé / CV portfolio with rotating roles, experience accordion, animated skill rings, sticky stacking case studies, and testimonials.
home-6.htmlInteractive 3D flip Virtual Business Card (vCard) with tabbed About / Résumé / Work / Contact panels, lightbox portfolio, and one-click .vcf contact download.
home-7.htmlFull-screen WebGL liquid-wipe slider with custom shader distortion transitions, keyboard/wheel navigation, and automatic CSS fallback.
home-8.htmlCursor-reactive WebGL light shader hero paired with velocity-distorted hover showcase images and editorial case blocks.
home-9.htmlReal-time 18,000-particle WebGL sculpture that morphs smoothly between geometric states as you scroll.
home-10.htmlInfinite draggable WebGL archive gallery with optical lens distortion, momentum physics, and project detail overlays.
landing.htmlInteractive demo showcase hub featuring live scrolling full-page previews of all 10 homepages, inner pages, and live interaction playground.
about.htmlManifesto, stats, method, team of nine with hover secrets, awards, clients, testimonials, CTA band.
about-me.htmlPersonal hero with portrait, “right now” cards, experience timeline, animated skill bars, selected work strip, talks & press.
work.htmlCategory filters with live counter, grid/list view toggle, archive rows with floating preview.
project.htmlCase study meta, cover, challenge/approach, gallery, color palette, before/after, metrics, quote, credits, next-project link.
services.htmlService accordion, process phases, pricing plans, FAQ accordion.
blog.htmlFeatured post, category filters, search field, post grid, pagination, newsletter.
post.htmlReading progress bar, sticky table of contents with active state, rich typography (quotes, lists, figures, code, callouts), share, author box, related posts, comments + form.
contact.htmlValidated enquiry form with chips, contact details, studio cards with live local time, FAQ.
404.htmlInteractive eclipse “0” that follows the cursor.
coming-soon.htmlLive countdown and notify form.

06 — ColorsRe-theme from one place

All colors are CSS custom properties defined at the very top of assets/css/vespra.css. Change them once and the entire template follows.

--ink
#0c0b09
--ink-2
#15130f
--paper
#efe8da
--mute
#8b8578
--sun
#ff4a1c
--lime
#d7ff3a
:root {
  --ink: #0c0b09;    /* background */
  --paper: #efe8da;  /* text & light surfaces */
  --sun: #ff4a1c;    /* primary accent */
  --lime: #d7ff3a;   /* secondary accent */
}
Generative art colorsIllustrations read their palette from var C = {…} near the top of assets/js/art.js. Update those values too if you change the accent colors. Many artworks also accept data-bg, data-fg and data-accent per element.

07 — TypographyThree voices

RoleFontVariable
Display & UIInter (optical size + weight axes)--f-grot
Expressive italicLora Italic--f-serif
Labels & metadataJetBrains Mono--f-mono

Fonts load from Google Fonts in the <head> of every page. To swap a typeface, replace the Google Fonts URL and update the matching variable:

:root { --f-serif: "Instrument Serif", Georgia, serif; }

The type scale is fluid. Sizes such as --fs-mega, --fs-d1 or --fs-h2 use clamp(), so headlines scale smoothly from 320px phones to 2560px screens. Use the helper classes .it (serif italic), .mono (uppercase label) and .display (tight heavy headline) anywhere.

Self-hosting fontsFor GDPR-strict projects, download the fonts (all SIL Open Font License) and load them with @font-face from assets/fonts/. Then remove the Google Fonts <link> tags.

08 — Spacing & layoutGutters, sections, breakpoints

10 — Images & generative artYour work, your pixels

Every illustration is an empty <svg data-art="name"> that art.js draws at load time. To use your own images, replace the SVG with an <img> — the containers already crop with object-fit-style behaviour:

<!-- before -->
<div class="art"><svg data-art="observatory"></svg></div>

<!-- after -->
<div class="art"><img src="assets/img/my-project.jpg" alt="Project cover" style="width:100%;height:100%;object-fit:cover"></div>

Available artworks

data-artDescriptionOptions
eclipseHalftone eclipse (hero)—
observatoryRipple horizon with eclipsedata-text
recordSpinning vinyl labeldata-text, data-bg
specimenType specimendata-text
topoTopographic map + chartdata-seed
poster, paperMoon, secondSun, lowtide, northbound, fieldPoster-style project coversdata-text, data-bg
eyesGrid of eyes that follow the cursor—
phaseMoon phase icondata-phase (0, .3, .5, 1), data-active
dither, planet, wave, clockLab experiments (clock is live)data-seed
rays, reel, timeline, dusk, lostHero & section backgroundsdata-seed
before, afterBefore/after website mockups—
portraitAbstract team portraitsdata-kind 0–5, data-bg, data-fg, data-accent
vinylTurntable for the player—
moodboard, typecrit, launch, trip, plantPolaroid photos—
bands, orbit, letter, mesh, grid, rings, conic, orbJournal covers & thumbnailsdata-bg, data-fg, data-text, data-serif
skylineCity cardsdata-kind: london · lisbon · remote
thumbHomepage thumbnails in the menudata-kind 1–4

Add your own artwork by extending the library: VespraArt.library.myArt = { vb: [800, 600], draw: function (svg, opts) { … } }.

11 — FormsMake them send

Forms with data-form include client-side validation (required fields and email format), animated labels, error messages and an animated success state. By default (action="#") they simulate a successful submit, so you can preview the design.

Formspree (recommended, free tier available)

  1. Create a form at formspree.io and copy your endpoint.
  2. Set the form action: <form data-form action="https://formspree.io/f/yourid" method="post">
  3. Done — vespra.js submits with fetch and shows the success message without leaving the page.

Netlify Forms

Add name="contact" data-netlify="true" to the <form> and set action="/".

Newsletter forms

Forms with data-newsletter validate the email and show an inline confirmation. Connect them to Mailchimp, Buttondown or ConvertKit by replacing the form with your provider’s embed and keeping the class names for styling.

12 — Data attributesBehaviour without writing JS

Add these attributes to any element. Modules only run when their attributes exist on the page.

AttributeWhat it does
data-revealFades/slides in on scroll. Values: (empty) up, fade, scale, left, clip (wipe reveal of the child). Delay with style="--d:.2s".
data-splitSplits a headline into words that slide up one by one.
data-count="1284"Counts up when visible. Extras: data-decimals, data-pad.
data-clock="Europe/Lisbon"Live clock. data-format: hm, hms, h12.
data-speed="0.15"Parallax relative to its parent.
data-marqueeInfinite marquee; wrap content in .marquee__track. Speed via style="--speed:30s". Add .marquee--rev to reverse.
data-magnetic=".3"Element follows the cursor magnetically.
data-cursor="View ↗"Shows a label in the cursor while hovering. data-cursor-color="sun" for orange.
data-peek="poster"Floating artwork preview that follows the cursor over a row.
data-drag-scrollMouse-drag horizontal scrolling. Pair with data-strip-prev, data-strip-next, data-strip-count and .strip__prog.
data-baBefore/after comparison slider (pointer + arrow keys).
data-lensSection in which .lens follows the cursor.
data-filter-group="#target"Filter buttons (data-filter="brand", * for all) for items with data-cat="brand web". Optional data-filter-count="#id".
data-view-toggle="#target"Grid/list switch using buttons with data-view="grid|list".
data-sliderFading testimonial slider. data-autoplay="7000" (0 disables).
data-playerStudio radio player UI (play/pause, tracks, spinning vinyl).
data-heatmapInteractive year heatmap. data-heat-year="2026".
data-countdown="2027-01-15T09:00:00"Live countdown with data-d, data-h, data-m, data-s children.
data-tilt3D tilt on hover.
data-copyCopies the page URL (or the attribute value) to the clipboard.
data-yearPrints the current year.
data-no-transitionOn a link: skip the page transition.

13 — ComponentsCopy, paste, ship

All components are documented in the CSS table of contents. Some of the most reusable:

Button

<a class="btn btn--solid" href="contact.html" data-magnetic>Start a project <i class="btn__icon">→</i></a>
<!-- variants: btn (outline), btn--solid, btn--sun, btn--lime, btn--ink -->

Section head

<div class="shead wrap">
  <h2 data-split>Selected <span class="it c-sun">work</span></h2>
  <div class="shead__meta mono"><span>(02) — 24 projects</span></div>
</div>

Accordion

<div class="acc" data-single>
  <div class="acc__item is-open">
    <button class="acc__head" type="button"><span class="mono">01</span><h3>Title</h3><span class="mono">Tags</span><span class="acc__pm"></span></button>
    <div class="acc__body"><div><div class="acc__inner"> … </div></div></div>
  </div>
</div>
<!-- add class "acc--faq" for the compact FAQ style -->

Work card

<a class="wcard" href="project.html" data-cursor="View ↗" data-reveal>
  <div class="art" data-reveal="clip"><svg data-art="observatory"></svg></div>
  <div class="wcard__tags mono"><span class="tag">Brand</span></div>
  <div class="wcard__cap"><h3>Project <span class="it">name</span></h3><span class="mono">Client · 2026</span></div>
</a>

Other components: .irow (index rows), .note (journal rows), .pcard (post cards), .plan (pricing), .person (team), .aw (awards), .logos (logo wall), .phases (process), .quote (testimonial), .bento, .metrics, .stats, .caps, .timeline, .skills, .cta-band, .newsletter.

14 — Motion & transitionsTurn it up or down

15 — JavaScript APIUnder the hood

vespra.js is written in plain ES5-compatible JavaScript inside a single closure. Each feature is a small function listed in boot():

[preloader, transitions, header, menu, cursor, magnetic, split, marquee, reveal,
 counters, clocks, parallax, lens, hoverPeek, projectList, dragScroll, beforeAfter,
 outlineDrag, accordion, slider, player, filters, viewToggle, heatmap, eyes, forms,
 countdown, readingProgress, toc, toTop, lost, tilt, copy, misc]

Delete a name to remove a feature. If you inject new HTML dynamically, call VespraArt.renderAll(container) to draw new artworks, and Vespra.boot() only on a fresh page.

Using a framework?Vespra works fine inside WordPress, Astro, Next.js or Webflow custom code: include vespra.css, art.js and vespra.js and keep the markup and class names.

16 — AccessibilityBeautiful and usable

17 — Performance & SEOFast by default

18 — Browser supportEverywhere that matters

Latest two versions of Chrome, Edge, Firefox, Safari (macOS & iOS) and Samsung Internet. Older browsers receive a graceful, fully readable fallback.

19 — CreditsStanding on shoulders

AssetLicenseSource
InterSIL Open Font License 1.1fonts.google.com/specimen/Inter
LoraSIL Open Font License 1.1fonts.google.com/specimen/Lora
JetBrains MonoSIL Open Font License 1.1fonts.google.com/specimen/JetBrains+Mono
IllustrationsIncluded — original generative SVGassets/js/art.js
IconsUnicode characters — no icon font—

All names, companies, people, projects, testimonials and awards shown in the demo are fictional and are used for illustration only.

20 — ChangelogVersion history

v1.0.0 — Initial release
  + 4 homepages: Eclipse, Lens, Sunrise, Index
  + 10 inner pages: Studio, About me, Work, Project, Services,
    Journal, Post, Contact, 404, Coming soon
  + Preloader, page transitions, custom cursor, magnetic buttons
  + 30+ generative SVG artworks
  + Full documentation

21 — SupportWe’re here

If something isn’t clear, please contact us through the item’s support tab on the marketplace. Include your purchase code, the page and browser you’re using, and a short description or screenshot. We usually reply within one business day.

Support covers bugs and questions about the template’s features. Custom development is not included, but we’re happy to point you in the right direction.

Thank you — now go make some shadows. ✺