简体   繁体   English

Fullpage.js 通过水平向下滚动和在一个部分再次完成水平滚动后向下滚动?

[英]Fullpage.js by Scrolling down scroll horizontally and on one Section go down after finishing scrol horizontal again?

With Fullpage.js i would like to only use Scrolling down to navigate to next page which is horizontally.对于 Fullpage.js,我只想使用向下滚动来导航到水平的下一页。 On one Page I would like to go down a few slides, navigate vertically.在一页上,我想向下几张幻灯片,垂直导航。 After these are finished I would like to go to next slide which is horizontally again.完成这些后,我想转到下一张幻灯片,再次水平放置。

I got it working when my Slide which is going to scroll vertically is the last slide.当我要垂直滚动的幻灯片是最后一张幻灯片时,我开始工作了。 But cannot get it to work when it's in the middle of the slides.但是当它位于幻灯片中间时无法使其工作。

I made a picture to show what i mean:我做了一张图片来说明我的意思:

在此处输入图片说明

Your approach is not the right one.你的方法不正确。 The image should look like this instead:图像应如下所示:

在此处输入图片说明

That is, 3 vertical sections.即3个垂直部分。 The fist and last sections with with 2 horizontal slides each.第一部分和最后一部分各有 2 个水平幻灯片。

This way you will only need to make use of the fullPage.js extension called Scroll Horizontally and you'll have exactly what you want.通过这种方式,您只需要使用称为Scroll Horizo​​ntally的 fullPage.js 扩展,您就会得到您想要的东西。

  1. Scroll down from 1 will lead to 2.从 1 向下滚动将导致 2。
  2. Scroll down from 2 will lead to 3.从 2 向下滚动将导致 3。
  3. Scroll down from 3 will lead to 4.从 3 向下滚动将导致 4。
  4. Scroll down from 4 will lead to 5.从 4 向下滚动将导致 5。

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

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