Menu

Why Tailwind v4's translate Property Broke Our 22-Card Interactive Fan — And How We Cut Draw API Latency by 60%
📰

Why Tailwind v4's translate Property Broke Our 22-Card Interactive Fan — And How We Cut Draw API Latency by 60%

DEV Community: tailwindcss·Felix M·2 days ago
#nDt6eQ8q
Long article (956 words) — no AI summary yet.
Reading 0:00
15s threshold

When we upgraded our Next.js 16 app to Tailwind CSS v4 , almost everything worked out of the box—except one interactive component that suddenly felt janky.

On Tarot Fortune Cards , visitors draw cards from an overlapping 22-card fan before receiving a reading. After moving to Tailwind v4, hovering and selecting a card snapped abruptly instead of gliding smoothly—and every card click still took over a second to settle.

Root-causing that single interaction uncovered two completely separate bugs: a Tailwind v4 CSS compilation change that quietly breaks transition-[transform] , and a 6-query database waterfall hiding inside a tiny Next.js Route Handler. Here is how we fixed both in under an hour.

Bug 1: Why transition-[transform] Stops Animating -translate-y-5 in Tailwind v4

In Tailwind v3, utility classes like -translate-y-5 and scale-[1.05] compiled down to CSS custom properties inside a single transform: declaration:

/* Tailwind v3 output */ .hover \ : -translate-y-5 : hover { --tw-translate-y : -1 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.