Skip to content

Commit

Permalink
feat: add effect for number ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 29, 2024
1 parent db26095 commit 4b50923
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Binary file added public/images/bg/ticker_bg.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/pages/Home/Banner/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ $backgroundColor: #232323;
mix-blend-mode: difference;
line-height: 1.2;
font-size: 50px;
outline: none;
background: url('/images/bg/ticker_bg.gif');
background-size: cover;
background-position: center center;
background-clip: text;
color: transparent;

.ticker {
display: flex;
Expand All @@ -142,4 +148,13 @@ $backgroundColor: #232323;
@media screen and (width <= 500px) {
font-size: 30px;
}

body {
margin: 0;
font: 100% / 1.5 Raleway, sans-serif;
color: hsl(230deg 100% 95%);
background: linear-gradient(135deg, hsl(230deg 40% 12%), hsl(230deg 20% 7%));
height: 100vh;
display: flex;
}
}

0 comments on commit 4b50923

Please sign in to comment.