Skip to content

Commit

Permalink
💫 add fade in
Browse files Browse the repository at this point in the history
  • Loading branch information
ITegs committed Jun 6, 2023
1 parent b1c4ba8 commit 5ccb7da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
font-family: "Bungee";
}

.Hide {
display: none;
opacity: 0;
height: 0;
}

.Header {
position: fixed;
top: 0;
Expand Down
1 change: 1 addition & 0 deletions src/components/Ranking.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
color: var(--background);

box-shadow: 3px 3px 8px #818181;
transition: all 0.5s ease-in-out;
}

.RankingFirst {
Expand Down
6 changes: 5 additions & 1 deletion src/components/Ranking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export default function Ranking() {
}, [scoreboard]);

return (
<div className="RankingContainer">
<div
className={
scoreboard.length >= 3 ? "RankingContainer" : "RankingContainer Hide"
}
>
<div className="RankingSecond">
<b>2</b>
<p>
Expand Down

0 comments on commit 5ccb7da

Please sign in to comment.