motiondivision / motion

A modern animation library for React and JavaScript
https://motion.dev
MIT License
25.85k stars 849 forks source link

[BUG] Opacity is set to invalid value for first few frames #2698

Open 3lijah opened 5 months ago

3lijah commented 5 months ago

2. Describe the bug

When calling an animate(HTMLElement, {opacity: [0, 1]}) function with opacity, the first few frames give a "Warning: Trying to set opacity property to invalid value!" message.

Setting initial to false or any numeric value doesn't fix the issue.

7. Environment details

I know this is super edge case, but I'm using a "browser" called Coherent Gameface: https://coherent-labs.com/products/coherent-gameface/

Note: This happens in v11.0.11+