You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, should this be the same when using an EffectCallback? The spec isn't clear on this. When setting duration to 0 the callback isn't executed at all.
Thanks!
The text was updated successfully, but these errors were encountered:
I wonder if this is related to the default fill mode for animation being none. Do you have an example that shows the issue and describe what you expected to happen?
Indeed, explicitly setting the fill mode to 'forwards' will apply the properties. But why is the default fill 'none'? The part of the spec I was referring to says:
It is also possible to omit the timing parameter altogether in which case default timing values will be used. Since the intrinsic iteration duration of an animation is zero, and the default fill when constructing an Animation is forwards, it is possible to create animations that simply set a property without any interpolation as follows,
newAnimation(elem,{display: 'none'});
I also tested this using an EffectCallback and the effect is the same. If setting fill mode to forwards the callback is executed just once.
Hello,
The spec says that when an animation has no duration set, the properties are set on the target element with no interpolation: http://dev.w3.org/fxtf/web-animations/#creating-a-new-animation-object
The polyfill only does this when explicitly setting duration to 0.
Also, should this be the same when using an EffectCallback? The spec isn't clear on this. When setting duration to 0 the callback isn't executed at all.
Thanks!
The text was updated successfully, but these errors were encountered: