-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathstyle.css
103 lines (90 loc) · 1.63 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
102
103
.jumbotron {
padding-top: 6rem;
background-color: #e2edff;
}
#projects {
background-color: #e2edff;
}
section {
padding-top: 5rem;
}
/* My Keyboard Section */
.keyboard-box {
position: relative;
background-color: #0c6efd;
border-radius: 10px;
height: 500px;
transform-style: preserve-3d;
}
.keyboard-box::before {
content: 'MY';
position: absolute;
color: #fff;
font-size: 6em;
font-weight: bold;
font-style: italic;
top: 30px;
left: 50%;
transform: translate(-50%, 0);
opacity: 0;
transition: 0.5s;
}
.keyboard-box:hover::before {
opacity: 0.2;
}
.keyboard-box::after {
content: 'KEYBOARD';
position: absolute;
color: #fff;
font-size: 4.3em;
font-weight: bold;
font-style: italic;
top: 350px;
left: 50%;
transform: translate(-50%, 0);
opacity: 0;
transition: 0.5s;
}
.keyboard-box:hover::after {
opacity: 0.2;
}
.keyboard-name {
position: absolute;
top: 0;
width: 100%;
color: #fff;
text-align: center;
font-size: 2em;
opacity: 0;
transform: translate3d(0, 0, 50px);
transition: 0.5s;
}
.keyboard-box:hover .keyboard-name {
top: 20px;
opacity: 1;
}
.keyboard-detail-button {
position: absolute;
bottom: 0;
left: 50%;
transform: translate3d(-50%, 0, 100px);
opacity: 0;
transition: 0.5s;
z-index: 3;
}
.keyboard-box:hover .keyboard-detail-button {
opacity: 1;
bottom: 20px;
}
.keyboard-img {
position: absolute;
top: 52%;
left: 50%;
transform: translate3d(-50%, -52%, 80px);
max-width: 350px;
transition: 0.5s;
z-index: 2;
}
.keyboard-box:hover .keyboard-img {
transform: translate3d(-50%, -52%, 100px) rotate(5deg) scale(1.2);
}