// src/plugins/gsap.ts
import { App } from "vue";
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";

export default {
  install: (app: App) => {
    gsap.registerPlugin(ScrollTrigger);
    (app.config.globalProperties as any).$gsap = gsap;
    (app.config.globalProperties as any).$ScrollTrigger = ScrollTrigger;
  }
};

export { gsap, ScrollTrigger };