Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support animation @fill #9

Open
nigelmegitt opened this issue Apr 20, 2020 · 0 comments
Open

Support animation @fill #9

nigelmegitt opened this issue Apr 20, 2020 · 0 comments

Comments

@nigelmegitt
Copy link
Collaborator

The TTML2 animate element supports a fill attribute.

The default of "remove" means that at the end of the animation, the end value is reverted. In general we want the semantic associated with the alternative value, "freeze" to apply, where whatever the end value is gets retained.

For example:

        <div begin="0s" end="2.3s">
            <animate begin="0.0s" end="0.2s" tta:gain="1;0.4"/>
            <animate begin="2.1s" end="2.3s" tta:gain="0.4;1"/>

This varies the gain from 1 -> 0.4 between 0.0 and 0.2s, and then varies it from 0.4 -> 1 between 2.1s and 2.3s. But what happens between 0.2s and 2.1s? By default the gain value reverts to its default of 1, but we want to "freeze" it at 0.4 in this example:

        <div begin="0s" end="2.3s">
            <animate begin="0.0s" end="0.2s" fill="freeze" tta:gain="1;0.4"/>
            <animate begin="2.1s" end="2.3s" tta:gain="0.4;1"/>

Our current default behaviour is actually "freeze" but that's wrong - it should be "remove" according to the spec.

@nigelmegitt nigelmegitt transferred this issue from another repository Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant