Skip to content

Commit

Permalink
add mask to spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
magicznyleszek committed Mar 26, 2024
1 parent 7dc322d commit 999e583
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsapp/js/components/common/loadingSpinner.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

$spinner-size: 64px;
$spinner-line-size: 10px;
$spinner-mask-size: $spinner-size * 0.5 - $spinner-line-size;

.bigSpinner {
display: block;
Expand All @@ -71,6 +72,7 @@ $spinner-line-size: 10px;
border-radius: 50%;
background: conic-gradient(#{colors.$kobo-blue}, transparent);
animation: rotate 1s linear infinite;
mask-image: radial-gradient(circle, transparent $spinner-mask-size, black 33%);
}

.bigSpinner::before,
Expand Down

0 comments on commit 999e583

Please sign in to comment.