Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

up-down animation added #5151

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Frontend-Projects/up-down loading animation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<h1 style="color: deeppink;">Loading........</h1>
<div id="main"></div>
</body>
</html>
26 changes: 26 additions & 0 deletions Frontend-Projects/up-down loading animation/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
body{
width:100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;

}
#main{
border-radius: 50%;
width: 40%;
height: 40%;
animation: animate 4s linear infinite ;
background-size: 20em 20em;
background-image: repeating-conic-gradient(DeepPink 0deg, DeepPink,90deg,white 90deg ,white 180deg, DeepPink 180deg, DeepPink 270deg,white 270deg ,white 360deg);
}
@keyframes animate {
0%{
transform: rotateX(0deg);
}
100%{
transform: rotateX(360deg);
}

}