-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Circuralar Disque Multi-Color (#2218)
* Circuralar Disque Multi-Color * Feature Code review * Feature Code review : correct include.js * Update index.html - translated french to english - fixed indentations * Update index.html * Update style.css - translate french to english comments * Update include.js - re-established erased contributions by this PR * commit second animation - BOOk (#2245) Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com> * Added breaking news animation (#2253) * Circuralar Disque Multi-Color --------- Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com> Co-authored-by: archeana <anaclaudiasousajesus6@gmail.com> Co-authored-by: Parth Chawande <101104958+parthrc@users.noreply.github.com>
- Loading branch information
1 parent
8ab07c9
commit a451454
Showing
5 changed files
with
112 additions
and
89 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>Multicolor Circular Loading</title> | ||
</head> | ||
<body> | ||
<div class="multicolor-loader"></div> | ||
</body> | ||
</html> |
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,55 @@ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
background-color: #333; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
.multicolor-loader { | ||
background: conic-gradient( | ||
from 0deg, | ||
red, | ||
yellow, | ||
green, | ||
blue, | ||
violet, | ||
red | ||
); | ||
border-radius: 50%; | ||
width: 120px; | ||
height: 120px; | ||
animation: spin 2s linear infinite; | ||
/* Mask after 5 seconds */ | ||
animation-delay: 5s; | ||
} | ||
|
||
@keyframes spin { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(360deg); } | ||
} | ||
|
||
.multicolor-loader:after { | ||
content: ""; | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
/* Background color to mask */ | ||
background: #333; | ||
border-radius: 50%; | ||
animation: fadeOut 1s ease-in forwards; | ||
/* Mask after 5 seconds */ | ||
animation-delay: 5s; | ||
} | ||
|
||
@keyframes fadeOut { | ||
0% { | ||
opacity: 1; | ||
} | ||
100% { | ||
opacity: 0; | ||
display: none; | ||
} | ||
} |
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