#loader { position: fixed; top: 0; z-index: 999; height: 100vh; width: 100vw; display: block; background: rgb(255, 255, 255); background-position: center; background-image: url("../img/loading.gif"); background-repeat: no-repeat; background-size:200px; display: none; }