Home > other >  How can I scroll by 100 vh every component in vue?
How can I scroll by 100 vh every component in vue?

Time:03-18

How to create a scrolling effect every 100vh. I have 3 components, each is 100 vh high and I would like the user to switch to the next of these three components every time he scrolls.

CodePudding user response:

I would recommend using the native CSS Scroll Snap

  • Related