Skip to content

Commit

Permalink
Contribute anim (#2901)
Browse files Browse the repository at this point in the history
* 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]>
ryekram and LaurelineP authored Jan 9, 2025
1 parent 798daec commit 7f213f6
Showing 3 changed files with 84 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Art/ryekram-preloader_animation/index.html
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>
4 changes: 4 additions & 0 deletions Art/ryekram-preloader_animation/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"githubHandle": "ryekram",
"artName": "preloader_animation"
}
64 changes: 64 additions & 0 deletions Art/ryekram-preloader_animation/styles.css
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;
}
}

0 comments on commit 7f213f6

Please sign in to comment.