-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
86 lines (79 loc) · 1.6 KB
/
styles.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
/*Import Poppins*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
body{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-family: 'Poppins' , sans-serif;
background: plum;
}
.card{
position: relative;
width: 300px;
height: 200px;
border-radius: 10px;
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
transition: 0.3s;
padding: 30px 50px;
background: #fff;
cursor: pointer;
}
.card:hover{
height: 400px;
}
.imgBox{
position: relative;
width: 100%;
height: 100%;
transform: translateY(-80px);
z-index: 99;
}
img{
width: 100%;
border-radius: 10px;
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
}
.content{
padding: 10px 20px;
text-align: center;
transform: translateY(-450px);
opacity: 0;
transition: 0.3s;
}
.card:hover > .content{
opacity: 1;
transform: translateY(-300px);
}
.container .btn{
border: 1px solid lightcoral;
background: none;
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
margin: 10px;
transition: 0.8s;
}
.container .btn1 a{
color: lightcoral;
}
.container .btn1:hover a{
color: #fff;
}
.container .btn::before{
content: "";
position: absolute;
left: 0;
width: 100%;
height: 0%;
background: lightcoral;
z-index: -1;
transition: 0.8s;
}
.container .btn1::before{
top: 0;
border-radius: 0 0 50% 50%;
}
.container .btn1:hover::before{
height: 100%;
}