loading Animation
Follow us -
.∎ Get Complete Source Codes - https://codingmaker1.blogspot.com/
∎ Instagram - https://www.instagram.com/coding.maker/
∎ CodePen - https://codepen.io/mr-zouraiz123
Here's the HTML code for our animation.
We've created a div element with a class of 'div',
which we'll use to style our animation
So, First, we have some basic CSS rules for setting the margin, padding, and box-sizing properties to 0. Then, we have the body element set to display as a flex container and centered vertically and horizontally using justify-content and align-items. We also set the background color of the body to black.
Next, we have the div element with a class of "div". This is the element we'll be animating. It's set to position absolute and centered both vertically and horizontally using the top, right, bottom, and left properties along with margin: auto. The div has a width and height of 100px and a border-radius of 4px, giving it a rounded shape. The background-image property is set to a linear gradient that creates a beautiful color blend from pink to purple.
The magic happens with the animation property. We're using two animations: rotate and clip. The rotate animation uses the keyframes rule to create a 3D rotation effect. At 0% and 100%, the div is rotated along the X and Y axis. At 50%, the div is rotated 180 degrees along the X axis, creating the illusion of a spinning motion.
The clip animation is applied once the rotate animation has completed. It uses a single keyframe at 100% to clip the div, making it disappear and then reappear in the opposite direction.
On this page of the site you can watch the video online How to create loading animation using CSS | loading animation using CSS | loading Animation with a duration of hours minute second in good quality, which was uploaded by the user Coding Maker 19 March 2023, share the link with friends and acquaintances, this video has already been watched 1,457 times on youtube and it was liked by like viewers. Enjoy your viewing!