I have the following CSS (and identical prefixed versions):
transition: -webkit-box-shadow 0.4s ease-out,
box-shadow 0.4s ease-out,
-webkit-transform 0.4s ease-out,
transform 0.4s ease-out,
opacity 0.4s ease-out,
-webkit-opacity 0.4s ease-out;
about which Chrome gives me this nonsense:
Hovering over the warning sign brings up a tooltip: "invalid property value".
I fail to see the difference to this (from CSS-Tricks):
You may comma separate value sets to do different transitions on different properties:
div { transition: background 0.2s ease, padding 0.8s linear; }
Note that I cannot use all
, because I am setting .style
properties in JS which I don't want animated (unless there is a way to exclude top
and left
from the transition and still use all
, which would be nice!).
How can I get my transition working again? Any advice appreciated.
Edit: Removing the prefixed ones didn't fix it, still an "Invalid property value" on transition and its prefixed forms.
Edit 2: I'm thoroughly confused. I've simplified it to this still-invalid code:
-webkit-transition: transform 0.4s ease-out, opacity 0.4s ease-out;
transition: transform 0.4s ease-out, opacity 0.4s ease-out;
Edit 3: Turns out the solution was just to update Chrome! I'd still like a workaround if possible.