How I Built a Lenticular Art Marketplace From Scratch (And What Nearly Broke Me)
A lenticular art company needed a full marketplace platform. Artists would submit their work, an admin would review and publish it, and buyers would browse a shop where the artwork actually moved — the way lenticular art is supposed to work.
Simple enough brief. Except nothing about lenticular art is simple to render on the web.
This is the story of that project — what I built, what broke, what I fixed, and what I learned.
What Lenticular Art Actually Is
If you've never heard the term, lenticular art is the kind of image that changes or animates when you tilt it. Think of those old holographic stickers or the birthday cards that shift between two images as you move them. The physical version uses a ridged plastic lens over a printed image to create the illusion of movement.
Translating that to a browser is a different problem entirely. You're not dealing with a physical lens. You're dealing with sequences of images — sometimes 20 frames, sometimes 30, sometimes 42 or 63 — and you need to display the right frame based on how the user is interacting with the screen. Mouse movement, trackpad, gyroscope on mobile, drag on touch.
The client wanted buyers to see the artwork move when they browsed the shop. Not a GIF, not a video — a proper interactive experience that responded to the viewer in real time.
That's the challenge I walked into.
The Architecture
The platform had three distinct parts that all needed to talk to each other cleanly.
The artist submission flow. Artists fill out an application, upload their frame sequences (sometimes as individual images, sometimes as video), and submit for review. The system processes everything and stores it in Supabase.
The admin dashboard. The client reviews incoming submissions, can edit details and replace images, and publishes approved work to the shop with one click. Status flows from pending to published to archived.
The public shop and product pages. Where buyers browse. This is where the lenticular viewer lives — the part that needs to feel like the actual artwork, not a screenshot of it.
The backend is Supabase with two main tables: artist_applications for the submission data and application_files for the frame sequences. Every status change on the platform triggers a Supabase Edge Function that syncs everything to Notion — the client managed their review workflow there and needed both databases fully in sync without any manual data entry.
The Bandwidth Problem
The first version of the platform loaded each frame as a separate image file.
For a 20-frame sequence that's 20 network requests every time someone views a product. At 30 frames it's 30 requests. At 42 frames — which some of the sequences were — it's 42 requests just to display one piece of artwork.
In testing this was fine. In production with multiple products on a shop page, it was a disaster. Load times were bad. Supabase bandwidth was getting hammered. The client's costs were going to scale catastrophically as the catalogue grew.
I needed to rethink how the frames were stored and delivered.
The solution was sprite sheets. Instead of 40 individual image files, the system compresses all frames into a single image arranged in a grid — say 8 columns by 5 rows for a 40-frame sequence. One network request instead of 40. The lenticular viewer then calculates which section of the grid corresponds to the current frame and renders just that portion.
The bandwidth reduction was around 95%. One request versus forty. The client's infrastructure costs dropped immediately and the viewer actually became smoother because it wasn't waiting on sequential image loads.
The Grid Problem
The sprite sheet approach created a new problem: the grid layout had to be dynamic.
If every sequence was exactly 40 frames you could hardcode an 8x5 grid and move on. But sequences came in at different lengths — 30 frames, 42 frames, 63 frames. The viewer needed to figure out the correct grid layout automatically based on how many frames were in the sequence.
And there was an edge case that took me longer than I'd like to admit to handle correctly. What if the number of frames doesn't divide evenly into a neat grid? A 37-frame sequence in a 7x6 grid leaves 5 empty squares at the end. If the viewer doesn't know to stop at frame 37, it renders those empty black squares as part of the animation loop. The artwork glitches at the end of every cycle.
The fix was tracking the exact frame count at generation time and passing that into the viewer so it knew precisely where to stop regardless of what the grid looked like. Simple in retrospect. Not obvious until you've watched a client's artwork glitch in a loop and had to figure out why.
The Sprite Sheet Thumbnail Problem
Once sprite sheets were in production, a new bug surfaced in the shop view.
The main product thumbnail — the image buyers see on the shop grid before they click into a product — was pulling from the first file associated with each submission. Which, after the sprite sheet migration, was now the sprite sheet itself. An 8x5 grid of tiny frames instead of a clean hero image of the artwork.
It looked terrible. Every product in the shop was showing what looked like a broken mosaic.
The fix was adding a separate thumbnail field that always pulled from the original file_path of the first submitted frame rather than the processed sprite URL. Small change, big visual difference. The shop immediately looked like a professional gallery again.
The Notion Sync
The client ran their review workflow in Notion. They had two databases set up and ready: Artists & Designs and Designs & Frames. They wanted every submission that came through the platform to appear in Notion automatically — all fields, not just the basics.
The first version of the sync was only carrying over a subset of fields. Design name, artist name, status. But the client needed everything — country code, date of birth, mobile, payment method, payment details, agreement to terms, privacy policy acceptance.
The issue was that the Edge Function was mapping fields manually and I'd only mapped the obvious ones. The fix was a full field audit across both the Supabase schema and the Notion database structure, then rebuilding the sync to map every column correctly. After that, every time a submission was published, the full record — with all fields — landed in Notion automatically without anyone touching it.
The client's exact words when I told him it was done: "That's exactly what I needed."
What the Viewer Actually Does
The lenticular viewer is the part of this project I'm most proud of.
It takes a sprite sheet URL and a frame count, renders the artwork to a canvas element, and responds to four different input types: mouse movement across the image, trackpad scroll, touch drag on mobile, and gyroscope tilt on devices that support it. Each input maps to a frame position within the sequence.
The effect when you move your mouse across a product image on the shop — watching the artwork shift and animate the way lenticular art physically does — is genuinely impressive. The client sent me a message the first time he tested it live that I still have saved.
Getting there required handling a lot of edge cases: what happens when the canvas resizes, how to prevent frame flickering during rapid input, how to make the gyroscope feel natural rather than jittery, how to make the auto-rotate loop smooth when no user input is present.
None of it is rocket science individually. Together it took a lot of iteration to feel right.
What I Took From It
This project taught me three things I've carried into every build since.
Performance problems are architecture problems. The 40-requests-per-product issue wasn't a bug to patch, it was a structural decision that needed to be unmade. Fixing it required rethinking how data was stored, not just how it was fetched. Most real performance problems look like this.
Edge cases live at the intersection of your assumptions. I assumed frame counts would be clean numbers. They weren't. I assumed the first file in a submission would be a clean frame. After sprite sheet generation, it wasn't. Every assumption you don't test explicitly is a bug waiting to be discovered by a user.
Clients communicate in goals, not specifications. When the client said he wanted the viewer to "feel like the real thing," he wasn't telling me what to build. He was telling me what outcome to aim for. The implementation decisions — sprite sheets, canvas rendering, multi-input support — were mine. That's what doing the job properly actually means.
The platform is live and actively adding new artists. If you're working on a project that involves complex media rendering, interactive product experiences, or marketplace infrastructure, I'd be glad to talk.