LOADING SCREEN ANIMATION USING HTML & CSS
Loading screens are also commonly used to provide important information about the upcoming stage of any application, game or website.
What is the loading screen called?
Those are usually called Splash Screens. A splash screen is a graphical control element consisting of window ontaining an image, a logo and the current version of the software. A splash screen usually appears while a game or program is launching.
The @keyframes Rule
When you specify CSS styles inside the @keyframes rule, the animation will gradually change from the current style to the new style at certain times.
To get an animation to wor, you must bind the animation to an element.
@keyframes example {
from {background-color: red;}
to {background-color: yellow;}
}
/* The element to apply the animation to */
div {
width: 100px;
height: 100px;
background-color: red;
animation-name: example;
animation-duration: 4s;
}
jQuery CDN Link
<script src="jquery-3.5.1.min.js"></script>
Code is Available on Github. Click Here!
Comments
Post a Comment