Open ycmjason opened 5 years ago
According to the mdn doc, offset could be written in an array of numbers. Here is an example in the doc:
element.animate({ opacity: [ 0, 0.9, 1 ], offset: [ 0, 0.8 ], // Shorthand for [ 0, 0.8, 1 ] easing: [ 'ease-in', 'ease-out' ], }, 2000);
I was trying to do exactly the same but it throws an error:
TypeError: Keyframe offsets must be numbers.
Is this a new feature that has not been polyfilled or am I expecting wrong thing from this lib?
Yes, arrays of offsets are a more recent addition to the spec (added just under 2 years ago) so I suspect the polyfill has not been updated to support that yet.
According to the mdn doc, offset could be written in an array of numbers. Here is an example in the doc:
I was trying to do exactly the same but it throws an error:
Is this a new feature that has not been polyfilled or am I expecting wrong thing from this lib?