-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hacktoberfest2024 - eyes animation (#2739)
* rotating squares animation * move eyes animation * removed commented lines --------- Co-authored-by: Laureline Paris <32878345+LaurelineP@users.noreply.github.com>
- Loading branch information
1 parent
b031d9e
commit 618af39
Showing
3 changed files
with
115 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,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="styles.css"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
|
||
<div class="eye"> | ||
|
||
<div class="pupil"> | ||
<div class="shine"> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="eye"> | ||
|
||
<div class="pupil"> | ||
<div class="shine"> | ||
|
||
</div> | ||
</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,4 @@ | ||
{ | ||
"artName": "blink", | ||
"githubHandle": "ornitcg" | ||
} |
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,78 @@ | ||
body { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
margin: 0; | ||
background-color: black; | ||
} | ||
|
||
|
||
.eye { | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin: 60px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 300px; | ||
width: 300px; | ||
background-color: white; | ||
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; | ||
|
||
} | ||
|
||
|
||
.pupil{ | ||
display: flex; | ||
align-items: center; | ||
margin-top: 50px; | ||
margin-left: 0px; | ||
height: 150px; | ||
width: 150px; | ||
background-color: black; | ||
border-radius: 50%; | ||
position: relative; | ||
animation: lookdirection 5s infinite; | ||
|
||
|
||
} | ||
|
||
.shine { | ||
height: 50px; | ||
width: 50px; | ||
background-color: white; | ||
border-radius: 50%; | ||
position: relative; | ||
animation: moveshine 5s infinite; | ||
} | ||
|
||
|
||
@keyframes lookdirection{ | ||
0% { | ||
left: -20%; | ||
} | ||
50% { | ||
left: 30%; | ||
} | ||
100% { | ||
left: -20%; | ||
} | ||
} | ||
|
||
|
||
@keyframes moveshine{ | ||
0% { | ||
left: 20%; | ||
} | ||
50% { | ||
left: 30%; | ||
} | ||
100% { | ||
left: 0%; | ||
} | ||
} | ||
|
||
|