
HTML & 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.center{
display: flex;
justify-content: center;
align-items: center;
}
.main{
width: 100%;
height: 100vh;
background: #222831;
}
.card{
background: #f05454;
width: 350px;
height: 200px;
padding: 20px;
margin: 50px;
color: white;
transform: rotate(-4deg) skewY(-10deg) translateX(0);
box-shadow: -50px 50px 50px rgba(0,0,0,0.5);
position: relative;
transition: all .4s;
}
.card:hover{
transform: rotate(-4deg) skewY(-10deg) translateX(10px);
background: #f83b3b;
}
.card::before,
.card::after{
content: '';
position: absolute;
background: #30475e;
}
.card::before{
top: -20px;
left: -10px;
width: 100%;
height: 20px;
transform: rotate(0deg) skewX(45deg);
}
.card::after{
top: -10.1px;
left: -20px;
width: 20px;
height: 100%;
transform: rotate(0deg) skewY(45deg);
}
.btn{
width: 150px;
height: 40px;
background: #16697a;
color: white;
border: none;
cursor: pointer;
font-size: 1.1rem;
font-weight: 700;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
box-shadow: -50px 50px 50px rgba(0,0,0,0.5);
position: absolute;
top: 180px;
left: 220px;
outline: none;
transform: translateX(0);
transition: all 0.4s;
}
.btn:hover{
transform: translateX(10px);
background: #279ab1;
}
.btn::before,
.btn::after{
content: '';
position: absolute;
background: #30475e;
}
.btn::before{
top: -10px;
left: -5px;
width: 100%;
height: 10px;
transform: rotate(0deg) skewX(45deg);
}
.btn::after{
top: -5px;
left: -10px;
width: 10px;
height: 100%;
transform: rotate(0deg) skewY(45deg);
}
</style>
<div class="main center">
<div class="card">
<h3>Welcome</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing <br>elit.
Eius iusto consequatur necessitatibus quaerat<br> minus possimus
fugit reprehenderit culpa similique.</p>
<button class="btn">Read More....</button>
</div>
<div class="card">
<h3>Welcome</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing <br>elit.
Eius iusto consequatur necessitatibus quaerat<br> minus possimus
fugit reprehenderit culpa similique.</p>
<button class="btn">Read More....</button>
</div>
</div>