How to create loading animation using CSS | loading animation using CSS | loading Animation

Опубликовано: 19 Март 2023
на канале: Coding Maker
1,457
like

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.


На этой странице сайта вы можете посмотреть видео онлайн How to create loading animation using CSS | loading animation using CSS | loading Animation длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Coding Maker 19 Март 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,457 раз и оно понравилось like зрителям. Приятного просмотра!