-
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.
* Create ring.html "HTML File For Ring Animation" * Create styles.css "CSS File For Ring Animation" * Add Gif file * Update include.js
- Loading branch information
1 parent
449ef54
commit 1751f7c
Showing
4 changed files
with
88 additions
and
0 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,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="styles.css"> | ||
</head> | ||
<body> | ||
<div class="ring-logo"> | ||
<div class="ring blue"></div> | ||
<div class="ring yellow"></div> | ||
<div class="ring black"></div> | ||
<div class="ring green"></div> | ||
<div class="ring red"></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,66 @@ | ||
body { | ||
background-color: rgba(88, 4, 16, 0.858); | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-attachment: fixed; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
.ring-logo | ||
{ | ||
display: flex; | ||
} | ||
.ring { | ||
width: 100px; | ||
height: 100px; | ||
background-color: transparent; | ||
border: 15px dashed; | ||
border-radius: 50%; | ||
position: relative; | ||
animation: fallAndRotate 4s alternate-reverse infinite; | ||
margin: 0 -20px; | ||
transform-origin: center bottom; | ||
} | ||
|
||
.blue { | ||
border-color: blue; | ||
animation-delay: 0s; | ||
transform: translateX(-100px) translateY(-100px); | ||
} | ||
|
||
.yellow { | ||
border-color: yellow; | ||
animation-delay: 0s; | ||
transform: translateX(100px) translateY(-100px); | ||
} | ||
|
||
.black { | ||
border-color: black; | ||
animation-delay: 0s; | ||
transform: translateY(-100px); | ||
} | ||
|
||
.green { | ||
border-color: green; | ||
animation-delay: 0s; | ||
transform: translateY(100px); | ||
} | ||
|
||
.red { | ||
border-color: red; | ||
animation-delay: 0s; | ||
} | ||
|
||
@keyframes fallAndRotate { | ||
0% { | ||
transform: translateY(0) rotate(10deg); | ||
} | ||
100% { | ||
transform: translateY(250px) rotate(360deg); | ||
} | ||
} |
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