Improvement: transition duration/delay number parsing #10

yyx990803 opened this Issue Jan 10, 2017 · 2 comments


None yet

2 participants


Currently, transition duration/delay such as 0.5s is preserved as-is. When passed to Weex's animation API which expects number of milliseconds, this seems to be treated as 0.5ms instead (likely via parseInt).

We can of course check this in the runtime framework, but ideally weex-styler could normalize these durations during the build phase.


@yyx990803 OK. The unit s could be formatted to ms. Is it necessary to delete ms unit?


Normalizing durations into integers would be nice.

@songsiqi songsiqi closed this in 407218e Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment