-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #571 from MastanSayyad/main
Add "Preloader" to All Pages (excluding Homepage)
- Loading branch information
Showing
10 changed files
with
354 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#preloader { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: rgba(0, 0, 0, 0.8); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 9999; | ||
} | ||
|
||
.spinner { | ||
position: relative; | ||
width: 130px; /* Size of the spinner */ | ||
height: 130px; /* Size of the spinner */ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.spinner-inner { | ||
width: 100px; /* Size of the spinner */ | ||
height: 100px; /* Size of the spinner */ | ||
border-radius: 50%; /* Makes the spinner circular */ | ||
border: 10px solid transparent; /* Base border to create space */ | ||
border-top: 10px solid transparent; | ||
border-right: 10px solid transparent; | ||
border-bottom: 10px solid transparent; | ||
border-left: 10px solid transparent; /* Gradient applied here */ | ||
border-image: linear-gradient(45deg, #ff2d15, #be18ff, #0d3dff); /* Gradient border */ | ||
border-image-slice: 1; | ||
animation: spin 1s linear infinite; | ||
} | ||
|
||
#loading-percentage { | ||
position: absolute; | ||
font-size: 24px; | ||
font-weight: bold; | ||
text-align: center; | ||
width: 100%; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
background: linear-gradient(45deg, #be18ff, #ffffff); /* Gradient text color */ | ||
-webkit-background-clip: text; | ||
-webkit-text-fill-color: transparent; /* Makes text color gradient */ | ||
color: transparent; /* Fallback for non-webkit browsers */ | ||
} | ||
|
||
@keyframes spin { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(360deg); } | ||
} | ||
|
||
#content { | ||
display: none; /* Hide content until preloader is done */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.