Closed pauloguerraf closed 3 years ago
ok. I guess it has to do with the inertia plugin 😁
https://greensock.com/docs/v3/Plugins/InertiaPlugin
is there any way it can be included within module config? I tried with intertia: true
and intertiaPlugin:true
but didn't work.
thank you in advance for your answer
Hi, thanks for your interest in this module.
Unfortunately the first example you shared doesn't work, it throws an error, so I can't debug it. If you found an error, please create a minimal repo on github or codesandbox without scss
styling or complicated setups.
Don't forget to activate the additional plugins that you want to use. Also, inertia
is a premium plugin, so you must have a Club GreenSock membership to be able to use the premium plugins. More info
// nuxt.config.js
export default {
gsap: {
extraPlugins: {
draggable: true,
},
clubPlugins: {
inertia: true,
},
},
}
Closing this due to inactivity but as I mentioned, feel free to reopen it if you find an error.
Hi,
I am trying to get Draggable working with an slider example. The example works fine in codepen https://codepen.io/pauloguerraf-the-scripter/pen/oNZvqRL
But when trying to adapt it and use it with nuxt-gsap-module the slides never snap or show inertia. I think it has to do with not having access to the endX parameter and "this" scope between gsap and nuxt but not completely sure. Any help would be greatly appreciated
the following is my current nuxt code. hope it helps. thank you