-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflex2.css
More file actions
55 lines (54 loc) · 847 Bytes
/
Copy pathflex2.css
File metadata and controls
55 lines (54 loc) · 847 Bytes
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
*{
margin:
0 ;
padding: 0;
box-sizing: border-box;
}
body,html{
height: 100%;
width: 100%;
background-color: rgb(133, 133, 211);
}
#main{
display: flex;
flex-wrap: nowrap;
}
.card{
height: 300px;
width: 250px;
background-color: rgb(133, 133, 211);
border-radius: 10px;
margin: 20px;
position: relative;
overflow:hidden ;
flex-shrink: 0;
}
.card img{
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 10px;
}
.bottom{
background: linear-gradient(transparent, black
);
height: 40%;
width: 100%;
bottom: -40%;
position: absolute;
transition: all ease 0.6s;
}
.card:hover .bottom{
bottom: 0%;
}
.card:hover img{
rotate:6deg;
transition: all ease 0.7s;
}
.bottom h2{
color:aliceblue;
font-size: 20px;
margin-left: 9px;
font-style: italic;
text-transform: capitalize;
}