-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (68 loc) · 1.42 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
89
90
91
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #0F2027; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #2C5364, #203A43, #0F2027); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #2C5364, #203A43, #0F2027); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.container {
height: 100vh;
padding: 50px;
}
.button {
cursor: pointer;
padding: 10px 20px;
border: none;
outline: none;
border-radius: 5px;
transition: 0.5s;
}
.button:hover {
background: cadetblue;
color: white;
transform: scale(1.5);
}
.big-box {
width: 600px;
height: 300px;
margin-top: 50px;
background: cornflowerblue;
position: relative;
transition: 1s;
}
/* .big-box:hover .little-box {
} */
.big-box:hover {
background: darkblue;
}
.little-box {
width: 100px;
height: 100px;
background: rgb(130, 84, 238);
position: absolute;
animation: move 5s infinite alternate ease-in-out;
}
@keyframes move {
0% {
top: 0;
left: 0;
}
/* 25% {
top: 0;
left: 500px;
}
50% {
top: 200px;
left: 500px;
}
75% {
top: 200px;
left: 0;
} */
100% {
left: 500px;
}
}