How to make a custom scrollbar in pure js?

  • 0
    How to make a custom scrollbar in pure js?
    Css ss-va are not suitable, because on safari the scrollbar is transparent before activation
    JavaScript Anonymous, May 11, 2019

  • 2 Answers
  • 0
    You can use SimpleBar
    Hadley Richardson

  • 0
    Did you start this as an experiment?



    The algorithm is not complicated, you need to hide the standard scroll, create a new one and then come up with a bike calculating the formula by which your custom scrollbar will be displayed.



    This dock will help you - https://learn.javascript.ru/metrics-window
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!