-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle.css
More file actions
87 lines (84 loc) · 1.66 KB
/
style.css
File metadata and controls
87 lines (84 loc) · 1.66 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body
{
min-height: 100vh;
background: #ac53ec;
}
h1{
font-size: xx-large;
font-size: 150px;
font-family: monospace;
color: #fff;
position: absolute;
top: 260px;
left: 300px;
}
.card
{
position: relative;
width: 300px;
height: 400px;
background: #ac53ec;
border-radius: 40px;
box-shadow: inset 5px 5px 15px rgba(0,0,0,0.15),
inset -5px -5px 15px rgba(255,255,255,0.15),
5px 5px 15px rgba(0,0,0,0.15),
-5px -5px 15px rgba(255,255,255,0.15);
}
.card::before{
content: '';
position: absolute;
inset: 5px;
background: #fff;
border-radius: 35px;
transition: 0.5s;
}
.card:hover::before{
transform: translate(40px,-40px);
}
.one .card{
position: absolute;
top: 0;
left: -50px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.two .card{
position: absolute;
bottom: 0;
right: 0;
-webkit-transform: rotate(-35deg);
-moz-transform: rotate(-35deg);
-o-transform: rotate(-35deg);
transform: rotate(-35deg);
}
.three .card{
position: absolute;
bottom: -150px;
left : 150px;
}
.four .card{
position: absolute;
top: -150px;
right : 300px;
-webkit-transform: rotate(55deg);
-moz-transform: rotate(55deg);
-o-transform: rotate(55deg);
transform: rotate(55deg);
}
.five .card{
position: absolute;
top: 450px;
right : 450px;
-webkit-transform: rotate(-18deg);
-moz-transform: rotate(-18deg);
-o-transform: rotate(-18-deg);
transform: rotate(-18deg);
}