Hello,
I have a small problem and I don’t find a way to solve it.
I have to be able to control the scrolling speed of a Webflow with Fullpage-js script in order to add animations.
Link: Webflow - Scroll Exp
I tried to edit the value of speed from the code, but it doesn’t work.
Can anyone help me with this?
Thank you!
1 Like
PeterDimitrov
(Webflow Expert Partner)
December 22, 2018, 9:14pm
2
Hello @Alexander_von_Stauff
Not very good coder but I think I’ve found something.
You can see it here > https://fullpage-js-speed.webflow.io/
I’ve added one extra script
<script>
$('#fullpage').fullpage({
onLeave: function(index, nextIndex, direction){
var idx = Math.abs(index - nextIndex)*.250;
$.fn.fullpage.setScrollingSpeed(idx*5000);
}
})
</script>
250 and 5000 are the values I’m using for the current speed
Hope this helps
1 Like
Yes, it is working perfectly. Thank you!
1 Like
PeterDimitrov
(Webflow Expert Partner)
December 23, 2018, 2:06pm
4
No problem! Happy to help
soulaire
(soulaire)
December 25, 2018, 7:09pm
5
I’ve tried looking for this topic before but with no luck, are there any other ways of doing this besides using the fullpaage-js?
PeterDimitrov
(Webflow Expert Partner)
December 25, 2018, 7:20pm
6
1 Like
dram
(Alex Dram)
December 25, 2018, 11:56pm
7
Just wanted to say thank you for the smartscroll link! It solved the problem I’ve been having with fullpage.js and the like, namely not being able to trigger interactions on scroll. The bad part is I gave up on the task I had a couple of weeks ago, and did a workaround which shipped already
1 Like