Je voudrais créer un chargeur pour ma page Web, mais je ne sais pas comment garder le corps caché pendant que le chargeur animé montre, que supprimer le chargeur, et montre le corps après le chargement. Voici le CSS pour le corps du chargeur {Comment créer un chargeur CSS qui cache, que montre le corps
background-color:crimson;
height:100%;
width:100%;
}
.one, .two, .three {
height:25px;
width:25px;
background-color:white;
border-radius:100%;
float:left;
margin:5px;
}
.main {
padding-top:25%;
padding-left:47%;
}
.one {
animation-name:dot-one;
animation-duration:1s;
animation-iteration-count:infinite;
animation-delay:0.10s;
}
.two {
animation-name:dot-two;
animation-duration:1s;
animation-iteration-count:infinite;
animation-delay:0.20s;
}
.three {
animation-name:dot-three;
animation-duration:1s;
animation-iteration-count:infinite;
animation-delay:0.30s;
}
@keyframes dot-one {
0% {transform:scale(.5);}
50% {transform:scale(1);}
100% {transform:scale(.5);}
}
@keyframes dot-two {
0% {transform:scale(.5);}
50% {transform:scale(1);}
100% {transform:scale(.5);}
}
@keyframes dot-three {
0% {transform:scale(.5);}
50% {transform:scale(1);}
100% {transform:scale(.5);}
}
Montrez-nous ce que vous avez essayé jusqu'à présent. Nous avons besoin de code pour travailler avec. –
@MichaelCoker J'ai ajouté le CSS pour le chargeur, si cela aide. –