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.
Sur cette page du site, vous pouvez voir la vidéo en ligne How to create loading animation using CSS | loading animation using CSS | loading Animation durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Coding Maker 19 mars 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,457 fois et il a aimé like téléspectateurs. Bon visionnage!