Skip to content

Commit

Permalink
fix: homepage loader
Browse files Browse the repository at this point in the history
  • Loading branch information
getsu7 committed Mar 28, 2024
1 parent 0341581 commit b91c2cb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
11 changes: 8 additions & 3 deletions build/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/styles.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions sass/component/_loader.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$loading-delay: 500ms;
$loading: 1500ms;

.progress {
position: absolute;
height: 1em;
Expand All @@ -6,7 +9,7 @@
padding: 0.2em;
border-bottom: transparent 1px;
box-sizing: border-box;
animation: show 6000ms 0ms both;
animation: show $loading $loading-delay;
top: 50vh;
left: 25vw;

Expand All @@ -18,7 +21,7 @@
transform-origin: left;
background-color: $purple;
transform: scaleX(0);
animation: progress-bar 1500ms 250ms;
animation: progress-bar $loading $loading-delay;
}
}

Expand Down Expand Up @@ -57,4 +60,10 @@
border-radius: 15px;
opacity: 1;
}

100% {
border-bottom: solid 1px;
border-radius: 15px;
opacity: 1;
}
}
2 changes: 1 addition & 1 deletion sass/pages/_homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
display: flex;
flex-direction: column;
background-color: $background-primary;
animation: homepage-loading 1000ms 1750ms both;
animation: homepage-loading 1000ms $loading + $loading-delay both;
}

.explorer {
Expand Down

0 comments on commit b91c2cb

Please sign in to comment.