Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

install and import gsap in vue

mport Vue from "vue";
import App from "./App.vue";
import gsap from "gsap";
import ScrollTrigger from "gsap/ScrollTrigger";

gsap.registerPlugin(ScrollTrigger);

Vue.mixin({
  created: function () {
    this.gsap = gsap;
  }
});
Source by greensock.com #
 
PREVIOUS NEXT
Tagged: #install #import #gsap #vue
ADD COMMENT
Topic
Name
5+2 =