-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylei3.css
85 lines (82 loc) · 1.41 KB
/
stylei3.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
background-color: rgb(23, 23, 23);
}
body{
height:100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container{
height: 35rem;
width: 28rem;
position: relative;
overflow: hidden;
box-shadow: 8px 23px 18px rgba(34, 33, 33, 0.346);
}
.container img{
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
transition:1s;
}
.container .writtings{
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
width:80%;
bottom:0;
left: 10%;
height:10px;
background-color: crimson;
color: #fff;
transition: 0.6s;
}
h1{
font-size: 30px;
background-color: crimson;
text-align: center;
margin: 10px 0;
opacity: 0;
transition: .5s;
}
h4{
text-align: center;
padding: 10px;
background-color: crimson;
opacity: 0;
transition: .5s;
}
button{
height:40px;
width:85px;
background-color: rgb(23, 23, 23);
color: #fff;
text-align: center;
margin:10px 0;
opacity: 0;
transform: 0.5s;
}
.container:hover img{
opacity: 0;
}
.container:hover .writtings{
left:0;
height:100%;
width: 100%;
}
.container:hover h1{
opacity: 100%;
}
.container:hover h4{
opacity: 100%;
}
.container:hover button{
opacity: 100%;
}