Jump to content
Search Community

How can I access the new ScrollSmoother plugin in nuxt-gsap-module?

nicolaseielll test
Moderator Tag

Recommended Posts

I bought the club membership but I'm still a little confused how to use the plugins in my app. I managed to get splitText to my app but when I try to import the scrollSmoother exactly the same way, it just throws me undefined in the console when I try to log it. So how do I get access to it?

 

This is how I defined the plugin in my nuxt.config.js 

gsap: {
extraPlugins: {
scrollTo: true,
scrollTrigger: true,
},
clubPlugins: {
splitText: true,
scrollSmoother: true
}
},

 

And this is how I get access to SplitText in my component but this way wont work for the scrollSmoother:

var SplitText = this.$SplitText
console.log(SplitText)
Link to comment
Share on other sites

Our blog post isn't going to help me understand your setup.

We need to see your specific setup. That codesandbox I linked to was a demo using Nuxt and ScrollSmoother.

Work out what is different in your demo and you'll have your answer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...