Jump to content
Search Community

Draggable scroll + custom scrollbar

Stephane Demotte test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi all,

 

I am looking for a custom scroll bar with Draggable Scroll.

For simulate a scroll like mcustomscrollbar or iscroll and keep the touch fonction for mobile.

 

I don't like the native scrollbar, i am looking for a thin/cute bar who appear only on mouse move.

 

Anyone have something like this ?

 

I have see : 

 

But not working on FF/IE

 

Thanks for reading :)

See the Pen WbvOrM by MAW (@MAW) on CodePen

Link to comment
Share on other sites

Hello Stephane Demotte, and Welcome to the GreenSock Forum!

 

Unfortunately Firefox has a bug that will restrict the scrollbar from being styled. Check out this Bugzilla report:

 

https://bugzilla.mozilla.org/show_bug.cgi?id=547260

https://bugzilla.mozilla.org/show_bug.cgi?id=77790

 

The ones used in

See the Pen WbvOrM by MAW (@MAW) on CodePen

are propriety vendor prefixes that only work in Chrome or Safari webkit browsers.

 

How to style scrollbars in webkit:

 

https://www.webkit.org/blog/363/styling-scrollbars/

http://css-tricks.com/custom-scrollbars-in-webkit/

 

IE can probably support some of those CSS properties to change the scroll bar.. see this:

 

https://msdn.microsoft.com/en-us/library/ie/ms531157%28v=vs.85%29.aspx

 

I hope the above helps.. but until Firefox fixes their bug you will have to use jQuery or native JavaScript to fake scrollbar styles for cross browser until it is a standard in CSS.

 

:)

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...