Next.js (React) & ScrollMagic

后端 未结 2 971
醉酒成梦
醉酒成梦 2021-02-19 09:28

I would like to implement an animation to fade sections, like in this example, into my application. Therefore I\'ve had a look at fullPage.js.

However, since I need to i

2条回答
  •  春和景丽
    2021-02-19 10:15

    Would fullpage.js not be more suited for you needs?

    You should be able to map your routes and then build each slide as a placeholder for the page using the app.js

    Otherwise, I should have a working example of scroll magic, I will look for the repo and share it once found.

    UPDATE: Here is an example of next.js using fullpage.js

    However, since I need to integrate it into a Next.js React app with server-side rendering I can't use it since it relays on jQuery

    fullpage.js no longer depends on jquery and it supports SSR as well.

提交回复
热议问题