How can I monitor scroll position while scrolling in Safari on iOS?

前端 未结 6 1122
梦毁少年i
梦毁少年i 2021-02-05 03:58

I currently use $(window).bind(\'scroll\', foo); to monitor $(window).scrollTop() and do stuff to create a parallax effect.

In all desktop brow

6条回答
  •  礼貌的吻别
    2021-02-05 04:47

    Apple's webpage for iPhone 5c uses some parallax scrolling effects that seem to continue with your finger still touching the screen and scrolling. So I guess javascript can't be entirely disabled during scroll. Tumult Hype provides this functionality too.

提交回复
热议问题