+ 2
show body structure after loading circle
I want to make loading... for 4 second then after show my page.. Here is my incomplete code : https://code.sololearn.com/Wt9OY8yKpY4s/?ref=app
2 Réponses
+ 1
Shaili Shah my code is working..
No need for element change span to div.
And do you have in mine any other javascript for loading... above said
0
I think that's the complete code.
If you want to set it for 4 seconds then set the timeout to 4000.
There is just the small mistake to define ending tag <h1> and <span> tag.
Use div instead of a span tag.
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div>
<h1 id="Lhide"></h1>
</div>
<div id="root" style=display:none>
<h1 class="show"> This Text appeared </h1>
</div>
</body>
</html>
And Js :
window.onload = function () {setTimeout(appeardiv,4000); }
Update this line in your code.
Hope it helps.