Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!