How to Scroll Down and Up Leading to Anchor Points?

SITUATION:
1 Page + 3 Anchor Points

TASKS:

  • When the user is in Anchor Point 1 and Scroll DOWN this leads to Anchor Point 2.
  • When the user is in Anchor Point 2 and Scroll UP this takes to Anchor Point 1
  • When the user is in Anchor Point 2 and Scroll DOWN this takes to Anchor Anchor Point 3.

EXAMPLE:
https://searchingforsyria.org/en/what-was-syria-like-before-the-war/

QUESTION:
According to this post ( https://goo.gl/3YMCto ) it seems that Wix doesn’t allow mouseOnScroll events. Does anyone know how to accomplish this task with the tools available?

Thanks in advance!

Hello Raniere,

I would try adding other anchors that on view port entered, will take you to the correct anchor with wixLocation.to()

ViewPort API
WixLocation API

Goodluck,
Majd