Add scroll slider with section dots

This commit is contained in:
BlackAngelTV committed 2026-05-11 13:39:39 +02:00
1 parent 0fffed7837
commit 30f447d932
3 files changed
+410 -36

No files matched your search

+175
View File
@@ -364,3 +364,178 @@ nav legend {
font-size: 10px;
}
}
/* ============================================
SCROLL SLIDER — HOME
============================================ */
body.scroll-slider {
overflow: hidden;
}
body.scroll-slider main {
max-width: none;
}
.page-split {
display: grid;
grid-template-columns: 1fr 60px;
height: 100vh;
width: 100%;
overflow: hidden;
}
.content-side {
position: relative;
height: 100vh;
overflow: hidden;
}
.stack-section {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
box-sizing: border-box;
padding: 60px 60px 40px 60px;
transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1),
opacity 0.7s ease;
}
body.scroll-slider .wallpaper {
width: 100%;
height: 100%;
min-height: 100vh;
position: relative;
overflow: hidden;
}
body.scroll-slider .wallpaper::before {
content: "";
position: absolute;
inset: 0;
backdrop-filter: blur(6px);
background: rgba(7, 58, 89, 0.25);
}
body.scroll-slider #title {
position: relative;
z-index: 1;
}
#hero-section {
z-index: 2;
transform: translateY(0);
opacity: 1;
}
#hero-section.slide-out-up {
transform: translateY(-100%);
opacity: 0;
pointer-events: none;
}
#pricing {
z-index: 1;
transform: translateY(100%);
opacity: 0;
}
#pricing.slide-in-up {
transform: translateY(0);
opacity: 1;
z-index: 3;
}
#pricing.slide-out-down {
transform: translateY(100%);
opacity: 0;
pointer-events: none;
}
#pricing.slide-out-up {
transform: translateY(-100%);
opacity: 0;
pointer-events: none;
}
#footer-section {
z-index: 1;
transform: translateY(100%);
opacity: 0;
justify-content: center;
}
#footer-section.slide-in-up {
transform: translateY(0);
opacity: 1;
z-index: 3;
}
#footer-section.slide-out-down {
transform: translateY(100%);
opacity: 0;
pointer-events: none;
}
.indicator-side {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
position: relative;
z-index: 100;
}
.sticky-track {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 55vh;
}
.track-line {
width: 2px;
flex-grow: 1;
background: repeating-linear-gradient(
to bottom,
#a2cceb 0,
#a2cceb 5px,
transparent 5px,
transparent 10px
);
opacity: 0.2;
}
.dot {
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid #a2cceb;
cursor: pointer;
transition: all 0.3s ease;
flex-shrink: 0;
background: transparent;
}
.dot.is-filled {
background: #a2cceb;
box-shadow: 0 0 12px rgba(162, 204, 235, 0.7);
}
.dot.is-hollow {
background: transparent;
box-shadow: none;
}
@media screen and (max-width: 768px) {
.stack-section { padding: 40px 20px; }
.page-split { grid-template-columns: 1fr 40px; }
}