S
S
shane892015-10-09 15:21:12
JavaScript
shane89, 2015-10-09 15:21:12

How to write your scrollbar via mousewheel?

Good evening. There is a block with a fixed height and width and overflow:hidden on the side is an additional block that plays the role of a scrollbar, relative to the height of the parent block 40% is acceptable. Also a block with info and a height of 10 thousand pc. It is possible without plugins, I don’t think there will be a lot of code. I want to see how it works. I've sketched a frame here. codepen.io/Mackaybravo/pen/KdqRJJ

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2015-10-15
@NeiroNext

If you decide to use the plugin, you can try nicescroll, in addition, the scrolling will be smooth if necessary, plus you do not need to bother with scrolling for tablets and phones.
Good luck!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question