back to projects

2026 Web Production

szanta

Commercial web app and portfolio for a landscape architecture firm.

before after avif / webp sveltekit

Why it exists

Image-heavy architecture portfolios frequently ship multi-megabyte assets and sluggish galleries that break down on mobile touch devices.

Architecture

Uses Vite `import.meta.glob` eager asset dictionaries for compile-time AVIF/WebP image transforms, CSS `clip-path` before/after comparison sliders with keyboard arrow support, a trigonometrically positioned testimonial wheel synchronized via `requestAnimationFrame`, and SvelteKit progressive form enhancement with honeypot spam mitigation.

Key highlights

  • Build-time AVIF/WebP image transformation pipeline with dynamic runtime matching.
  • Accessible before/after split comparison slider and mobile swipeable bottom-sheet drawer.
  • Zero-reload SvelteKit form submission with honeypot anti-spam protection.

Built with

Svelte 5 · SvelteKit · TypeScript · Tailwind CSS · Cloudflare Pages