-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (77 loc) · 1.64 KB
/
style.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
87
88
:root {
--time-duration: 9s;
}
body {
margin: 0px;
background-color: black
;
/* background-image: linear-gradient(red, yellow, green); */
}
body::-webkit-scrollbar {
overflow: hidden;
display: none;
}
h3 {
margin: 0px;
}
#rod-one {
position: absolute;
top: 0%;
background-color: blue;
border: 2px solid black;
width: 20vw;
box-sizing: border-box;
border-radius: 20px;
height: 5vh;
padding: 5px;
text-align: center;
}
#rod-two {
position: absolute;
bottom: 0%;
background-color: crimson;
border-radius: 20px;
border: 2px solid black;
width: 20vw;
box-sizing: border-box;
height: 5vh;
padding: 5px;
text-align: center;
}
#ball {
height: 30px;
width: 30px;
border-radius: 50%;
position: fixed;
top: calc(50% - 15px);
left: calc(50% - 15px);
}
.ball_effect {
height: 100%;
width: 100%;
border-radius: 100px;
animation: spinBall 0.1s linear infinite;
box-shadow: inset 0 0 18px #fff,
inset 6px 0 18px violet,
inset -6px 0 18px #0ff,
inset 6px 0 30px violet,
inset -6px 0 30px #0ff,
0 0 18px #fff, -4px 0 18px
violet, 4px 0 18px #0ff;
}
.animate-top-right {
transition: transform linear var(--time-duration);
transform: translateX(2000px) translateY(-2000px);
}
.animate-bottom-right {
transition: transform linear var(--time-duration);
transform: translateX(2000px) translateY(2000px);
}
.animate-top-left {
transition: transform linear var(--time-duration);
transform: translateX(-2000px) translateY(-2000px);
}
.animate-bottom-left {
transition: transform linear var(--time-duration);
transform: translateX(-2000px) translateY(2000px);
}