Describe the bug
When you animate a property to a numeric value with an exponent, anime ignores the exponent part. This makes it completely impossible to animate THREE.js Quaternions, or any value that's more than a few orders of magnitude larger or smaller than 1.
To Reproduce
const obj = {x: 0}
await anime({targets: obj, x: 6.123233995736766e-17}).finished
console.log(obj.x) // logs 6.123233995736766
Note the lack of e-17.
6.123233995736766 and 6.123233995736766e-17 are completely different numbers (by 17 orders of magnitude!)
Expected behavior
obj.x is 6.123233995736766e-17
Screenshots
N/A
Desktop (please complete the following information):
Smartphone (please complete the following information):
If anyone else runs into this issue before my PR is merged, I've published a fixed version as "@arilotter/animejs" 3.0.2
Most helpful comment
If anyone else runs into this issue before my PR is merged, I've published a fixed version as "@arilotter/animejs" 3.0.2