atulraj89 Posted July 16, 2020 Share Posted July 16, 2020 I have just purchased the Shockingly Green, and I mainly want to use scroll-trigger and MorphSVG in my VUE Project. What is the ideal way to use it? There are many files in SRC folder, which oof them one is all.js, 1. so is it okay to include all.js in my HTML file and keep all the JS files in assets or should I go for the specific files only to make it lighter? 2. and if specific files are the best way, then I only need the specific plugin file along with gsap-core.js? 3. last thing, I have seen the examples which are on morph plugin doc page, which is still using Tweenlite and tweenmax, so is it okay to use it or should I go with new way, which use GSAP? Link to comment Share on other sites More sharing options...
OSUblake Posted July 16, 2020 Share Posted July 16, 2020 53 minutes ago, atulraj89 said: What is the ideal way to use it? Follow the installation page, and use the install helper. Don't deviate from it. Be sure to watch the npm/yarn video all the way through. https://greensock.com/docs/v3/Installation 53 minutes ago, atulraj89 said: so is it okay to include all.js in my HTML file and keep all the JS files in assets or should I go for the specific files only to make it lighter? That won't work. 53 minutes ago, atulraj89 said: last thing, I have seen the examples which are on morph plugin doc page, which is still using Tweenlite and tweenmax, so is it okay to use it or should I go with new way, which use GSAP? Those are old, and need to be updated. cc @ZachSaucier Ignore the old syntax and use gsap. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now