“preload” Kode Jawaban

preloader

window.onload = function() {
            document.getElementById("preloader").classList.add("off")
        };
Gleaming Grivet

preload

// loader with jaquery
	$(window).on('load', function () {
		$('#loading').fadeOut(1000);
	});
    
// loader with javascript with inline

//html code
<div id="loading" onload="preload()"></div>

//javascript code
	var loader= document.getElementById("loading");
	loader.style.display="none"


//loader with javascript with custom time
		var loader = document.getElementById("loading");
		window.addEventListener("load", function () {
			setTimeout(function () {
				loader.style.display = "none"
			},5000)
		})

		


 
MD RAZZAK

Jawaban yang mirip dengan “preload”

Pertanyaan yang mirip dengan “preload”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya