You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
313 B
17 lines
313 B
4 years ago
|
|
||
|
window.onload=function() {
|
||
|
var element = document.getElementById("myBar");
|
||
|
var width = 1;
|
||
|
var identity = setInterval(scene, 10);
|
||
|
function scene() {
|
||
|
if (width >= 100) {
|
||
|
clearInterval(identity);
|
||
|
} else {
|
||
|
width++;
|
||
|
element.style.width = width + '%';
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|