Hello developers, today in this blog, you'll learn to create a Color Changing Shiny Loader using HTML & CSS.
Loaders are also called preloaders, are what you see on the screen while the page's content is still loading. Loaders are simple and complex animations that are used to keep your visitors and content viewers entertained while the page's content is still loading.
In this blog (Color Changing Shiny Loader) on the webpage, a shiny loader, which rotates 360deg clockwise. While loading, its color changes continuously with the help of the degrees. At the center of the shiny loader, the "Loading..." text smoothly fades out and fades in when the loader is rotating.
The source code of this Color Changing Shiny Loader is given below, if you want the source code of this program, you can copy it. You can use this Color Changing Shiny Loader with your creativity and can take this project to the next level.
Color Changing Shiny Loader [Source Code]
To make this website, you would like to make two files: an HTML file & a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.
body{
margin: 0;
padding: 0;
font-family: montserrat;
background: #12192c;
overflow: hidden;
}
.center{
display: flex;
text-align: center;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.ring{
position: absolute;
width: 200px;
height: 200px;
border-radius: 50%;
animation: ring 3s linear infinite;
}
@keyframes ring {
0%{
transform: rotate(0deg);
box-shadow: 1px 5px 2px #21D4FD;
}
50%{
transform: rotate(180deg);
box-shadow: 1px 5px 2px #E44D26;
}
100%{
transform: rotate(360deg);
box-shadow: 1px 5px 2px #00C9A7;
}
}
.ring:before{
position: absolute;
content: '';
left: 0;
top: 0;
height: 100%;
width: 100%;
border-radius: 50%;
box-shadow: 0 0 5px rgba(255,255,255,.3);
}
span{
color: #5eb2c7;
font-size: 20px;
text-transform: uppercase;
letter-spacing: 1px;
line-height: 200px;
animation: text 3s ease-in-out infinite;
}
@keyframes text {
50%{
color: black;
}
}
.credit{
text-align: center;
color: #fff;
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.credit a{
text-decoration: none;
color: #E44D26;
font-weight: bold;
}
Thank you for reading our blog. If you face any problem creating this Color Changing Shiny Loader using HTML & CSS, then contact us or comment us. We'll try to provide the solution to your problem as soon as possible.
إرسال تعليق
Thank you
Learning robo team