Skip to content

Commit 989e92f

Browse files
committed
nice navigational animations
1 parent 4e58052 commit 989e92f

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

static/assets/scripts/helpers.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,9 @@ async function enforceDonationLockout(goalAmount = 500) {
768768
bigContainer.style.overflow = "hidden";
769769
bigContainer.style.backgroundColor = "rgba(0, 0, 0, 0.8)";
770770
bigContainer.style.backdropFilter = "blur(5px)";
771+
await new Promise((r) => {
772+
window.addEventListener("load", r);
773+
});
771774
document.body.appendChild(bigContainer);
772775
} catch (err) {
773776
console.error('Failed to check donation status:', err);

static/assets/styles/home.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ body {
2424
header h1 {
2525
text-align: center;
2626
color: #333;
27-
background-color: #fff;
2827
margin: 0;
2928
font-size: 48px;
29+
transition: font-size 0.3s ease;
30+
background-color: transparent !important;
3031
}
3132

3233
header h1 a {
@@ -40,21 +41,30 @@ header {
4041
justify-content: space-around;
4142
align-items: center;
4243
padding: 20px 0;
43-
background-color: #ffffff;
44+
background-color: #ffffff92;
4445
position: fixed;
4546
width: 100%;
4647
right: 0;
4748
left: 0;
4849
z-index: 7500;
4950
top: 0;
5051
box-sizing: border-box;
52+
backdrop-filter: blur(10px);
5153
height: 100px;
52-
}
54+
transition: height 0.3s ease;
5355

56+
}
57+
header.collapsed {
58+
transition: height 0.3s ease;
59+
height: 50px;
60+
}
61+
header.collapsed h1 {
62+
transition: font-size 0.3s ease;
63+
font-size: 32px;
64+
}
5465
header.shadow {
5566
box-shadow: 0px 0px 10px #333;
5667
}
57-
5868
.container {
5969
margin-top: 100px;
6070
padding: 0px;

0 commit comments

Comments
 (0)