Vístalo
The website of Vístalo, the creative agency I co-founded: websites, photos and Google presence for small businesses.
- My role
- Design and development · Eloi Cotonat: testing, photo and video
- Status
- Website · Live
- Built with
- Astro · Hand-written CSS and JavaScript · View Transitions
The problem
Vístalo is a two-person agency and its website had to prove what it sells. The whole page comes from the name, which in Spanish means “dress it up”: the packages are clothing tags on a rail, a tape measure is the marquee and the contact form is a letter.
It is built with Astro and no animation libraries: every effect respects the reduced-motion preference and works with the keyboard.
Decisions
-
Everything comes from the name
“Vístelo”: dress it in its best suit. The packs are clothing tags hanging from a rail and the tape measure is the marquee.
concept: tailoring
-
No animation libraries
Every effect is hand-written CSS and JavaScript, and respects the reduced-motion preference.
0 libraries
-
Contact is a letter
With a pen signature and a live receipt, instead of a standard form.
form → letter
Code
The piece next to this is real: touch it. This is the code that drives it on this page.
src/scripts/project-demos.ts
function fit(stage: HTMLElement) {
const frame = stage.querySelector<HTMLIFrameElement>('iframe');
if (!frame || !stage.clientWidth) return;
const width = stage.clientWidth < 520 ? 390 : 1280;
const k = stage.clientWidth / width;
frame.style.width = `${width}px`;
frame.style.height = `${Math.ceil(stage.clientHeight / k)}px`;
frame.style.transform = `scale(${k.toFixed(4)})`;
}
function live(root: HTMLElement, target: Element) {
const toggle = target.closest<HTMLButtonElement>('[data-demo-live]');
const stage = root.querySelector<HTMLElement>('[data-demo-stage]');
if (!toggle || !stage) return;
const open = !root.classList.contains('is-live');
root.classList.toggle('is-live', open);
toggle.setAttribute('aria-pressed', String(open));
toggle.querySelector('span')!.textContent = (open ? toggle.dataset.close : toggle.dataset.open) ?? '';
if (!open) {
stage.querySelector('iframe')?.remove();
return;
}
const frame = document.createElement('iframe');
frame.src = root.dataset.demoUrl ?? '';
frame.title = root.dataset.demoTitle ?? '';
frame.loading = 'eager';
frame.referrerPolicy = 'no-referrer';
frame.setAttribute('sandbox', 'allow-scripts allow-same-origin');
stage.append(frame);
fit(stage);
} Try it: open the site here
Tests
What was reviewed before publishing it.
- Phone · 390 px
- Tablet · 768 px
- Desktop · 1280 px
- Works with the keyboard
- Respects reduced motion
Result
What it does
- A services explorer that stays pinned while you scroll
- A project gallery that moves sideways as you scroll
- A contact page shaped like a letter, with a pen signature and a live receipt
- Native page transitions
It all comes from one idea.
What I enjoyed most: starting from the name and making it with Eloi, each of us on our own part.







