Indsæt nedenstående i:
Elementor > Editor > Custom Elements > Kode
Indsæt nedenstående i:
Tilpas CSS
/* ---- Horisontal opsætning (kun > 1024px) ---- */
html[data-scroll-orientation='horizontal'] body {
width: fit-content;
overflow-y: hidden;
}
.frames {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
width: fit-content;
}
/* Låst shrink + højde. BREDDEN sættes i Elementors Bredde-felt (vw eller px). */
.frame-slide {
flex: 0 0 auto !important;
height: 100vh;
}
/* Skjul vandret scrollbar (funktionen bevares) */
body::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }
body { -ms-overflow-style: none; }
/* ---- Reveal-on-scroll ---- */
.reveal {
opacity: 0;
transform: translateX(60px);
transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
will-change: opacity, transform;
}
.reveal.is-inview { opacity: 1; transform: none; }
/* ---- Under 1024px: almindelig lodret scroll ---- */
@media (max-width: 1024px) {
body { width: auto !important; overflow-y: auto !important; }
.frames,
.frames > .e-con-inner {
display: flex !important;
flex-direction: column !important;
flex-wrap: nowrap !important;
width: 100% !important;
}
.frame-slide {
flex: 0 0 auto !important;
width: 100% !important;
height: auto !important;
min-height: 100vh; /* fjern linjen hvis panelerne ikke skal fylde fuld højde */
}
.reveal { transform: translateY(40px); }
}