-
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.
- Loading branch information
Showing
4 changed files
with
87 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 lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
<title>Mr.A's Animation</title> | ||
</head> | ||
<body> | ||
<div class="animation-container first"></div> | ||
<div class="animation-container second"></div> | ||
<div class="animation-container third"></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,65 @@ | ||
|
||
body { | ||
margin: 0; | ||
overflow: hidden; | ||
background-color: #000; | ||
} | ||
|
||
.first { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
width: 200px; | ||
height: 200px; | ||
background-color: #3498db; | ||
border-radius: 50%; | ||
animation: spin 5s linear infinite, color-change 10s alternate infinite; | ||
width: 150%; | ||
} | ||
.second { | ||
position: absolute; | ||
top: 50%; | ||
left: 25%; | ||
transform: translate(-50%, -50%); | ||
width: 200px; | ||
height: 200px; | ||
background-color: #3498db; | ||
border-radius: 50%; | ||
animation: spin 10s linear infinite, color-change 10s alternate infinite; | ||
|
||
width: 150%; | ||
} | ||
.third { | ||
position: absolute; | ||
top: 50%; | ||
left: 75%; | ||
transform: translate(-50%, -50%); | ||
width: 200px; | ||
height: 200px; | ||
background-color: #3498db; | ||
border-radius: 50%; | ||
animation: spin 10s infinite, color-change 10s alternate infinite; | ||
width: 150%; | ||
} | ||
|
||
@keyframes spin { | ||
0% { | ||
transform: translate(-50%, -50%) rotate(0deg); | ||
} | ||
100% { | ||
transform: translate(-50%, -50%) rotate(360deg); | ||
} | ||
} | ||
|
||
@keyframes color-change { | ||
0% { | ||
background-color: #3498db; | ||
} | ||
50% { | ||
background-color: #e74c3c; | ||
} | ||
100% { | ||
background-color: #3498db; | ||
} | ||
} |
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