-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
55 lines (44 loc) · 776 Bytes
/
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
.box{
height: 100px;
width: 100px;
border: 2px solid black;
margin-top: 20%;
margin-left: 25%;
transition: 10s;
animation-name: box;
position:absolute;
animation-duration: 20s;
animation: box 20s linear ;
-webkit-animation: box 20s linear ;
left: 0;
}
.up:hover{
border: 10px solid white;
border-radius: 100px;
background-color: #48dbfb;
box-shadow: 0px 0px 100px #48dbfb;
transform: rotate(7200deg);
}
#background{
position:absolute;
background-color: white;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
z-index: -1;
transition: 3s;
}
.box:hover ~ #background{
background-color: rgb(2,2,2);
}
@keyframes box {
100% {
left:100%;
}
}
@-webkit-keyframes box {
100% {
left:100%;
}
}