Support CSS `transform`. Change calculation of velocity.