Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Animator does not correctly parse transition durations with multiple values #2373

Closed
@jonrimmer

Description

@jonrimmer

In order to determine the correct length of time to play a CSS-transition-based animation, animator.js attempts to parse the value of the transition-duration property of the element's computed style to a float value. However, it fails to account for cases where multiple transitions are specified. For example: transition-duration: 0.2s, 0.5s, 1s. Only the first value is parsed, which may be shorter than one or more than the others.

The result will be that the animation finishes before the transition is completed. If some action, such a DOM removal, is scheduled to take place after, it will result in the animation being cut off before it is completed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions