-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added modifications in include.js * loader animation * added the deleted entry * Update include.js Removed extra line --------- Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com>
- Loading branch information
1 parent
6f98cc7
commit 40f80ba
Showing
4 changed files
with
130 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,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>ZTM-Animation</title> | ||
<link rel="stylesheet" href="styles.css" /> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="box"></div> | ||
</div> | ||
|
||
<div class="loader"> | ||
<div class="dot"></div> | ||
<div class="dot"></div> | ||
<div class="dot"></div> | ||
<div class="dot"></div> | ||
</div> | ||
</body> | ||
</html> |
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,102 @@ | ||
body { | ||
margin: 0; | ||
background-color: purple; | ||
height: 100vh; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
gap: 200px; | ||
} | ||
|
||
.container { | ||
width: 300px; | ||
height: 300px; | ||
border: 2px solid white; | ||
animation: orbit 4s linear infinite; | ||
border-radius: 50%; | ||
} | ||
|
||
.box { | ||
width: 100px; | ||
height: 100px; | ||
background-color : yellow; | ||
|
||
animation-duration: 1s; | ||
|
||
animation-iteration-count: infinite; | ||
animation-direction: normal; | ||
animation-timing-function: linear; | ||
|
||
border-radius: 50%; | ||
box-shadow: 2px solid white; | ||
} | ||
|
||
|
||
.loader { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 10px; | ||
} | ||
|
||
.dot { | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 50%; | ||
background-color: white; | ||
animation: up-down 0.8s ease infinite alternate both; | ||
} | ||
|
||
.dot:nth-child(2) { | ||
animation-delay: 0.1s; | ||
} | ||
.dot:nth-child(3) { | ||
animation-delay: 0.2s; | ||
} | ||
.dot:nth-child(4) { | ||
animation-delay: 0.3s; | ||
} | ||
|
||
@keyframes up-down { | ||
from { | ||
transform: translateY(-20px); | ||
} | ||
to { | ||
transform: translateY(20px); | ||
} | ||
} | ||
|
||
@keyframes orbit { | ||
from { | ||
transform: rotate(0); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
@keyframes slide-in { | ||
0% { | ||
transform: translate(-400px); | ||
} | ||
|
||
100% { | ||
transform: translate(200px); | ||
} | ||
} | ||
|
||
@keyframes circles { | ||
0%, 100% { | ||
transform: translate(0, 0); | ||
} | ||
25% { | ||
transform: translate(200px, 0); | ||
} | ||
50% { | ||
transform: translate(200px, 200px); | ||
} | ||
75% { | ||
transform: translate(0, 200px); | ||
} | ||
} |
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