The buttons on this site lift a pixel on hover. They were written to ease up over 200ms. For months they snapped instead, and nobody noticed, because a snap still looks like it works. The mobile menu had the same bug: it was meant to scale open and only faded.
Both had one cause, and it is a change in Tailwind v4 that turns a lot of hand-written transition lists into dead code without any error.
The utilities stopped using transform
In Tailwind v3, -translate-y-px, scale-95 and rotate-3 all wrote to the transform property. In v4 they write to the individual CSS properties instead: translate, scale and rotate. This is what the built stylesheet here actually contained for the button hover:
.btn:hover {
--tw-translate-y: -1px;
translate: var(--tw-translate-x) var(--tw-translate-y);
}And the transition on the same button, written as an arbitrary list:
transition-[background-color,border-color,color,transform]The hover changes translate. The transition watches transform, which never changes. So the browser applies the new position immediately, exactly as it would with no transition at all. Nothing in the console, nothing in the build, and the button still moves — just not smoothly.
The stock utility is fine
This is the part that makes it easy to miss. Tailwind's own transition-transform was updated for v4 and covers all four properties:
.transition-transform {
transition-property: transform, translate, scale, rotate;
}So any element using the stock utility kept working through the upgrade. Only the places where someone wrote a property list by hand broke — which tends to be the components that were fussed over most, because that is where people reach past the defaults.
Finding them
Search for arbitrary transition lists that name transform:
grep -rnE "transition-\[[^]]*transform" srcThen for each hit, look at what the same element changes on hover, focus or open. If it uses translate-*, scale-* or rotate-*, the list is wrong. On this site that was two places: the button, and the mobile nav sheet, which toggles scale-y-95 against transition-[opacity,transform].
The fix is to name the property that actually changes: transition-[opacity,scale], not transform. Listing all four would also work, but a list is meant to say what animates; a list that names properties nothing changes is how this bug got written in the first place.
The same trap, one level over: hover on touch
While checking the button I found a second thing the utility had been doing quietly. Tailwind v4's hover: variant only applies on devices that can actually hover — it compiles to a rule inside @media (hover: hover).
A plain .btn:hover written in a component layer has no such guard. On a phone, a tap fires :hover and it sticks until something else is tapped. Five of the hand-written hovers here did that: tap the theme toggle, and it stayed highlighted. Wrapping them in @media (hover: hover) fixes it, and an :active rule under (hover: none) keeps taps from feeling dead.
The pattern
Both bugs have the same shape. The utility was doing something correct and invisible; hand-written CSS took over the job and dropped the invisible part. Neither failure throws, neither shows up in a build, and both still look roughly right in a quick check on a desktop.
The cheapest guard is to prefer the stock utility where it does what you need, and when you do write a property list, write the properties the element actually changes. And after a major Tailwind upgrade, look at the hover states by hand, on a phone, slowly. A snap and an ease look the same in a screenshot.