Skip to content

Commit b210db2

Browse files
authored
📦 Updates
1 parent bc04e42 commit b210db2

File tree

3 files changed

+92
-2
lines changed

3 files changed

+92
-2
lines changed

‎assets/css/styles/global.css‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
***************
2929
*/
3030
:root {
31-
/*--background-color-1: aliceblue;
32-
--background-color-2: #ededed;*/
3331
--background-color-1: #041f36;
3432
--background-color-2: #0a394d;
3533
--background-color-3: #f8f8ff; /* footer */
@@ -44,6 +42,9 @@
4442
--font-1: Roboto Mono;
4543
--font-2: Roboto;
4644
--font-3: sans-serif;
45+
46+
--skills-card-height: 200px;
47+
--skills-card-width: calc(var(--skills-card-height) / 1.5);
4748
}
4849

4950
/*

‎assets/css/styles/sections.css‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@
8080
.skillsSubContainer .skillsStarsContainer img { width: 50px; height: auto; }
8181
.skillsSubContainer .skillsStarsContainer .inactive { -webkit-filter: grayscale(100%); filter: grayscale(100%); }
8282

83+
#skillsCardsContainer {
84+
display: flex;
85+
align-items: center;
86+
justify-content: space-around;
87+
flex-wrap: wrap;
88+
row-gap: var(--skills-card-height);
89+
}
90+
8391
/*
8492
************************
8593
** Projects Container **
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
.skillsCard {
2+
width: var(--skills-card-height);
3+
height: var(--skills-card-width);
4+
position: relative;
5+
display: flex;
6+
justify-content: center;
7+
align-items: flex-end;
8+
padding: 0 36px;
9+
perspective: 2500px;
10+
margin: 0 50px;
11+
}
12+
13+
.cover-image {
14+
width: 100%;
15+
height: 100%;
16+
object-fit: cover;
17+
}
18+
19+
.wrapper {
20+
transition: all 0.5s;
21+
position: absolute;
22+
width: 100%;
23+
z-index: -1;
24+
}
25+
26+
.skillsCard:hover .wrapper {
27+
transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
28+
box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
29+
-webkit-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
30+
-moz-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
31+
}
32+
33+
.wrapper::before, .wrapper::after {
34+
content: "";
35+
opacity: 0;
36+
width: 100%;
37+
height: 80px;
38+
transition: all 0.5s;
39+
position: absolute;
40+
left: 0;
41+
}
42+
43+
.wrapper::before {
44+
top: 0;
45+
height: 100%;
46+
background-image: linear-gradient(
47+
to top,
48+
transparent 46%,
49+
rgba(12, 13, 19, 0.5) 68%,
50+
rgba(12, 13, 19) 97%
51+
);
52+
}
53+
54+
.wrapper::after {
55+
bottom: 0;
56+
opacity: 1;
57+
background-image: linear-gradient(
58+
to bottom,
59+
transparent 46%,
60+
rgba(12, 13, 19, 0.5) 68%,
61+
rgba(12, 13, 19) 97%
62+
);
63+
}
64+
65+
.skillsCard:hover .wrapper::before, .wrapper::after { opacity: 1; }
66+
.skillsCard:hover .wrapper::after { height: 120px; }
67+
.skillsTitle { width: 100%; transition: transform 0.5s; }
68+
.skillsCard:hover .skillsTitle { transform: translate3d(0%, -50px, 100px); }
69+
70+
.character {
71+
width: 100%;
72+
opacity: 0;
73+
transition: all 0.5s;
74+
position: absolute;
75+
z-index: -1;
76+
}
77+
78+
.skillsCard:hover .character {
79+
opacity: 1;
80+
transform: translate3d(0%, -30%, 100px);
81+
}

0 commit comments

Comments
 (0)