forked from Anushkabh/krishiconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
whykrishiconnect.css
109 lines (100 loc) · 1.73 KB
/
whykrishiconnect.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
92
93
94
95
96
97
98
99
100
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body
{
min-height: 100vh;
}
.containerrr
{
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 100px 50px;
padding: 100px 50px;
}
.containerrr .cardd
{
position: relative;
display: flex;
justify-content: center;
align-items: flex-start;
width: 350px;
height: 300px;
background: #fff;
border-radius: 20px;
box-shadow: 0 35px 80px rgba(0,0,0,0.15);
transition: 0.5s;
}
.containerrr .cardd:hover
{
height: 400px;
}
.containerrr .cardd .imgbx
{
position: absolute;
top: 20px;
width: 300px;
height: 220px;
background: #333;
border-radius: 12px;
transition: 0.5s;
overflow: hidden;
}
.containerrr .cardd:hover .imgbx
{
top: -100px;
scale: 0.75;
box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}
.containerrr .cardd .imgbx img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.containerrr .cardd .content
{
position: absolute;
top: 252px;
width: 100%;
padding: 0 30px;
height: 35px;
overflow: hidden;
text-align: center;
transition: 0.5s;
}
.containerrr .cardd:hover .content
{
top: 150px;
height: 250px;
}
.containerrr .cardd .content h2
{
font-size: 1.5em;
font-weight: 700;
color: var(--clr);
}
.containerrr .cardd .content p
{
color: #233;
}
.containerrr .cardd .content a
{
position: relative;
top: 15px;
display: inline-block;
padding: 12px 25px;
background: var(--clr);
color: #fff;
font-weight: 500;
text-decoration: 8px;
border-radius: 8px;
}