jquery scrolling vertical/horizontal

时间:2017-08-30 20:20:28

标签: javascript jquery html css scroll

I'm trying to make an entire website with all events triggered by scrolling. I just need help to achieve this effect :

  1. I have a website with a few divs which fill all the viewport, I want the user to be able to scroll down to a named div and then when he keep scrolling the website stop scrolling vertically but the content of the div scroll horizontally. when it's done the website can scroll vertically again.

explainations

-n

  1. How to make that the website can only be scrolled from one div to the other ( full page)

I know there is a jquery plugin named fullpage.js which does that pretty well but as a student learning web development using plugins is not the best way to improve my skills.

Thanks for your help!

Cheers Simon

1 个答案:

答案 0 :(得分:0)

Why would you assume that ? I doubt it can get much simpler than

r.ptr.cameraExtrinsicPositionX = jr.Call<float>("cameraExtrinsicPositionX");
r.ptr.cameraExtrinsicPositionY = jr.Call<float>("cameraExtrinsicPositionY");
r.ptr.cameraExtrinsicPositionZ = jr.Call<float>("cameraExtrinsicPositionZ");;

The author of the plugin also most likely already encountered, considered and had to solve a number of details and issues, cross-browser and non, that you have not yet had a chance to think about.

Edit :: animating divs:

com.the8thwall.reality.app.xr.android.XRAndroid.java