-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
70 lines (69 loc) · 1.3 KB
/
style.css
File metadata and controls
70 lines (69 loc) · 1.3 KB
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
@charset "utf-8";
/* CSS Document */
@import url('https://fonts.googleapis.com/css?family=Boogaloo');
*, *::after, *::before{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Boogaloo', cursive;
}
.container{
width: 100%;
height: auto;
padding: 20px;
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.box{
width: 270px;
height: 250px;
position: relative;
background-color: rgba(255,102,104,1.00);
margin: 10px auto;
cursor: pointer;
}
.box img{
max-width: 100%;
height: 100%;
object-fit: cover;
}
.box::before, .box::after{
content: "";
position: absolute;
top: 15px;
left: 15px;
right: 15px;
bottom: 15px;
transition: all 0.5s ease-out;
}
.box::before{
border-top: 2px dashed white;
border-bottom: 2px dashed white;
transform: scale(0, 1);
}
.box::after{
border-left: 2px dashed white;
border-right: 2px dashed white;
transform: scale(1, 0);
}
.box:hover::before{
background-color: rgba(0,0,0,0.4);
transform: scale(1.05, 1);
}
.box:hover::after{
transform: scale(1, 1.05);
}
.con-text{
position: absolute;
color: white;
bottom: 0;
width: 270px;
height: 250px;
padding: 75px 25px;
display: none;
text-align: center;
}
.box:hover .con-text{
display: block;
}