I would like to know how to make the following preloader last me 5sec before showing me the entire html document.
.preload {
position: absolute;
top: 50%;
left: 50%;
width: 60px;
height: 60px;
margin: -42px 0 0 -12px;
background: #C60B09;
transform: rotate(45deg);
animation: spin 1s infinite linear;
}
@keyframes spin {
0% { -webkit-transform:rotate(0deg); }
100% { -webkit-transform:rotate(360deg); }
}
<div class="preload"></div>
I have intended with setTimeout
but it does not work for me, probably I will not declare it, forgive me I'm a novice.
I thank you in advance.