Skip to content

Commit

Permalink
style: loading text
Browse files Browse the repository at this point in the history
  • Loading branch information
jrishabh55 committed Jul 29, 2020
1 parent 460d093 commit 0851f81
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/components/FullScreenLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const Loading = () => {
position="absolute"
className="bg-blue-900 tracking-widest overflow-hidden select-none bg-opacity-75 z-50 w-screen h-screen justify-center items-center"
>
<Box className="text-blue-200 font-mono uppercase">Loading();</Box>
<Box id="loading-text" className="text-4xl text-blue-200 font-mono uppercase">
Loading();
</Box>
</Box>
);
};
Expand Down
30 changes: 25 additions & 5 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

#loading-text {
position: relative;
font-family: sans-serif;
text-transform: uppercase;
overflow: hidden;
background: linear-gradient(90deg, #63b3ed, #c3dafe, #63b3ed);
background-repeat: no-repeat;
background-size: 80%;
animation: animate 3s linear infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: rgba(255, 255, 255, 0);
}

@keyframes animate {
0% {
background-position: -500%;
}
100% {
background-position: 500%;
}
}

0 comments on commit 0851f81

Please sign in to comment.