We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5247ce6 commit 0b08948Copy full SHA for 0b08948
Internet Application Programming/EXercise4/script.js
@@ -5,15 +5,15 @@ document.addEventListener('DOMContentLoaded', function() {
5
let angle = 0;
6
let animationFrameId;
7
8
- function animate() {
+ function animater() {
9
angle += 0.1;
10
kaleidoscope.style.transform = `rotate(${angle}deg)`;
11
- animationFrameId = requestAnimationFrame(animate);
+ animationFrameId = requestAnimationFrame(animater);
12
}
13
14
startButton.addEventListener('click', function() {
15
if (!animationFrameId) {
16
- animate();
+ animater();
17
18
});
19
0 commit comments