Skip to content

Commit db94c65

Browse files
committed
glass cards update
1 parent 5649a1c commit db94c65

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

Javascript-Library/glassCard.css

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');
1+
@import url('https://fonts.googleapis.com/css?family=Jura:200,300,400,500,600,700,800,900&display=swap');
22
*
33
{
44
margin: 0;
55
padding: 0;
66
box-sizing: border-box;
7-
font-family: 'Poppins', sans-serif;
7+
font-family: 'Jura', sans-serif;
88
}
99
body
1010
{
@@ -49,19 +49,21 @@ body::after
4949
.container .card
5050
{
5151
position: relative;
52-
width: 200px;
53-
height: 400px;
54-
margin: 30px;
52+
width: 225px;
53+
height: 375px;
54+
margin: 20px;
5555
box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
5656
border-radius: 15px;
57-
background: rgba(255, 255, 255, 0.1);
57+
background: rgba(255, 255, 255, 0.08);
5858
overflow: hidden;
5959
display: flex;
6060
justify-content: center;
6161
align-items: center;
62-
border-top: 1px solid rgba(255, 255, 255, 0.5);
63-
border-left: 1px solid rgba(255, 255, 255, 0.5);
64-
backdrop-filter: blur(5px);
62+
border-top: 1px solid rgba(255, 255, 255, 0.45);
63+
border-left: 1px solid rgba(255, 255, 255, 0.45);
64+
backdrop-filter: blur(14px);
65+
transform-style: preserve-3d;
66+
transform: perspective(1000px);
6567
}
6668
.container .card .content
6769
{
@@ -82,20 +84,24 @@ body::after
8284
top: -80%;
8385
right: 30px;
8486
font-size: 8em;
85-
color: rgba(255, 255, 255, 0.05);
87+
color: rgba(255, 255, 255, 0.8);
8688
pointer-events: none;
89+
transform: translateZ(200px)
8790
}
8891
.container .card .content h3
8992
{
9093
font-size: 1.8em;
91-
color: #fff;
94+
color: rgba(255, 255, 255, 0.1);
9295
z-index: 1;
96+
transform: translateZ(1000px)
9397
}
9498
.container .card .content p
9599
{
96100
font-size: 1em;
97101
color: #fff;
98102
font-weight: 300;
103+
transform: translateZ(80px)
104+
99105
}
100106
.container .card .content a
101107
{
@@ -109,4 +115,5 @@ body::after
109115
text-decoration: none;
110116
font-weight: 500;
111117
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
118+
transform: translateZ(200px)
112119
}

Javascript-Library/glassCard.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<div class="container">
1111
<div class="card">
1212
<div class="content">
13-
<h2>01</h2>
1413
<h3>Card One</h3>
1514
<p> “There were thousands and thousands of forms of joy in the world, but that all were essentially one
1615
and the same, namely, the joy of being able to love.”
@@ -21,7 +20,6 @@ <h3>Card One</h3>
2120
</div>
2221
<div class="card">
2322
<div class="content">
24-
<h2>02</h2>
2523
<h3>Card Two</h3>
2624
<p> “All that is gold does not glitter,
2725
Not all those who wander are lost.”
@@ -32,7 +30,6 @@ <h3>Card Two</h3>
3230
</div>
3331
<div class="card">
3432
<div class="content">
35-
<h2>03</h2>
3633
<h3>Card Three</h3>
3734
<p> “All we have to decide is what to do with
3835
the time that is given us.”

0 commit comments

Comments
 (0)