Skip to content

Commit 3e6d168

Browse files
authored
fix footer
1 parent bbb0061 commit 3e6d168

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

css/global.css

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,15 @@ input[type=number] { -moz-appearance: textfield; }
4444

4545
/* Base layout */
4646
html{ background: #101010; }
47+
html, body {
48+
min-height: 100%;
49+
}
50+
4751
body{
52+
display: flex;
53+
flex-direction: column;
4854
user-select: none;
49-
height: auto;
55+
min-height: 100vh;
5056
overflow-x: hidden;
5157
width: 100%;
5258
background: #171717;
@@ -57,7 +63,20 @@ body{
5763
display: none; /* Ensure these are hidden by default */
5864
}
5965

60-
#all { display: block !important; }
66+
#all { display: block !important; flex: 1; }
67+
68+
.footer-minimal {
69+
margin-top: auto;
70+
position: relative;
71+
opacity: 0;
72+
visibility: hidden;
73+
transition: opacity 0.25s ease, visibility 0.25s ease;
74+
}
75+
76+
body.ready .footer-minimal {
77+
opacity: 1;
78+
visibility: visible;
79+
}
6180

6281
#loader{
6382
display: flex;

js/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
$(window).on("load",function(){
2+
document.body.classList.add('ready');
23
// Check if elements exist before animating
34
if ($("#all").length) {
45
gsap.to("#all",0,{display:"block"});

0 commit comments

Comments
 (0)