forked from Dezenix/frontend-html-css-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
72 lines (65 loc) · 1.29 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: rgb(0, 0, 0);
display: flex;
align-items: center;
justify-content: center;
}
div {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
}
.container {
overflow: hidden;
background-color: rgb(41, 37, 37);
height: 400px;
width: 100px;
border-radius: 40px;
position: relative;
}
.container::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 100px;
width: 100px;
border-radius: 50%;
background-color: rgb(255, 255, 255);
box-shadow: inset -20px -20px 20px rgba(0, 0, 0, 0.3), 0px 420px 0 400px #6db3ed,
inset 20px 20px 20px rgba(0, 0, 0, 0.1);
animation: slider 5s ease-in-out infinite;
}
.container::after {
content: "";
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;
border-radius: 40px;
box-shadow: 40px 40px 30px rgba(0, 0, 0, 0.1), -40px -40px 30px rgba(),
inset -20px -20px 10px rgba(0, 0, 0, 0.2),
inset 20px 20px 20px rgba(0, 0, 0, 0.1);
}
@keyframes slider {
0% {
transform: translateY(350px);
filter: hue-rotate(0deg);
}
50% {
transform: translateY(0);
}
100% {
transform: translateY(350px);
filter: hue-rotate(180deg);
}
}