I’m trying to center each section in the middle of the screen when user scroll through the page.
I did read the topic: https://discourse.webflow.com/t/center-a-section-on-smooth-scroll/1495 and did add a new custom attribute called data-scroll and set its value to mid for each section. But it doesn’t help.
@thangbe I think I’m trying to do the same thing and the difference with the other thread’s reference is that it demonstrates how to align the smooth scroll target to centered on the element but what we want to do is make the smooth scroll activate on mouse scroll rather than a clicked anchor. Kinda like this, right? http://www.jackdecaluwe.com
Hi @thangbe I like that site effect too… Currently the only way to “auto scroll to a section” is with a click trigger… To use a scroll trigger you will need a bit of custom code. There have been discussions on this:
Now these are slightly old discussions but they can still be deployed with a little snippet insertion.