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

150
Views
How do i only show scrollbar on hover?

This is my start off code to hide scrollbar? how do edit it to only show on hover?

A this moment its just scroll when clicked.

'

/* Hide scrollbar for Chrome, Safari and Opera */
#hide-scrollbar::-webkit-scrollbar { display: none;}


/* Hide scrollbar for IE, Edge and Firefox */
#hide-scrollbar {
-ms-overflow-style: none;  /* IE and Edge */
scrollbar-width: none;  /* Firefox */
}

'

$( function() {

    var timer,
        count          = 0,
        MAX_ITERATIONS = 100;

    timer = setInterval( function() {
        $( '#hide-scrollbar' ).scroll();
        if ( ++ count > MAX_ITERATIONS ) {
            clearInterval( timer );
        }
    }, 10 );
});

'

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I might misunderstand your problem, but maybe you can fix it with this css:

#hide-scrollbar:not(:hover)::-webkit-scrollbar {
  display: none;
}
#hide-scrollbar:not(:hover) {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

Now the scrollbar will disappear in the moment, you are not hovering anymore. To blend it in, you need to scroll in the div. If you want to blend it in in the moment you hover over the div, check this out: CSS - Overflow: Scroll; - Always show vertical scroll bar?

For better help, provide more details about your problem.

about 4 years ago · Juan Pablo Isaza 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!