-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathservices.css
More file actions
91 lines (87 loc) · 1.42 KB
/
Copy pathservices.css
File metadata and controls
91 lines (87 loc) · 1.42 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
@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,500,600,700,800,900&display=swap');
*
{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}
body
{
display:flex;
justify-content:center;
align-items:center;
min-height:120vh;
background:#ff9999;
}
.container
{
width:1100px;
display:flex;
justify-content: space-between;
flex-wrap:wrap;
}
.container .box
{
position:relative;
width:300px;
background: #fff;
padding: 100px 10px 60px;
box-shadow: 0 15px 45px rgba(0,0,0,.2);
}
.container .box:before
{
content: '';
position: absolute;
top: 0;
left:0;
width:100%;
height:100%;
background:#00ffbf;
transform:scaleY(0);
transform-origin: top;
transition: transform 0.5s;
}
.container .box:hover:before
{
transform:scaleY(1);
transform-origin:bottom;
transition:transform 0.5s;
}
.container .box h2
{
position:absolute;
left: 40px;
top: 60px;
font-size:4em;
font-weight:800;
z-index:1;
opacity:0.5;
transition:0.5s;
}
.container .box:hover h2
{
opacity:1;
color: #fff;
transform: translateY(-50px);
}
.container .box:hover h3
{
position:relative;
font-size:1.5em;
z-index:2;
color: #333;
transition: 0.5s;
}
.container .box:p
{
position:relative;
z-index:2;
color: #555;
transition:0.5s;
}
.container .box:hover h3,
.container .box:hover p
{
color:#fff;
}