How does jq do partial scrolling of ul li? No scroll bar can appear in the middle. Also consider blocking browser scrollbar events.
The requirement is: scroll with the mouse wheel. li will scroll down or up. The premise is that my mouse is in the center range here. The browser's scroll event can be used outside the range, but it is prohibited inside.
Use this scroll event to control the position of the box.
Get the scrolling direction through the scroll event, and adjust the position of p through your own program calculation. You can use transform for css3. If css3 is not supported, use left and top.
Wrap a p in the outer layer and set overflow:hidden to just cover the inner scroll bar.
Mouse scroll event. $('.center').on() responds to mouse events and then prevents bubbling.