Skip to content

Commit f6b2dd9

Browse files
Merge pull request #447 from RAHULBAWA777/patch-82
see saw game
2 parents 3abfb1a + c24b8e7 commit f6b2dd9

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

see saw game/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
# see saw game
3+
4+
## 🚀 About Me
5+
I'm a full stack developer...you can follow me here -https://github.com/RAHULBAWA777
6+
7+
8+
## Run Locally
9+
10+
Clone the project
11+
12+
13+
Start the live server
14+
15+
16+
## Used By
17+
18+
This project is used by the following companies:
19+
20+
-https://github.com/Dezenix/frontend-html-css-js

see saw game/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>See Saw Game </title>
8+
<link rel="stylesheet" href="style.css" />
9+
</head>
10+
<body>
11+
<div class="sitting">
12+
<div class="object"></div>
13+
</div>
14+
</body>
15+
</html>

see saw game/style.css

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
body {
2+
display: flex;
3+
justify-content: center;
4+
align-items: center;
5+
height: 100vh;
6+
background: #ebd4d4;
7+
}
8+
.object {
9+
position: relative;
10+
bottom: 100px;
11+
left: calc(100% - 70px);
12+
width: 100px;
13+
height: 100px;
14+
background: #affff2;
15+
border-radius: 50%;
16+
animation: play 3s ease-in-out 1s infinite alternate;
17+
}
18+
19+
.sitting {
20+
width: 700px;
21+
height: 25px;
22+
background: silver;
23+
border-radius: 50px;
24+
transform: rotate(35deg);
25+
animation:bar 3s ease-in-out 1s infinite alternate;
26+
}
27+
@keyframes bar {
28+
from {
29+
transform: rotate(-10deg);
30+
}
31+
to {
32+
transform: rotate(10deg);
33+
}
34+
}
35+
@keyframes play {
36+
from {
37+
left: calc(100% - 70px);
38+
transform: rotate(360deg);
39+
}
40+
to {
41+
left: calc(0% - 35px);
42+
transform: rotate(0deg);
43+
}
44+
}
45+

0 commit comments

Comments
 (0)