+ 4

How to add loading animation to my website😕

I made a loading animation few months back can anyone tell me how to add that to my another website so the animation plays while the page loads

18th Sep 2020, 10:42 AM
Atoms~⚛
Atoms~⚛ - avatar
1 Answer
+ 23
//Javascript window.onload = function (){ //Your code } //jQuery $(window).load(function(){ $('loading').fadeOut(); }); //idk about JS or jQuery but best option is by using ajax : https://stackoverflow.com/questions/244183/how-to-display-a-loading-screen-while-site-content-loads https://www.google.com/amp/s/www.geeksforgeeks.org/how-to-show-page-loading-div-until-the-page-has-finished-loading/amp/
24th Sep 2020, 7:01 AM
NightFox
NightFox - avatar