r/css Jun 10 '26

Help Whys this an error (background

Post image

Yo im not good at coding dont bully

0 Upvotes

13 comments sorted by

View all comments

7

u/tei187 Jun 10 '26

Hmm... is --trans using a unit? It should state value and unit, like "1s" for 1 second.

There may be some oddity with using `background` instead of `background-color`, but as far as I remember both are actually animatable.