javascript - use of isscroll5
高洛峰
高洛峰 2017-05-16 13:44:30
0
1
633

Page structure
<p id="wrapper">

<p id="scroller">
    <p class="p1"></p>
    <p>继续拖动, 查看详情</p>
    <p class="p2 hidden" ></p>
</p>

</p>

When scrolling to the bottom of p1, continue to drag if the distance is greater than 50px to display p2.
If you want to implement the function
Do not hide p1, drag p2 downwards. If the distance is greater than 50, then return to p1. Hide p2, if it is less than 50, Rebound to the top of p2
scroller Can the elastic boundary be limited to the top of p2?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
刘奇

iscroll has a real-time record of where the current slide is and what the height is
You can judge based on the height and then process it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template