Maybe I'm missing something, but to me it looks like this library is simply a wrapper for scrollmagic, and makes it available through this.$scrollmagic in components.
To do this, it includes Vue and GSAP which it bundles together with it's own source code. You end up with a big bundle (about 220kb of js), without any real extra features compared to just using the scrollmagic package.
The only real thing this library does is in this module: It reimplements the scrollmagic api.
It also installs GSAP even if you do not need it, and bakes Vue library into it's bundle, so your app contains Vue twice.
So, the only benefit of using this library is omitting a import scrollmagic statement, at the cost of increasing your js payload by 220k (or 65kb gzipped).
Maybe I'm missing something, but to me it looks like this library is simply a wrapper for scrollmagic, and makes it available through
this.$scrollmagic
in components.To do this, it includes Vue and GSAP which it bundles together with it's own source code. You end up with a big bundle (about 220kb of js), without any real extra features compared to just using the
scrollmagic
package.The only real thing this library does is in this module: It reimplements the scrollmagic api.
It also installs GSAP even if you do not need it, and bakes Vue library into it's bundle, so your app contains Vue twice.
So, the only benefit of using this library is omitting a
import scrollmagic
statement, at the cost of increasing your js payload by 220k (or 65kb gzipped).