For those of us who enjoy Fullpage.js but are also frustrated by the inability to integrate Fullpage.js slides with webflow interactions.
Allowing webflow interactions to work with the Fullpage.js code there is a need to add callbacks within the custom code section.
I have been trying to do this for months without any success and im sure most if not all of the Fullpage.js users would love to know how this can be done, since it will look rather dull without the use of interactions.
On page load interactions are usually not the problem because they are triggered either when the page starts loading or when it finished loading, but interactions that would trigger after scrolling to another slide or leaving a slide would not work without callbacks.
Im calling all of the knowledgeable people of the Webflow forum to come forward and offer the help so many of us are hoping to get and share a cloneable project that we can work with.
I’ve created a cloneable base Fullpage.js page here that can be copied and used to provide the answer to our callbacks problem.
Here is the header code Ive used for this example:
Fullpage.js disables the standard browser scroll function, this means that the “Scroll Into View” interaction is not working. But this code allows “Scroll Into View” to work (maybe change div ID if you are using another name):
This is done with the code i wrote up there. Then make an “Scroll Into View” interaction on the element you want to fade-in and remember to change the interaction from “Selected element” to “Class (Only children with this class)”.
Then everything should work. Does this make sense?
Hi @ToreSBentsen
Thank you for your reply.
Yes, when enabling the scrollbar:true interactions will work, however you lose a bit part of the effect you are trying to achieve with fullpage.js
In addition to that, when you enable the scrollbar:true the smoothness it moves from slide to slide is lost and the whole site feels much “heavier”.
There is a way to make this happen using callbacks
When i added scrollBar: true, i did not feel anything of what you are saying change.
For me it was exactly the same after i added the code i wrote up top.
Here’s a preview with the use of scrollBar:true using the clone provided and same code @ToreSBentsen shared above. FullPage JS still seems to be transitioning the same way as it does without the scrollbar.
Using this in a new homepage we’re designing atm and seems to be the simplest solution for overcoming interactions conflict.
Hi @marsh and @ToreSBentsen
I can understand your view on this, however the solution im trying to create wont include any scrollbar at all, it messes with the design
There is a code way of doing this with callbacks.
For the moment the scrollbar:true is a workaround that just wont give the same visual effect.
Yeah exactly, there’s no easing override, so this one is just using the default set in fullPage JS. The scroll into view interaction potentially needs a bit of work, adding a bit of a delay helps due to the way the sections ease into view quite fast.