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

195
Views
I am using some scroll animations but it is causing horizontal scroll out of the screen

I have set up some scroll animations on many elements of a site I'm building.

I'm using these CSS rules:

.hiddenLeft {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-090%);
    transition: all 1s;
}

.hiddenRight {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(90%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

The hiddenLeft and hiddenRight classes are in the elements by default, and then when they are intersected during vertical scroll the show classes are added.

It all works fine, except it has created horizontal scroll to the right out of the width of the site into blank space.

I would like to keep the animations as they are but without the horizontal scroll.

A picture of me scrolling out to the side into the blank space for reference:

enter image description here

I made a very basic replication here:

https://codepen.io/acodeaday/pen/NWMYWNL

I can see that the offending line is

transform: translateX(90%);

But that makes the animation very aesthetically pleasing. So I'm hoping there is a way to solve it while keeping that.

almost 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try using

max-width: 100%!important; height: auto; overflow: hidden!important;

this code whatever you put all of your animation inside. That can be a div. Hope this help~

almost 4 years ago · Santiago Trujillo Report
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!