简体   繁体   English

Skrollr:如何暂停部分?

[英]Skrollr: How do I pause sections?

Can someone please explain the data attributes to create pausing in scenes using the Skrollr.js? 有人可以解释一下使用Skrollr.js在场景中创建暂停的数据属性吗? I want to create a small animation but not really sure how to achieve it. 我想创建一个小型动画,但不确定如何实现。 Does the plugin just wait for you to finish an animation before it can scroll down to the next pause? 插件是否可以等待您完成动画,然后才能向下滚动到下一个暂停?

I am not aware of any pause the scrolling flow. 我不知道有任何暂停滚动流程。 The best way to achieve the effect you need is by doubling the height of that section and changing the position of the section content to fixed. 实现所需效果的最佳方法是使该部分的高度加倍,并将该部分内容的位置更改为固定。

data-top-top="position: fixed"

Note: You should also give the appropriate z-index so that it doesn't affect the other sections. 注意:还应该提供适当的z-index,以免影响其他部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM