-
Notifications
You must be signed in to change notification settings - Fork 174
Open
Description
Hi, And thank you for this amazing work of art.
I tried to use this full moon with a spinning light around it in my code and I realized that you need to add display: inline-block
and left: 0
to .loader::before
to get it work.
I think you should update these lines here:
css-loader/js/loaders/circle.js
Lines 1800 to 1830 in f51b9ae
{ | |
id: "moon-around-light", | |
html: `<span class="loader"></span>`, | |
css: `.loader { | |
width: 100px; | |
height: 100px; | |
background: linear-gradient( | |
165deg, | |
rgba(255, 255, 255, 1) 0%, | |
rgb(220, 220, 220) 40%, | |
rgb(170, 170, 170) 98%, | |
rgb(10, 10, 10) 100% | |
); | |
border-radius: 50%; | |
position: relative; | |
} | |
.loader:before { | |
position: absolute; | |
content: ""; | |
width: 100%; | |
height: 100%; | |
border-radius: 100%; | |
border-bottom: 0 solid #ffffff05; | |
box-shadow: 0 -10px 20px 20px #ffffff40 inset, | |
0 -5px 15px 10px #ffffff50 inset, 0 -2px 5px #ffffff80 inset, | |
0 -3px 2px #ffffffbb inset, 0 2px 0px #ffffff, 0 2px 3px #ffffff, | |
0 5px 5px #ffffff90, 0 10px 15px #ffffff60, 0 10px 20px 20px #ffffff40; | |
filter: blur(3px); | |
animation: 2s rotate linear infinite; | |
} |
BTW I really think it is time to do a revision, things like the following were added for quite some time:
- CSS logical properties
- CSS nesting.
- And
:before
were changed to::before
(ref).
Metadata
Metadata
Assignees
Labels
No labels