Closed iamvdo closed 6 years ago
Seems to be a bug at first:
animate({ el: 'div', translateX: ['100%', 0] })
or
animate({ el: 'div', translateX: '100%', direction: 'reverse' })
I expect an animation from 100% to 0, but got from 100px to 0. See: http://jsbin.com/fitezotivo/edit?js,output
100%
0
100px
It seems to occur when animating percentages from/to px (as no unit is converted to px). Using translateX: ['100%', '0%'] fix the first case, but we're still facing the issue when using direction: reverse
translateX: ['100%', '0%']
direction: reverse
Fixed in v2.0.0
Seems to be a bug at first:
or
I expect an animation from
100%
to0
, but got from100px
to0
. See: http://jsbin.com/fitezotivo/edit?js,outputIt seems to occur when animating percentages from/to px (as no unit is converted to px). Using
translateX: ['100%', '0%']
fix the first case, but we're still facing the issue when usingdirection: reverse