Skip to content

Commit

Permalink
Also add 50px margin on left side
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Dec 24, 2023
1 parent f53c159 commit 55592fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions styles/snow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@


&:nth-child(#{$i}) {
// -50px to fix x-overflow if flake is blown out of right screen
left: clamp(0% + $wind-max-swing + $size, #{random(100) + "%"}, 100% - $size - $wind-max-swing - 50px);
// +-50px to fix x-overflow if flake is blown out of right screen
left: clamp(0% + $wind-max-swing + $size + 50px, #{random(100) + "%"}, 100% - $size - $wind-max-swing - 50px);
animation: fall-#{$i} $fall-duration linear 0s 1;
}

Expand Down

0 comments on commit 55592fb

Please sign in to comment.