-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylei2.css
50 lines (49 loc) · 959 Bytes
/
stylei2.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
background-color: #a7d8de;
}
body{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container{
height: 30rem;
width: 25rem;
position: relative;
overflow: hidden;
box-shadow: 8px 10px 18px rgba(0, 0, 0, 0.346);
}
.container img{
position: absolute;
height: 100%;
width: 100%;
transition: all 0.5s;
transform: translateY(0);
}
.writtings{
position: absolute;
height: 25%;
width: 100%;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: rgba(23,23,23);
transform: translateY(400%);
transition: all 0.5s;
}
.container:hover .writtings{
transform: translateY(300%);
}
.container:hover img{
transform: translateY(-25%);
}
p{
background-color: rgb(23,23,23);
}