Arotate0deg 100 transform rotate360deg Lets explain how each property is working below. The CSS margin property is set to auto to center the loader on the page. The CSS border property defines the size style and color of the loaders border which appears as the circular track that the orange ribbon moves around. The CSS borderradius property set to 50 makes the loader into a circle. The bordertop property defines the size style and color of the loader itself the orange ribbon. Notice it has the same size and style as the border only the color is different. You can also define.
The borderbottom borderright and borderleft properties. Setting the borderbottom property will add a separate spinning ribbon. Setting the borderright or left properties will lengthen the one ribbon. The width and height Digital Marketing Service properties define the size of the loading animation the entire circle. Lastly the animation property defines the name duration timing and iteration account. In this example the spinner is set to move at the same speed from start to end for 4 seconds and and loop indefinitely. The only thing left to do is set your animations keyframes. These will describe how the loader.
Render at a given time during the animation sequence. Make sure to use the animation name defined in the animation property in this case spinner. Only two keyframes are defined in this example. The first occurs at 0 or the first moment of the animation sequence. The loader is configured to be rotated 0 degrees. The second keyframe occurs at 100 i.e. the last moment of the animation sequence. The loader is configured to be rotated 360 degrees so that the ribbon starts at the top of the circle and completes a full rotation over the course of four seconds. And thats it. But remember your CSS have to be that basic. Like all things CSS your imagination controls the possibilities. Check out.