Skip to content

Commit

Permalink
Revert "Revert "first moving Animation (#2814)" (#2815)" (#2817)
Browse files Browse the repository at this point in the history
This reverts commit 10ba6d0.
  • Loading branch information
LaurelineP authored Oct 23, 2024
1 parent 2402fb4 commit 1476098
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Art/lukas2485-movingAround/index.html
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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>

<body>

<div class="box">
<div id="bubble"></div>
<div id="line"></div>
</div>

</body>

</html>
4 changes: 4 additions & 0 deletions Art/lukas2485-movingAround/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"artName": "Moving Around",
"githubHandle": "lukas2485"
}
58 changes: 58 additions & 0 deletions Art/lukas2485-movingAround/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
.box {
width: 500px;
height: 300px;
background-color: black;
padding: 15px;
}

#bubble {
height: 100px;
width: 100px;
border-radius: 50%;
background-color: lightblue;
animation:
pulse 2s ease infinite alternate,
nudge 6s linear infinite alternate;
}

#line {
height: 100%;
width: 5px;
background-color: lightblue;
animation:
nudge 6s linear infinite alternate,
rotate 4s ease infinite;
}

@keyframes rotate {
50% {
transform: rotate(0);
}

80% {
transform: rotate(-70deg);
}
}


@keyframes pulse {
0%, 100% {
background-color: red;
}
50% {
background-color: orange;
}
}

@keyframes nudge {

50% {
transform: translate(320px, 0);
}

100% {
transform: translate(-30px, 0);
}
}


0 comments on commit 1476098

Please sign in to comment.