Configuration
In general, no config is needed. However, there are some options you can configure:
nuxt.config.ts
vgsap: {
presets: [],
breakpoint: 768,
scroller: '',
composable: true
}
presetslets you define reoccuring animations. See morebreakpointnumberlets you define a custom breakpoint for.desktopand.mobilemodifierscrollerstringasselectorlets you define a custom scroller that will be applied to all scrollTriggers- This is needed if your content is wrapped in an artificial scroll wrapper, instead of the default document/body
composablebooleandefault: truelets you decide wether or not to load GSAP as a composable as well See more