Skip to content

Commit 3c63f9e

Browse files
committed
dark cards , css animation on hover
1 parent ce857f9 commit 3c63f9e

File tree

2 files changed

+37
-24
lines changed

2 files changed

+37
-24
lines changed

index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<body>
1919
<div class="cards">
2020
<div class="wrapper">
21-
<div data-tilt class="box" id="side">
21+
<div class="box" id="side" style="transform-style: preserve-3d">
2222
<h2>
2323
Stuff I'm learning <br>
2424
</h2><br>
@@ -33,21 +33,21 @@ <h2>
3333
<ul><span>C </span></ul>
3434
</ul>
3535
</p>
36-
<a href="https://www.linkedin.com/in/umgbhalla/" target="_blank">LinkedIn</a>
36+
<a class = "atag" href="https://www.linkedin.com/in/umgbhalla/" target="_blank">LinkedIn</a>
3737
</div>
3838
<div data-tilt class="box" id="center">
39-
<div class="img-area"><img src="images/image2.jpg" alt="profile photo"></div>
39+
<div class="img-area"><img src="images/image2.jpg" alt="profile photo"></div>
4040
<h2>
4141
<br>
4242
<b> Hi ! </b>
4343
</h2>
44-
<p>
44+
<p >
4545
I'm Umang Bhalla, currently a first year student at IIIT-Bhopal pursuing
4646
a B-tech degree in Information Technology.<br> <b> Find me on </b>
4747
<br>
48-
<a href="https://twitter.com/umgbhalla" target="_blank">Twitter</a>
48+
<a class = "atag" href="https://twitter.com/umgbhalla" target="_blank">Twitter</a>
4949
</div>
50-
<div data-tilt class="box" id="side">
50+
<div class="box" id="side">
5151
<h2>
5252
Stuff I find interesting <br>
5353
</h2><br>
@@ -66,7 +66,7 @@ <h2>
6666

6767
</ul>
6868
</p>
69-
<a href="https://github.com/umgbhalla" target="_blank">Github</a>
69+
<a class = "atag" href="https://github.com/umgbhalla" target="_blank">Github</a>
7070

7171
</div>
7272
</div>
@@ -83,10 +83,10 @@ <h2>
8383
$(document).ready(function () {
8484
$('.box').tilt({
8585
scale: 1.06,
86-
perspective: 2000,
87-
speed: 2000,
86+
perspective: 1700,
87+
speed: 1500,
8888
glare: true,
89-
maxGlare: .5
89+
maxGlare: .3
9090
})
9191
}
9292
)

styles/style.css

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,19 @@
3636
color: #fff;
3737
padding: 5%;
3838
text-align: center;
39-
background: rgba(255, 255, 255, 0.171);
39+
/* background: rgba(20, 20, 20, 0.383); */
40+
background: linear-gradient(150deg, #24232394 10%, #1d141d11 100%, #201b202f 100%);
4041
backdrop-filter: blur(30px);
41-
/* filter: blur(30px); */
4242
-webkit-backdrop-filter: blur(10px);
43+
/* filter: blur(3px); */
4344
/* border: 2px solid rgba(255, 255, 255, 0.253); */
45+
46+
box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034),
47+
0 6.7px 5.3px rgba(0, 0, 0, 0.048),
48+
0 12.5px 10px rgba(0, 0, 0, 0.06),
49+
0 22.3px 17.9px rgba(0, 0, 0, 0.072),
50+
0 41.8px 33.4px rgba(0, 0, 0, 0.086),
51+
0 100px 80px rgba(0, 0, 0, 0.12);
4452
}
4553

4654
.box h2 {
@@ -70,15 +78,25 @@
7078
font-size: 16px;
7179
border-radius: 50px;
7280
color: rgba(255, 255, 255, 0.877);
73-
/* border: 1px solid rgba(255, 255, 255, 0.253); */
81+
/* border: 1px solid rgba(102, 96, 96, 0.726); */
82+
7483
}
7584

7685
#center {
77-
margin-top:-90px;
86+
margin-top: -90px;
7887
height: 500px;
88+
filter: blur(0px);
89+
transform-style: preserve-3d;
7990
}
8091

81-
/* .wrapper .box:before {
92+
/* #side:hover {
93+
transform: translateY(16%);
94+
filter: blur(0px);
95+
transition-duration: 100ms;
96+
transition: 500ms -webkit-filter linear;
97+
} */
98+
99+
.wrapper .box:before {
82100
content: "";
83101
background: rgba(255, 255, 255, 0.226);
84102
width: 30%;
@@ -88,12 +106,10 @@
88106
transform: skew(30deg);
89107
position: absolute;
90108
animation-direction: left;
91-
transition-duration: 500ms;
92-
} */
93-
/*
94-
#center {
95-
transform: translateY(-3%);
96-
} */
109+
transition-duration: 700ms;
110+
filter:blur(10px);
111+
}
112+
97113

98114
/* #center:hover {
99115
transform: translateY(-6%);
@@ -118,8 +134,5 @@
118134
#side {
119135
transform: translateY(20%);
120136
} */
121-
/* #side:hover {
122-
transform: translateY(16%);
123-
} */
124137
/*
125138
testing again */

0 commit comments

Comments
 (0)