Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

133
Vistas
Divert vertical scroll to horizontal scroll

I'm making a horizontal website, and i'm looking for a way to make the up/down scrolling motion result in a horizontal scroll - so no matter which way you decide to scroll you will scroll horizontally. I flipped the entire page 90deg so i'm not sure if i need to divert a horizontal scroll to vertical scroll instead? Can anyone take a look, my page is jakobnatorp.com

The css i used is:

.site-content{
width:100vh;
  height:100vw;
  overflow-x:hidden;
  overflow-y: scroll;
  transform: rotate(-90deg) translateX(-100vh);
  transform-origin: top left; 
  position:absolute;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.elementor-section-wrap{
  transform: rotate(90deg) translateY(-100vh);
  transform-origin: top left; 
  display:flex;
  flex-direction: row; 
  width: 600vw;
}

.section{ width:100vw; height:10vh}

::-webkit-scrollbar{
display:none
}

 body, html { overflow-x:scroll;   overflow-y: hidden; }

I thought i'd use some javascript like

site-content.addEventListener('wheel', (ev) => {
  ev.preventDefault();
  scrollableElement.scrollLeft += ev.deltaY + ev.deltaX;
});

But i can't seem to get it to work. Also - i'm new at javascript. Any help is appreciated. Thanks in advance.

  • Jakob
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda