-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
86 lines (79 loc) · 1.89 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* Code is written by CHIRAG RAJ */
body::-webkit-scrollbar {
overflow: hidden;
display: none;
}
body {
margin: 0px;
}
#container {
background-image: url("https://media.istockphoto.com/id/1337108175/vector/dark-gray-3d-hexagonal-technology-vector-abstract-background.jpg?s=612x612&w=0&k=20&c=RYHI2M_KPCMORuSJKZ_klHmWURsZpgrnmfyDnvBNM1Y="),
url("src/img.jpg");
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
align-items: center;
}
#rod1 {
height: 5vh;
width: 20vw;
min-width: 180px;
/* background-color: #a41ec6; */
background-image: linear-gradient(to right, #a41ec6, #307aa5);
border-radius: 25px;
position: absolute;
top: 0px;
border: 3px solid black;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
#ball {
height: 70px;
width: 70px;
border-radius: 50%;
/* background-color: #307aa5; */
background-image: radial-gradient(#a41ec6, rgb(30, 57, 115));
position: absolute;
border: 1px solid black;
top: 50%;
margin-top: -35px;
}
#rod2 {
height: 5vh;
width: 20vw;
min-width: 180px;
/* background-color: #a41ec6; */
background-image: linear-gradient(to right, #307aa5, #a41ec6);
border-radius: 25px;
position: absolute;
bottom: 0px;
border: 3px solid black;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
p {
font-size: 1.3rem;
font-weight: bold;
}
/* ball moving transition code */
.animate-top-right {
transition: transform linear 8s;
transform: translateX(2000px) translateY(-2000px);
}
.animate-bottom-right {
transition: transform linear 8s;
transform: translateX(2000px) translateY(2000px);
}
.animate-top-left {
transition: transform linear 8s;
transform: translateX(-2000px) translateY(-2000px);
}
.animate-bottom-left {
transition: transform linear 8s;
transform: translateX(-2000px) translateY(2000px);
}