Skip to content

Commit

Permalink
add styles of Preloader to style.css
Browse files Browse the repository at this point in the history
  • Loading branch information
BasemYahia402 committed Aug 22, 2023
1 parent 4ae889a commit 6dafc8b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions Portfolio/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -757,4 +757,51 @@ h2 {

#footer .copyright span {
color: var(--primary);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
overflow: hidden;
background: var(--secondary);
}

#preloader:before {
content: "";
position: fixed;
top: calc(50% - 0px);
left: calc(50% - 30px);
border: 6px solid var(--primary);
border-top-color: var(--secondary);
border-bottom-color: var(--secondary);
border-radius: 50%;
width: 60px;
height: 60px;
animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
0% {
transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
[data-aos-delay] {
transition-delay: 0 !important;
}
}

0 comments on commit 6dafc8b

Please sign in to comment.