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
The process for setting animation currentTime and startTime needs to be updated to handle CSSNumericValue inputs.
For progress based animations, I suggest we only allow CSSNumericValues that are percentages. which makes setting the time as simple as: (new_current_time / 100) * timeline_duration
There are certain edge cases where we might be able to convert absolute time units to progress based values, but it would never be complete. If the animation is creating using only percentage values for effect iteration duration, then there is no frame of reference to be able to convert an absolute time value into a progress based value. I think it is more straightforward to simply limit the allowed input types depending on the type of timeline being used.
For time based animations we should add support for certain types of CSSNumericValues. We will need to discuss which CSSNumericValues to support.
Exceptions should be thrown at each point where incompatible input is detected.
The text was updated successfully, but these errors were encountered:
The process for setting animation currentTime and startTime needs to be updated to handle CSSNumericValue inputs.
For progress based animations, I suggest we only allow CSSNumericValues that are percentages. which makes setting the time as simple as:
(new_current_time / 100) * timeline_duration
There are certain edge cases where we might be able to convert absolute time units to progress based values, but it would never be complete. If the animation is creating using only percentage values for effect iteration duration, then there is no frame of reference to be able to convert an absolute time value into a progress based value. I think it is more straightforward to simply limit the allowed input types depending on the type of timeline being used.
For time based animations we should add support for certain types of CSSNumericValues. We will need to discuss which CSSNumericValues to support.
Exceptions should be thrown at each point where incompatible input is detected.
The text was updated successfully, but these errors were encountered: