Skip to content

Commit ca12a14

Browse files
Edwin ChanEdwin Chan
authored andcommitted
bg updategit status
1 parent 4ac88f3 commit ca12a14

2 files changed

Lines changed: 51 additions & 6 deletions

File tree

app/globals.css

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949

5050
html {
5151
color: var(--color-text);
52-
background: url("https://colorfulstage.com/img/bg_lottie_pc.jpg") center/cover fixed;
5352
font-family: var(--font-inter), "Inter", "Avenir Next", "Segoe UI", sans-serif;
5453
letter-spacing: 0;
5554
}
@@ -59,6 +58,35 @@ body {
5958
margin: 0;
6059
}
6160

61+
body::before {
62+
content: "";
63+
position: fixed;
64+
top: -10vh;
65+
left: 0;
66+
width: 100vw;
67+
height: 120vh;
68+
background: url("https://colorfulstage.com/img/bg_lottie_pc.jpg") center/cover;
69+
z-index: -2;
70+
pointer-events: none;
71+
will-change: transform;
72+
}
73+
74+
@supports (animation-timeline: scroll()) {
75+
@keyframes bg-parallax {
76+
from {
77+
transform: translateY(0);
78+
}
79+
to {
80+
transform: translateY(-8vh);
81+
}
82+
}
83+
84+
body::before {
85+
animation: bg-parallax linear both;
86+
animation-timeline: scroll();
87+
}
88+
}
89+
6290
a {
6391
color: inherit;
6492
text-decoration: none;
@@ -2711,7 +2739,7 @@ html.dark .judge-field span {
27112739
inset: 0;
27122740
overflow: hidden;
27132741
pointer-events: none;
2714-
z-index: 0;
2742+
z-index: -1;
27152743
}
27162744

27172745
.confetti-triangles span {
@@ -4789,22 +4817,26 @@ html.dark .theme-choice-button.active {
47894817

47904818
.hologram-btn {
47914819
position: relative;
4792-
padding: 1.5rem 3rem;
4820+
padding: 12px 24px;
47934821
font-size: 1.1rem;
4794-
font-weight: 600;
4822+
font-weight: 700;
47954823
color: #fff;
47964824
background: none;
47974825
border: none;
47984826
cursor: pointer;
47994827
overflow: hidden;
4800-
transition: all 0.4s ease;
4801-
border: 2px solid rgba(0, 255, 255, 0.5);
4828+
transition: all 0.2s ease;
4829+
border: 1px solid rgba(0, 255, 255, 0.5);
48024830
background: rgba(0, 255, 255, 0.1);
48034831
box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
48044832
backdrop-filter: blur(5px);
48054833
border-radius: 100px;
48064834
}
48074835

4836+
.hologram-btn:hover {
4837+
transform: translateY(-2px);
4838+
}
4839+
48084840
.hologram-btn span {
48094841
position: relative;
48104842
display: inline-block;

parallax_test.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@keyframes parallax-bg {
2+
0% { background-position: 50% 0%; }
3+
100% { background-position: 50% 100%; }
4+
}
5+
@supports (animation-timeline: scroll()) {
6+
html {
7+
background-image: url("https://colorfulstage.com/img/bg_lottie_pc.jpg");
8+
background-size: cover;
9+
background-attachment: scroll;
10+
animation: parallax-bg linear both;
11+
animation-timeline: scroll(root block);
12+
}
13+
}

0 commit comments

Comments
 (0)