-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
101 lines (87 loc) · 1.71 KB
/
style.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
101
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@800;900&family=Poppins:wght@400&family=Roboto:wght@500;700;900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
width: 100vw;
display: flex;
align-items: center;
justify-content: space-around;
overflow: hidden;
flex-wrap: wrap;
flex-direction: row;
background: #111;
}
img {
width: 300px;
height: 150px;
}
.container {
position: relative;
margin-top: 250px;
max-width: 300px;
transform: skewY(-20deg);
}
.container .imgBx {
position: relative;
width: 100%;
height: 180px;
transform-origin: bottom;
transform: skewX(45deg);
}
.container .imgBx img {
position: absolute;
top: 0;
left: 0;
/* filter: grayscale(1); */
max-width: 100%;
transition: 0.5s;
}
.container .imgBx:hover img:nth-child(3) {
transform: translate(100px, -100px);
}
.container .imgBx:hover img:nth-child(2) {
transform: translate(50px, -50px);
opacity: 0.5;
}
.container .imgBx:hover img:nth-child(1) {
transform: translate(0px, 0px);
opacity: 0.1;
}
.container h2 {
position: relative;
color: #fff;
font-size: 2em;
}
.container .skew {
width: 700px;
transform-origin: top;
transform: skewX(45deg);
}
.container .skew p {
color: #fff;
font-size: 1em;
width: 45%;
}
.container .skew a {
position: relative;
padding: 10px 20px;
display: inline-block;
background: transparent;
color: #fff;
transform-origin: top;
margin-top: 20px;
border: 2px solid #fff;
transform: skewX(-45deg);
text-decoration: none;
letter-spacing: 2px;
font-size: 14px;
transition: 0.5s;
}
.container .skew a:hover {
background: #fff;
color: #000;
}