---
title: "Pearls That Unfold Into Pictures: WebGL and Lenis Smooth Scroll in the Schoeffel Journal"
description: "How every picture in the Schoeffel Journal is born as a pearl and unfolds, why we chose Lenis for smooth scroll, and when smooth scrolling hurts a site."
author: ["Peretz Group", "Yevhen Borovoi"]
date: 2026-12-06
updated: 2026-12-06
section: "Elements"
language: en
canonical: https://peretz.agency/blog/schoeffel-journal-webgl-lenis
publisher: "Peretz Agency"
---

# Pearls That Unfold Into Pictures: WebGL and Lenis Smooth Scroll in the Schoeffel Journal

> How every picture in the Schoeffel Journal is born as a pearl and unfolds, why we chose Lenis for smooth scroll, and when smooth scrolling hurts a site.

![The Schoeffel Journal home page on deep navy: the lead picture of a pearl strand is halfway out of its pearl, its edges still curved, while the smaller pictures beside it are still small pearls](https://peretz.agency/photos/1/blog/schoeffel-journal-webgl-lenis.jpg)

## A new section for the House, one WebGL layer, a spring that reads the speed of your hand, and an honest look at smooth scrolling

Schoeffel has a new section: [the Journal](https://schoeffelpearl.com/journal/), the House's stories about pearls, their quality, their history and the jewellery made from them. The Journal has its own area in the admin the Schoeffel team already uses for the investors section, so the House publishes its stories without us. **The detail people notice first is the motion: every picture in the Journal is born as a small pearl and unfolds into its frame.**

This article explains how that effect is built, why it runs on a single WebGL layer, and why the scrolling under it is driven by Lenis, a small open-source library for smooth scroll. We also say where we would never put smooth scrolling, because a client should hear that before the demo, not after the launch.

### A new section for the House

The Journal is the third step of Schoeffel online after [the first landing page](https://peretz.agency/blog/schoeffel-digital-foundation-landing-page-live) and [the investors section with its own admin](https://peretz.agency/blog/schoeffel-investors-nodejs-admin). It has sections (Pearls, History, Jewellery, Design, The House, Press), a graph of topics such as Akoya pearl, nacre, lustre or the Bahrain Pearling Trail, and stories that answer what people actually search for. The first four were chosen from search demand and each one lists its sources: GIA, CIBJO, the auction houses, laboratory studies.

The look follows the great jewellery houses rather than a news feed. Everything is centred, the serif is large and thin, the first story and every cover run across the screen, and smaller stories sit in an editorial zigzag of large and small portrait pictures. Every story has its own contents and a block of questions and answers, and the admin refuses to publish a story without a cover, its alt text, at least two headings and three questions.

![A Schoeffel Journal story on lustre: the contents column In this story on the left with nine numbered parts, the text of the story in the middle](https://peretz.agency/photos/1/blog/schoeffel-journal-webgl-lenis/schoeffel-journal-contents.jpg)
*A story page on a laptop: the contents stays in view on the left, the part being read lights up, and links glide to their part.*

### Heavy was the word

The first version worked. Pictures loaded fast, nothing stuttered, and the frame rate was fine. The verdict of our founder was still short: heavy, and the layout old-fashioned. **The heaviness was not in the frames per second; it was in pictures that simply appeared and then sat still while the page moved.** A printed magazine is still too, but paper never pretends to be alive.

The brief that followed was concrete. The pictures should unfold as if from a pearl. They should bend at the edges with the speed of the scroll, as the cards do in [our own portfolio](https://peretz.agency/portfolio). A fast flick should feel fast, a slow scroll calm, and everything should settle with a sense of physics. And none of it could cost the reader anything: no text inside images, no slower pages, nothing a search engine or an assistive device could miss.

> The page was fast. It only looked as if nothing was alive.

### How a picture is born

Each picture is drawn on a fine grid of points: 40 by 40 cells on a computer, 28 by 28 on a phone. The same grid has two shapes. In one it is the flat picture. In the other it is rolled into a small sphere with the middle of the picture on its front. The shader moves every point between the two, so the pearl and the picture are literally the same surface.

The opening is not uniform. **The middle of the picture leaves the pearl first and the corners last**, because each point starts according to its distance from the centre. That is why the frame passes through a soft cushion shape on its way to a rectangle, the way a pearl would look if it could open. The whole move takes 2.4 seconds on a smooth curve that lingers at both ends: the pearl holds for a moment, the frame opens, the last corners settle slowly.

*Recorded on the live site: the lead picture opens first, the smaller ones follow in reading order.*

Pictures never open all at once. Those that come into view queue up in reading order, top to bottom and left to right, and each one starts 0.42 seconds after the one before. On a list page this reads like a row of pearls being turned over one by one.

The pearl is not a stock white bead. Before a picture opens, the script reads its colours from a 24 by 24 pixel copy, gives coloured pixels more weight than grey ones, then lifts the result to the lightness of nacre. A blue nacre photograph is born as a pale blue pearl, a strand on teal fabric as a cool green one. A slow rainbow overtone moves around the rim, stronger at the edge than in the middle, the way real nacre plays with light.

![Six stages of the lead picture in the Schoeffel Journal: a pale pearl, the pearl with the picture showing inside, a cushion shape, a wider cushion, a frame with slightly curved edges and the finished flat picture](https://peretz.agency/photos/1/blog/schoeffel-journal-webgl-lenis/schoeffel-journal-pearl-steps.jpg)
*Six moments of the same picture: from the pearl to the flat frame in 2.4 seconds.*

### A spring, not a timer

The bend is driven by the speed of the page, not by a timeline. On every frame the script measures how far the page has moved, smooths that number, and turns it into a target bend between -1 and 1. **The bend does not jump to that target: it is pulled towards it by a spring**, overshoots a little and settles. A fast flick bends the sheets more, a stop lets them breathe back to flat.

The bend itself has two parts. The middle of each picture lags behind the scroll, as if the sheet had a little weight, while its side edges fold back away from the reader. On phones the effect is softer, at 70% of the desktop strength, because a thumb moves a page far faster than a wheel. Hover on a computer adds one more touch: the picture rises towards the reader in a low, wide dome, slowly, in about 0.9 seconds, and returns in 1.2.

![The Schoeffel Journal home during a fast scroll: the lead picture is bent, its top edge curved and its sides folded back, the small pictures of the latest stories are slightly curved too](https://peretz.agency/photos/1/blog/schoeffel-journal-webgl-lenis/schoeffel-journal-bend.jpg)
*A frame caught during a fast scroll: the middle lags, the side edges fold back. A moment later the sheets are flat again.*

A spring is the reason the motion feels physical. A timer would play the same curve however you scroll. A spring answers your hand: a gentle scroll gets a gentle response, a hard flick gets a stronger one, and the settling is always continuous.

### What Lenis does

All of this needs a scroll that moves smoothly between wheel steps. A mouse wheel moves a page in jumps of a hundred pixels or so, and a picture that bends with speed would twitch on every notch. Lenis, made by the studio darkroom.engineering and published under the MIT licence, turns those jumps into a continuous glide.

What makes it our choice is how it does that. **Lenis keeps the browser's own scroll.** It eases the native scroll position instead of moving the page with a CSS transform, so everything built on native scroll keeps working:

- position: sticky, which holds the contents column of every Journal story in view;
- links to a part of the page, and the Back button;
- find in page, the keyboard, the scrollbar and assistive technology;
- other scripts that read the scroll position, including our WebGL layer.

Older smooth scroll libraries moved the whole page inside a container with a transform, and each of those features had to be faked or was lost. The best known of them, Locomotive Scroll, rebuilt its version 5 on top of Lenis.

The second reason is size. The minified file of version 1.3.23 that the Journal uses weighs 17.7 KB, about 5 KB compressed, with no dependencies. The third reason is that Lenis was built to drive scroll-linked scenes, so the bend of the pictures and the smooth scroll share one rhythm without fighting each other.

> Smooth scroll is worth it only if the browser still scrolls.

### Our settings and why

We left the main value at its default and chose everything around it by hand.

- **lerp 0.1.** On each frame the page covers a tenth of the remaining distance. It follows the hand closely, so a fast flick travels fast, and still lands softly. On the peretz.agency portfolio we use 0.085, a touch slower.
- **Touch stays native.** Lenis smooths only the wheel and the trackpad. A finger on a phone gets the phone's own scrolling, with its own inertia, which no library imitates better.
- **Reduced motion means no Lenis.** If the visitor has asked the system for less motion, Lenis is not started, links jump instead of gliding, and the WebGL layer does not run at all. Recent versions of Lenis can respect that setting on their own; we decide it ourselves, before anything starts.
- **The phone contents list scrolls on its own.** The list that opens from the slim bar under the header carries the data-lenis-prevent attribute, so it scrolls natively inside itself.

Links in the contents glide to their part with Lenis's scrollTo. The duration depends on the distance, from 1.1 to 2.2 seconds, on a curve that starts quickly and arrives softly, and the target accounts for the header, which slides away on the way down and returns on the way up. That is the kind of detail visitors never name and always feel.

### One canvas over a real page

The pictures are not replaced by a canvas. **Every picture stays in the HTML with its alt text**, keeps the layout of the page and is read by search engines and AI assistants exactly as before. One fixed WebGL canvas lies over the page, ignores clicks, is hidden from screen readers and draws each picture exactly where its HTML box is. Only while the layer is running are the HTML pictures made invisible.

The rest is discipline. Positions are measured when the layout changes, never during the scroll. Textures load about a screen and a half ahead and are sized to the box on the screen, never larger than needed. If the browser has no WebGL2, if the graphics are drawn in software, or if the visitor prefers less motion, the script steps aside and the page shows its ordinary pictures. Why software graphics matter so much is told in [our three.js experiment](https://peretz.agency/blog/threejs-3d-website-seo-live-experiment): PageSpeed itself tests without a graphics chip. On a laptop with a real graphics chip we measured 120 frames per second with no frame over 9.4 ms.

### Where smooth scroll does not belong

Smooth scrolling is a tool for reading and looking. In other places it gets in the way, and we say so to clients before the first demo.

**Work screens.** An admin panel, a CRM, a long table or a form is used by people who want to jump to a row, not to glide. The admin we built for Schoeffel's team scrolls natively for that reason.

**Content that is not yours.** Wheel events do not cross an iframe, so smooth scrolling stops over embedded maps, videos and booking widgets. Native CSS scroll-snap is not supported; Lenis offers its own snap plugin instead.

**Weak devices and browsers with limits.** The Lenis documentation itself notes that Safari caps it at 60 frames per second and that low power mode drops it to 30, so the effect there is calmer than on Chrome.

**Taking control from the reader.** Smooth scroll must never slow the page down for effect or move it in fixed steps. When a home page that steps block by block with the wheel came up for a Schoeffel draft, our founder turned it down at once. The reader holds the page; the effect only follows.

> Smooth scroll follows the hand. The moment it leads, it is wrong.

### What a brand gets from motion

For a House like Schoeffel, motion is part of how the brand speaks. Pearls come out of shells; pictures coming out of pearls tell that story without a single extra word, and the speed of the page reminds the reader that the site is alive. Our notes on [what luxury jewellery websites get right](https://peretz.agency/blog/luxury-jewellery-website-design) come to the same conclusion: the best of them are calm, precise and slow in the right places.

The same approach works far beyond jewellery: architecture, interiors, fashion, hospitality, any brand whose product is looked at before it is bought. **The rule we keep is simple: the effect is a layer on top of a complete, fast, accessible page**, never a replacement for it. That is how we approach [website design](https://peretz.agency/services/website-design) for brands of this kind, and it is why the Journal reads just as well with every effect switched off.

### Frequently asked questions

#### What is Lenis and what is it used for?

Lenis is a small open-source JavaScript library for smooth scrolling, made by darkroom.engineering and released under the MIT licence. It turns the jumps of a mouse wheel or trackpad into a continuous glide and is often used to drive scroll-linked animation, parallax and WebGL scenes. The minified file is about 5 KB compressed and has no dependencies.

#### Does Lenis break position: sticky, anchor links or accessibility?

No, because it keeps the browser's native scroll and only eases the scroll position. Sticky elements, links to a part of the page, find in page, the keyboard and assistive technology keep working. Older libraries that moved the page with a CSS transform broke these features, which is the main reason we choose Lenis.

#### Does Lenis work on phones?

By default Lenis smooths only the wheel and trackpad and leaves touch scrolling to the phone, which is what we recommend. A setting called syncTouch can imitate touch inertia for scroll-synced effects, but the documentation warns it can be unstable on older iOS, and the phone's own scrolling feels better to most people.

#### Does a WebGL effect like this hurt SEO or page speed?

Not when it is a layer over a complete page. In the Schoeffel Journal every picture stays in the HTML with its alt text, the text is never inside a canvas, and the layer starts only where a real graphics chip will draw it. Devices with software graphics, and visitors who ask for less motion, get the plain page.

#### When should a website not use smooth scrolling?

In admin panels, CRMs, long tables, forms and any screen where people jump to a place rather than read through it. Also where the page is mostly embedded content, because wheel events do not cross iframes. Smooth scrolling should never slow a page down for effect or move it in fixed steps, and it should switch off for visitors who prefer reduced motion.

**Sources**

- [Lenis, documentation and source code, darkroom.engineering](https://github.com/darkroomengineering/lenis)
- [Locomotive Scroll v5, built on Lenis](https://github.com/locomotivemtl/locomotive-scroll)
- [prefers-reduced-motion, MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion)
- [WCAG 2.2, Success Criterion 2.3.3 Animation from Interactions, W3C](https://www.w3.org/WAI/WCAG22/Understanding/animation-from-interactions.html)

**Does your site load fast and still feel static? Let's look at where motion would help it, and where it would not.**

[Book a Strategic Session](https://peretz.agency/services/strategic-session)

[Website design](https://peretz.agency/services/website-design)

---

Source: Peretz Agency, https://peretz.agency/blog/schoeffel-journal-webgl-lenis
