Skip to content

Commit 0b08948

Browse files
committed
change of function
1 parent 5247ce6 commit 0b08948

File tree

1 file changed

+3
-3
lines changed
  • Internet Application Programming/EXercise4

1 file changed

+3
-3
lines changed

Internet Application Programming/EXercise4/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ document.addEventListener('DOMContentLoaded', function() {
55
let angle = 0;
66
let animationFrameId;
77

8-
function animate() {
8+
function animater() {
99
angle += 0.1;
1010
kaleidoscope.style.transform = `rotate(${angle}deg)`;
11-
animationFrameId = requestAnimationFrame(animate);
11+
animationFrameId = requestAnimationFrame(animater);
1212
}
1313

1414
startButton.addEventListener('click', function() {
1515
if (!animationFrameId) {
16-
animate();
16+
animater();
1717
}
1818
});
1919

0 commit comments

Comments
 (0)