/    Sign up×
Community /Pin to ProfileBookmark

Mac Safari/Chrome/Opera Native White Scrollbar

Hi people, as you can see I’m new here, and I’ll start my membership here asking a little help. ?

I’m not expert on Javascript(nor jQuery library) But I’ll try to help the comunity as much as I can. ?

So, ok here’s the problem:

[B]EXPLANATIONS:[/B]

I notice that when a website have dark backgrounds applied to [B]html[/B] or [B]body[/B] tag, all Mac webkit browsers(Safari/Chrome/Opera), natively changes scrollbar’s theme to a white one.
BUT, it’s not happen on any other element’s scrollbar, only in [B]html[/B] and [B]body[/B].

Live link:
[url][COLOR=”#0000FF”]http://www.ricardostrobel.com.br/test.html[/COLOR][/url]

And an image for those who don’t use mac but do want try to help:
[url][COLOR=”#0000FF”]http://www.ricardostrobel.com.br/scrollbar.jpg[/COLOR][/url]

[B]QUESTION:[/B]

There’s any way to set div’s scrollbars to have the native white theme WITHOUT using ::webkit-scrollbar CSS property?

Maybe a javascript to hack browser’s behavior or something to set it on this unique div.

Again: I DON’T want to custom it with ::webkit-scrollbar CSS property. The motive is that it loses it’s native behavior of hover, fade an timeout which is not fully customizable by native brwosers css properties. I also don’t want to use plugins like jScrollPane or PerfectScrollbar, [B]I really need a way to force it’s native white scrollbar on scrollable divs[/B].

jQuery or pure Javascript.. Any help would be appreciated.

Thanks ?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Strobel spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...