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

115
Views
jQuery animate on scroll is lagging on iOs phones

I use the following script so scroll to the div "#content-element" on first scroll. On desktop this is working smoothly but on iOs phones this effect is kind of lagging. Is there any idea why this could be?

window.wasScrolled = false;
$(window).bind('scroll',function(){
    if (!window.wasScrolled) { 
        $('html, body').stop().animate({scrollTop:document.getElementById('content-wrapper').getBoundingClientRect().top},1000)                     
    }
    window.wasScrolled = true;
});
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!