Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orbit-star not available on the repository #85

Open
l-busca opened this issue Aug 6, 2022 · 1 comment
Open

orbit-star not available on the repository #85

l-busca opened this issue Aug 6, 2022 · 1 comment

Comments

@l-busca
Copy link

l-busca commented Aug 6, 2022

Describe the bug
A clear and concise description of what the bug is.

orbit-star not available on the repository

To Reproduce

chose orbit-star on the website, then click on "Grab the css on github"

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots/GIFs
If applicable, add screenshots/GIFs to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@nattprog
Copy link

nattprog commented Dec 11, 2024

Found the css source

/**
  * orbit-star
  *
  * @author Aurélio A. Heckert - http://aurium.one
*/

$size: 100px;
$color: var(--primary);
$rock: var(--secondary);

@keyframes orbit-star {
  0% {
    transform: rotate(0deg) scale(var(--scale));
  }
  100% {
    transform: rotate(-360deg) scale(var(--scale));
  }
}

.orbit-star, .orbit-star > div {
  --scale: 1;
  height: $size;
  width: $size;
  position: relative;
  animation: linear orbit-star 9s infinite;
  &:before {
    content: '';
    display: block;
    height: $size;
    width: $size / 2;
    background: transparent;
    border-radius: $size/2 0 0 $size/2;
    border: none;
    border-bottom: $size/20 solid $color;
    border-left: $size/50 solid $color;
    border-top: 0 solid $color;
    opacity: 0.3;
  }
  &:after {
    content: '';
    position: absolute;
    display: block;
    top: $size * .38;
    left: $size * .38;
    height: $size * .24;
    width: $size * .24;
    background: $color;
    border-radius: $size/6;
  }
}

.orbit-star > div:nth-child(1) {
  position: absolute;
  top: $size * .25;
  left: $size * .25;
  width: $size * .5;
  height: $size * .5;
  animation: linear orbit-star 7s infinite;
  &:before {
    height: $size * .5;
    width: $size * .25;
    border-bottom: $size/25 solid $color;
    border-left: $size/50 solid $color;
  }
  &:after {
    top: $size * .44;
    left: $size * .22;
    width: $size / 12;
    height: $size / 12;
    background: $rock;
  }
}


.orbit-star > div:nth-child(2) {
  --scale: .333;
  top: -52.5%;
  &:before {
    border-bottom: $size/8 solid $color;
    border-left: $size/30 solid $color;
  }
  &:after {
    top: $size * .29;
    left: $size * .29;
    width: $size * .42;
    height: $size * .42;
    border-radius: $size * .29;
    background: $rock;
  }
  & > div {
    position: absolute;
    background: $rock;
    width: $size / 5;
    height: $size / 5;
    bottom: - $size / 18;
    left: $size * .4;
    border-radius: $size/10;
  }
}

and the html:

<div class="orbit-star">
    <div><div></div></div>
    <div><div></div></div>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants