Skip to content

Commit 01b8085

Browse files
spin wheel (#3223)
Co-authored-by: Laureline Paris <laurelinedev@gmail.com>
1 parent 34b1b45 commit 01b8085

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Spinning Wheel Animation</title>
7+
<link rel="stylesheet" href="styles.css" />
8+
</head>
9+
<body>
10+
<div class="container">
11+
<div class="wheel"></div>
12+
</div>
13+
</body>
14+
</html>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"githubHandle": "agrawalshreyansh",
3+
"artName": "spinning_wheel"
4+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
body {
2+
background: linear-gradient(to bottom, #ffecd2, #fcb69f);
3+
overflow: hidden;
4+
margin: 0;
5+
height: 100vh;
6+
display: flex;
7+
justify-content: center;
8+
align-items: center;
9+
}
10+
11+
.container {
12+
position: relative;
13+
}
14+
15+
.wheel {
16+
width: 100px;
17+
height: 100px;
18+
border: 10px solid #ff6b6b;
19+
border-top: 10px solid #4ecdc4;
20+
border-radius: 50%;
21+
animation: spin 2s linear infinite;
22+
}
23+
24+
@keyframes spin {
25+
0% {
26+
transform: rotate(0deg);
27+
}
28+
100% {
29+
transform: rotate(360deg);
30+
}
31+
}

0 commit comments

Comments
 (0)