The idea came from reading, on Codrops, the making-of of bleibtgleich'26, a portfolio that uses GSAP, Lenis, SVG filters and masks with clip-path to build a minimalist site that still feels alive.
We didn't want to copy that site, but to bring its technique to an agency website that has to sell, rank and load fast on a phone. That imposes conditions an experimental portfolio doesn't need: the text has to remain text for Google, what you see on arrival can't flicker, and none of this can bloat every page.
01 The starting point: tidy up before animating.
Animations amplify what is already there. If a title breaks badly or a section is too long, animating it makes it more obvious. So before writing a line of GSAP, we audited the site's 12 pages on desktop and mobile:
- The H1 had four different sizes depending on the page: 48, 64, 68 and 82 px.
- The video production page was 23,112 px on mobile: a catalog of 26 stacked cards.
- The main JavaScript weighed 61.8 KB compressed, almost all of it from loading the entire Preline component library just to use the mobile menu.
The fix was a small design system: three fluid heading sizes with clamp() y text-wrap: balance, and a horizontal “rail” with scroll-snap that turns long card grids into a swipeable row on mobile only.
:root {
--molt-text-h1: clamp(2.125rem, 1.4rem + 3.2vw, 4rem); /* 34 → 64px */
--molt-text-h2: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); /* 28 → 48px */
}
Result: the audiovisual page went from 23,112 to 11,654 px on mobile, the WordPress maintenance page from 15,543 to 10,389 px and the home from 9,804 to 7,320 px. By importing only the Preline plugin that is used, the main JavaScript dropped 79%. With that clean base, it was finally time to animate.
02 Smooth scroll with Lenis.
Lenis interpolates wheel and trackpad movement so scrolling has inertia. It weighs about 3 KB compressed and replaced the smooth-scroll library that shipped with the original template.
const lenis = new Lenis({
autoRaf: true,
lerp: 0.1,
allowNestedScroll: true, // menú móvil, carriles y lightbox con scroll propio
})
Three important decisions:
- On touch, native scroll. On mobile nobody expects any inertia other than the system's.
- The lightbox pauses Lenis while it is open and resumes it when it closes.
- Section links are handled by hand. Lenis's anchors option doesn't cancel the browser's native jump and the page flickered: it first jumped and then came back animating.
<base href="/">, so any link href="#seccion" led to the home page instead of scrolling down the page. Five buttons were broken, including the two in the audiovisual hero. It came to light when testing smooth scroll, and now all internal links carry the full path. 03 Text that appears with SVG filters and GSAP.
It is the most striking effect. Instead of a fade, section titles appear as blobs that gradually merge to form the letters. The technique combines two SVG filter primitives:
- feGaussianBlur blurs the text.
- feColorMatrix applies a threshold to the alpha channel: it multiplies opacity by 20 and subtracts 8. What was half transparent becomes opaque or invisible, and the blur turns into sharp-edged blobs.
<filter id="molt-blob-1">
<feGaussianBlur in="SourceGraphic" stdDeviation="17" />
<feColorMatrix type="matrix"
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -8" />
</filter>
With GSAP ScrollTrigger, when the title enters the screen the stdDeviation is animated from 35% of the font size down to 0. We calibrated that starting point by testing different levels on a real 48 px title: at 16 px the text is invisible, at 11 loose blobs appear, at 7 they merge, at 4 the letters look like jelly and at 0 they are sharp.
Each line of the title has its own filter, with a slight offset, so the lines don't merge into each other. To know where the browser breaks each line, the script wraps every word in a span, measures its vertical position and groups them.
This title forms from blobs.
04 Images revealed with clip-path.
For images, a crop with clip-path: polygon() whose bottom edge is a wave that travels from top to bottom. The wave starts flat, ripples midway and ends straight: its amplitude follows sin(π · progress).
The first version used 12 points with a random phase each and came out zigzagged. The final one sums two sines with random phase and samples them at 36 points, with weights interpolated by cosine, so the curve is organic but smooth.
If the image covers its whole container, two crops are animated 0.12 s apart and a green brand strip shows between them. If it doesn't, only the image is cropped.
05 Page transitions with View Transitions.
bleibtgleich'26 uses Barba.js to turn the site into a kind of single-page application. On a PHP site with a menu, forms, translations and components that initialize on load, that forces re-initializing everything on every navigation and is a source of bugs.
The modern alternative is the View Transitions API between documents: the browser fades between two normal pages, with not a line of JavaScript.
@view-transition { navigation: auto; }
.nav-sticky { view-transition-name: molt-nav; } /* el menú no se mueve */
::view-transition-old(root) { animation: molt-page-out .22s both; }
::view-transition-new(root) { animation: molt-page-in .38s both; }
Works in recent Chrome, Edge and Safari. In other browsers there is simply no transition and navigation is the usual one: textbook progressive enhancement.
06 A scrollbar of its own.
The last detail: a thin brand-green bar that follows Lenis's position, intensifies as you scroll and can be dragged. It only appears on desktop with a mouse or trackpad; on mobile the system one stays.
Dragging translates the pointer's movement into the page's total travel. We checked by measuring: moving the thumb half of its track takes you to exactly 50% of the page. (The lime bar at the top of this page follows your reading.)
07 SEO, accessibility and performance: the rules we don't negotiate.
Every animation on this site follows these five rules. They are what turn a flashy effect into something you can put into production on a website that has to win clients:
Text never leaves the HTML
The effect is applied to the real text and the original markup is restored when it finishes. Google, translators and screen readers see the same as before.
What you see on load isn't animated
Only elements below the fold are prepared. That avoids flicker and the main content (LCP) paints just as fast.
Each library, only where needed
GSAP and ScrollTrigger live in separate files that download only on pages with something to animate.
Respect for prefers-reduced-motion
With reduced motion enabled there is no smooth scroll, no effects and no transitions. The site works the same.
If something fails, everything goes back in place
If GSAP fails to load (network down, blocker), titles and images are restored instantly. They are never left hidden.
08 Frequently asked questions about web animations.
Do web animations affect SEO?
Not if the text stays in the HTML. On molt.agency the animated titles never leave the DOM: the effect is applied with an SVG filter on the real text and, when it finishes, the original markup is restored. Google reads exactly the same content as before.
Is GSAP free for commercial projects?
Yes. Since 2025 GSAP, including all its plugins such as ScrollTrigger, is also free for commercial use.
Does Lenis work on mobile?
Lenis smooths the mouse wheel and trackpad. On touch screens we leave the system's native scroll, which is what users expect and what performs best.
What about users who prefer less motion?
If the operating system has reduce motion enabled (prefers-reduced-motion), Lenis isn't loaded, titles and images aren't animated and there are no page transitions. The site looks and works the same, without animation.
How heavy are these animations?
Lenis adds about 3 KB compressed to the main JavaScript. GSAP and ScrollTrigger (about 46 KB compressed) download separately and only on pages that have something to animate.
All of this is running on this very site: the scroll you are using, the titles on the pages for web design and development o graphic design, and the transition when changing page.
“The conclusion we take away: a website with motion doesn't have to be slower or rank worse. The difference comes from the order of work —first system and content, then animation— and having the rules clear before you start.”