You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/animationbegin.html
+58-53Lines changed: 58 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
<!DOCTYPE html>
2
2
<html>
3
+
3
4
<head>
4
5
<metacharset="UTF-8">
5
6
<title>JavaScript Animation Example</title>
@@ -12,7 +13,8 @@
12
13
color:#2c2c2c;
13
14
}
14
15
15
-
h2,h3 {
16
+
h2,
17
+
h3 {
16
18
color:#1a237e;
17
19
}
18
20
@@ -84,59 +86,62 @@
84
86
}
85
87
</style>
86
88
</head>
89
+
87
90
<body>
88
91
89
-
<h2>JavaScript Animation Using <code>setInterval()</code></h2>
90
-
91
-
<p>
92
-
This example demonstrates how to animate a box using JavaScript timers. The box moves horizontally using <code>setInterval</code>, and you can control the animation with start, stop, and reset buttons.
0 commit comments