Skip to content

Commit 11839f8

Browse files
author
vavimayor159
committed
Revision snippets de codigo
1 parent 74d9d18 commit 11839f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

14_dom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ de una ((elipse)):
909909
if (ultimoTiempo != null) {
910910
angulo += (tiempo - ultimoTiempo) * 0.001;
911911
}
912-
cat.style.top = (Math.sin(angulo) * 20) + "px";
913-
cat.style.left = (Math.cos(angulo) * 200) + "px";
912+
gato.style.top = (Math.sin(angulo) * 20) + "px";
913+
gato.style.left = (Math.cos(angulo) * 200) + "px";
914914
requestAnimationFrame(nuevoTiempo => animar(nuevoTiempo, tiempo));
915915
}
916916
requestAnimationFrame(animar);

0 commit comments

Comments
 (0)