How do I get scrollbars to show in Mobile Safari?

Assuming you are using iOS5.0 or later, I think you have to use the following:

-webkit-overflow-scrolling: auto (this is default style)

auto: One finger scrolling without momentum.

The other available style is

-webkit-overflow-scrolling: touch

touch: Native-style scrolling. Specifying this style has the effect of creating a staking context (like opacity, masks, and transforms).

Using touch mode, the scrollbar will be visible when the user touches and scrolls, but disappear when not in use. If you want to make it always visible, then this old post will help you:

::-webkit-scrollbar {
    -webkit-appearance: none;// you need to tweak this to make it available..
    width: 8px;
}

Another Piece of Code for Thumb by @BJMC:

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    box-shadow: 0 0 1px rgba(255,255,255,.5);
}

Original Source

Edit: with respect to this demo’s behaviour, you should use jQuery because it will help you a lot, $(document).ready(function(){//your code with timer}) code with timer will need to reset the CSS property to normal after desired time(let’s say 5 sec.)

For the demo( that you have described), this is initiated with the onhover event, please check this fiddle I have created for that.

That reproduces the results in a desktop browser, and will also work in iPad, just add your timer code to suit your requirements.

Leave a Comment