Support `animation @fill`

Abierto
#9 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript
Área
frontend, web-dev

Línea de trabajo

Empieza rastreando cómo se procesan el elemento animate de TTML2 y su atributo fill, y después compara el comportamiento predeterminado actual con la especificación TTML2. Se considera terminado cuando el comportamiento predeterminado usa la semántica remove, mientras que fill="freeze" conserva el valor final de la animación, incluido el ejemplo de gain descrito en el issue.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
JavaScript
Estrellas
8
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bbc/adhere-lib

Todos los issues de bbc/adhere-lib

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.