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

119
Views
Can I make jQuery .bind mouswheel smoother?

I have some code where the mousewheel is bound to the document and it is changing the rotation of an element.

But as I scroll it feels very mechanic and not like the standard scroll behavior. Is there a way to make this mousewheel event smoother?

Thanks for any help! :)

var counter = 0;
$(document).bind("mousewheel",function(event){
    if(event.originalEvent.wheelDelta > 0){
        counter -= 1;
        console.log(counter);
        $(".outer_box").css({"transform":"perspective(1000px) rotateX("+counter+"deg)"})
    }else{
        counter += 1;
        console.log(counter);
        $(".outer_box").css({"transform":"perspective(1000px) rotateX("+counter+"deg)"})
    }

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!