JackNova
JackNova

Reputation: 3931

css3 webkit transition trasform translate: invalid property value?

-webkit-transition-property: translate
-webkit-transform:translate(-320px, 0px);

I have those lines in my css file but this doesn't work in chrome: if I fire up chrome developer tools and inspect css for elements whose style contains those lines i see an hazard icon that tells 'invalid property value'

webkit-transition

what happens? is this obsolete?

Upvotes: 10

Views: 9197

Answers (1)

Colin Godsey
Colin Godsey

Reputation: 1321

You need to use the exact css style in the value of transition-property. So what you would want is:

-webkit-transition-property: -webkit-transform

Whatever the value is needs to be a legit CSS property (exactly). Lemme know if this works! Seems good to me in Chrome.

Upvotes: 14

Related Questions