Premium marketing sites are expected to move: headlines that rise into place, images that reveal, sections that respond to the scroll. The usual price is a heavy JavaScript bundle, a late largest contentful paint and layout that shifts as animations initialise. It does not have to be that way.
On Solenne, a dermatology website we built with editorial motion throughout, Lighthouse measured mobile performance between 91 and 97 across the pages we tested, accessibility at 100, and a desktop largest contentful paint of 0.7 seconds. These are the practices that made that possible.
Set the budget before the design
Agree the numbers at the start: a target for largest contentful paint, zero layout shift, and a ceiling for JavaScript shipped to the first page. A budget agreed after the design is finished becomes a negotiation; one agreed before it becomes a design constraint, and good designers work well within constraints.
Render on the server, animate in CSS
- Server-render content and never hide it before the client hydrates — a page that waits for JavaScript to reveal its headline has already lost its paint.
- Start above-the-fold entrances painted, so the animation decorates a visible page instead of delaying it.
- Prefer CSS transitions, keyframes and the View Transitions API to animation libraries; Solenne ships no UI or animation libraries at all.
- Animate only transform and opacity, and reveal on scroll with a single shared IntersectionObserver rather than one per element.
Treat images as the real budget
On most marketing sites, images outweigh code. Serve them in modern formats at the size they are displayed, give every image explicit dimensions so nothing shifts, prioritise only the hero image, and lazy-load the rest.
Respect reduced motion
Every animation should turn off under the reduced-motion preference — not just slow down. This is an accessibility requirement, and it is also a useful test: if the page still makes sense with motion off, the motion is decoration rather than structure, which is exactly what it should be.
Motion should make a fast page feel considered — never make a slow page feel busy.
Measure continuously
Run Lighthouse on production builds of the key templates, not just the homepage, and check real-user data once the site is live. Budgets drift one feature at a time; catching the drift early is far cheaper than a performance project later.