Skip to content

Commit 5af278e

Browse files
committed
Merge branch 'JavaScript-animations' of https://github.com/homero304/es.javascript.info into JavaScript-animations
2 parents 6aaf733 + 0c775af commit 5af278e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

7-animation/3-js-animation/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function animate({timing, draw, duration}) {
133133
// calcular el estado actual de la animación
134134
let progress = timing(timeFraction)
135135

136-
draw(progress); // dibujala
136+
draw(progress); // dibujar
137137

138138
if (timeFraction < 1) {
139139
requestAnimationFrame(animate);
@@ -146,7 +146,7 @@ function animate({timing, draw, duration}) {
146146
La función `animate` acepta 3 parámetros que básicamente describen la animación:
147147

148148
`duration`
149-
: Tiempo total de animación. Como, `1000`.
149+
: Tiempo total de animación. Como: `1000`.
150150

151151
`timing(timeFraction)`
152152
: Función de sincronización, como la propiedad CSS `transition-timing-function` que obtiene la fracción de tiempo que pasó (`0` al inicio, `1` al final) y devuelve la finalización de la animación (como `y` en la curva de Bézier).

0 commit comments

Comments
 (0)