≈ the.bay.news

Stop Jamming Translate, Rotate, and Scale Into One `transform`

DEV Community
Stop Jamming Translate, Rotate, and Scale Into One `transform`
A CSS :hover scale and a JS drag handler both write to `transform` — and the moment JS sets it, the hover rule silently stops working, no error, no warning. The `translate`, `rotate`, and `scale` properties exist so this never happens.

A CSS :hover scale and a JS drag handler both write to `transform` — and the moment JS sets it, the hover rule silently stops working, no error, no warning. The `translate`,…

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.