-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathService-box-hover.css
More file actions
118 lines (102 loc) · 2.33 KB
/
Service-box-hover.css
File metadata and controls
118 lines (102 loc) · 2.33 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#Service-box-hover {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Poppins', sans-serif;
}
.container-service {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.container-service .box {
position: relative;
width: 350px;
padding: 40px;
background: #fff;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
border-radius: 4px;
margin: 20px;
box-sizing: border-box;
overflow: hidden;
text-align: center;
}
.container-service .box:before {
content: '';
width: 50%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(255, 255, 255, 0.2);
z-index: 2;
pointer-events: none;
}
.container-service .box .icon {
position: relative;
width: 80px;
height: 80px;
color: #fff;
background: #000;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
border-radius: 50%;
font-size: 40px;
font-weight: 700;
transition: 1s;
}
.container-service .box:nth-child(1) .icon {
box-shadow: 0 0 0 #e91e63;
background: #e91e63;
}
.container-service .box:nth-child(1):hover .icon {
box-shadow: 0 0 0 400px #e91e63;
}
.container-service .box:nth-child(2) .icon {
box-shadow: 0 0 0 #23e629;
background: #23e629;
}
.container-service .box:nth-child(2):hover .icon {
box-shadow: 0 0 0 400px #23e629;
}
.container-service .box:nth-child(3) .icon {
box-shadow: 0 0 0 #2196f3;
background: #2196f3;
}
.container-service .box:nth-child(3):hover .icon {
box-shadow: 0 0 0 400px #2196f3;
}
.container-service .box .content {
position: relative;
z-index: 1;
transition: 0.5s;
}
.container-service .box:hover .content {
color: #fff;
}
.container-service .box .content h3 {
font-size: 20px;
margin: 10px 0;
padding: 0;
}
.container-service .box .content p {
margin: 0;
padding: 0;
}
.container-service .box .content a {
display: inline-block;
padding: 10px 20px;
background: #fff;
border-radius: 4px;
text-decoration: none;
color: #000;
font-weight: 500;
margin-top: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}