Menu icon Foundation
Swapping between section with mouse

Sorry for explanation, I got sections with height: 100vh;

I would like to swap directly to next section as soon as you roll the "mouse wheel", like on this page :
http://www.ge.com/ar2015/

Is there a tip in ZF or is it a JS functionality ?
Any help would be much appreciated :-)

scrollmousesection

Sorry for explanation, I got sections with height: 100vh;

I would like to swap directly to next section as soon as you roll the "mouse wheel", like on this page :
http://www.ge.com/ar2015/

Is there a tip in ZF or is it a JS functionality ?
Any help would be much appreciated :-)

Rafi Benkual almost 2 years ago

Totally can do this! The best way is with JS plugins that help lock the screens in place. Finding a good plugin for this is a challenge.

Maybe this one?

https://projects.lukehaas.me/scrollify/#overview

 

 

Sven CAILTEUX almost 2 years ago

Many thanks Rafi.
I've followed => https://youtu.be/ofiNeA40QJA

by installing scrollify with npm, (it works), then put it in app.js with require, and then I got an error :

Module not found :...
doesn't exist or is not a directory

So I've put the js file directly in the right folder and it works like a charm but do you have any idea of what's going on ?