Skip to content
Closed
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
15 changes: 15 additions & 0 deletions Art/ornitcg-rolling-egg/index.html
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" href="styles.css">
<title>Document</title>
</head>
<body>
<div class="egg">

</div>

</body>
</html>
4 changes: 4 additions & 0 deletions Art/ornitcg-rolling-egg/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "rolling-egg",
"githubHandle": "ornitcg"
}
49 changes: 49 additions & 0 deletions Art/ornitcg-rolling-egg/styles.css
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect style sheet name

The project requires a specific name for this file, you can double check either the check list, or the README.md :)

  • Rename this file according to the requirements
  • Adjust the html link attribute "href" accordingly

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: rgb(240, 240, 240);

}
.egg {
display: block;
width: 126px;
height: 180px;
/* background-color: rgb(156, 121, 152); */
background-image: linear-gradient(45deg, rgb(199, 78, 185), rgb(92, 209, 211));
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;

animation-name: rolling-egg;
animation-duration: 4s;
animation-timing-function: linear;
animation-delay: 1s;
animation-iteration-count: infinite;
/* make the animation loop from the last point */


}

@keyframes rolling-egg {
/* make it loop */


0% {
transform: translateX(0) rotate(0deg);
}
25% {
transform: translateX(300px) rotate(180deg);
}
50% {
transform: translateX(0px) rotate(-90deg);
}
75% {
transform: translateX(-300px) rotate(-360deg);
}
100% {
transform: translateX(0px) rotate(0deg);
}



}