Skip to content

Missing CSS properties for moon-around-light #10

Description

@kasir-barati

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:

{
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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions