Skip to content

Commit 3d96b5e

Browse files
committed
added cool effect to coming soon cards
1 parent 3151057 commit 3d96b5e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/Plugs.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
} days"; --days-percent: ${
8585
(plug.estPublishDate
8686
? Math.round(daysBetween(new Date(Date.now()), plug.estPublishDate))
87-
: 0) / 360
87+
: 0) / 160
8888
}`}
8989
href={plug.disabled ? undefined : plug.href}
9090
class:disabled={plug.disabled}
@@ -142,7 +142,10 @@
142142
a.card.disabled {
143143
/* filter: grayscale(1); */
144144
border-color: var(--gold-700) !important;
145-
filter: grayscale(var(--days-percent, 0));
145+
filter: blur(calc(var(--days-percent, 0) * 0.2rem)) opacity(calc(1 - var(--days-percent, 0)));
146+
transform-origin: calc(100% * var(--days-percent, 0)) 0;
147+
z-index: -1;
148+
transform: scale(calc(1 - var(--days-percent, 0)));
146149
background-image: linear-gradient(135deg, var(--gold-100) 40%, var(--gold-500) 40%);
147150
background-position: 0 0 !important;
148151
color: var(--gray-90) !important;

0 commit comments

Comments
 (0)