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.
En esta página del sitio puede ver el video en línea How to create loading animation using CSS | loading animation using CSS | loading Animation de Duración hora minuto segunda en buena calidad , que subió el usuario Coding Maker 19 marzo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,457 veces y le gustó like a los espectadores. Disfruta viendo!