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 .…