html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<input type="range" id="input" value="0">
<p id="p"></p>
<script>
var count = 0;
var grow = true;
function a(){
document.getElementById("p").innerHTML = count
var x = document.getElementById("input")
x.value = count;
if(grow){
count++;
}
else{
count--;
}
if(count == 100 || count == 0){
grow = !grow;
}
}
setInterval(a,100)
</script>
</body>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run