-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Contribute anim (#2901)
* Contributing my preloader animation. Contributing my preloader animation. * Fixed folder names and meta artName changed my folder name and meta.json property artName. --------- Co-authored-by: Laureline Paris <[email protected]>
1 parent
798daec
commit 7f213f6
Showing
3 changed files
with
84 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Circle Preloader</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<div class="preloader"> | ||
<div class="circle"> | ||
<div class="circle-inner"></div> | ||
</div> | ||
</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,4 @@ | ||
{ | ||
"githubHandle": "ryekram", | ||
"artName": "preloader_animation" | ||
} |
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,64 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
.preloader { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: #f5f0f7; | ||
} | ||
|
||
.circle { | ||
overflow: hidden; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%) rotate(0deg); | ||
width: 100px; | ||
height: 100px; | ||
border: 1px solid #8e44ad; | ||
animation: rotate 4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; | ||
} | ||
|
||
.circle-inner { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
background-color: #8e44ad; | ||
height: 100%; | ||
width: 100%; | ||
transition: all 500ms ease-in-out; | ||
animation: fill-in 4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; | ||
} | ||
|
||
@keyframes rotate { | ||
0%, 10% { | ||
transform: translate(-50%, -50%) rotate(0deg); | ||
} | ||
45%, 55% { | ||
transform: translate(-50%, -50%) rotate(180deg); | ||
border-radius: 50%; | ||
} | ||
90%, 100% { | ||
transform: translate(-50%, -50%) rotate(360deg); | ||
border-radius: 0; | ||
} | ||
} | ||
|
||
@keyframes fill-in { | ||
0%, 50% { | ||
height: 0; | ||
} | ||
50% { | ||
height: 100%; | ||
} | ||
90%, 100% { | ||
height: 0; | ||
} | ||
} | ||
|