Jump to content
Search Community

gribchic

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by gribchic

  1. 8 hours ago, Rodrigo said:

    Hi and welcome to the GreenSock forums.

     

    I wouldn't expect it to work because as far as I can tell, the main use() method in Vue is reserved for Vue specific plugins like VueX, Vue Router, etc. While GSAP will work with Vue without any issues, you'll have to import it in every component you use it, like you mentioned.

     

    Here is the API docs about Vue.use(): https://vuejs.org/v2/api/#Vue-use

     

    Happy Tweening!!!

    Thanks a lot.

  2. Tell me please how to add gsap + plugins to project.
    I've tried to add in main.js:
     

    import gsap from "gsap";
    import ScrollTrigger from "gsap/ScrollTrigger";
    gsap.registerPlugin(ScrollTrigger);
    Vue.use(gsap);

    but it doesn't work.

    Should I add gsap and plugins in each component like in the article

     

×
×
  • Create New...