简体   繁体   中英

Skrollr: How do I pause sections?

Can someone please explain the data attributes to create pausing in scenes using the 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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