.loader {
background:linear-gradient(yellow, #e90b5a);
/* Show only 10px from the border */
-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#fff 0);
mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#fff 0);
width: 100px;
height: 100px;
border-radius: 50%;
position: fixed;
top: calc(50% - 50px);
left: calc(50% - 50px);
animation: rot 2s linear infinite;
}
@keyframes rot {
100% { transform: rotate(360deg); }
}
body {
background:linear-gradient(to right,grey,white)
}
Code Example |
---|
Css :: css background image |
Css :: prevent flex box width from overflowing in css |
Css :: css change background color on hover |
Css :: update checkbox size css |
Css :: css counter |
Css :: filter array by keyword |
Css :: youtube no related videos embed |
Css :: divider with text css |
Css :: img transparent |
Css :: @media for react style css |
Css :: media queries in scss |
Css :: css font size |
Css :: circle as a pseudo element |
Css :: how to display a header in the center of the column in css |
Css :: wpforms button style |
Css :: flexbox froggy |
Css :: scss to css |
Css :: values play state animation css |
Css :: fade div |
Css :: clip path css |
Css :: overflow |
Css :: babel in browser |
Css :: sass min max |
Css :: How to write text in middle of straight line in css |
Css :: keep button active after click |
Css :: how to give rgba in tailwind |
Css :: css border sides |
Css :: hover on father elemet activates a child element css |
Css :: twig country name |
Css :: text cow |