Navigation

    云、贵、川、渝IT人的圈子
    • Register
    • Login
    • Search
    • 主页
    • 问答
    • 话题
    • 热门
    • 圈子
    • 招聘
    • 活动
    • 项目

    手势滑动,可以让元素产生惯性的算法如何实现

    技术答疑
    2
    2
    65
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • qq498485768
      qq498485768 last edited by

      我想让一个滚动容器,里面的内容通过手势滑动以后,产生一定惯性在慢慢停止,如何实现这种效果
      3495e28a-2264-446e-a5c5-2fd923fba577-image.png

      1 Reply Last reply Reply Quote 0
      • doujiaoluan1
        doujiaoluan1 last edited by

        惯性滚动现成的js库可以用这个

        http://scrollerjs.com/

        如果要自己实现的话,参考这篇文章

        https://www.cnblogs.com/ranyonsue/p/8119155.html

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        社
        8
        玻
        U
        A
        大
        A
        黑
        低
        天
        白
        快
        爱
        白
        美
        此
        荒
        为
        哭
        柳
        无
        N

        社群
        昆明网页设计交流吧
        友情链接
        • Funtask
        • Funtask 社区
        • SUWIS
        • 云南北大青鸟
        ©2019-2020 滇ICP备20006698号