mirror of
https://github.com/greensock/gsap-skills
synced 2026-09-22 23:34:24 +08:00
- Adds a Vue folder in the examples, with a Vue demo using the Composition API - Adds a Nuxt folder in the examples, that includes a re-usable composable for importing and registering all the GSAP Plugins at a top level file and lazy-load plugins that are not extensively used in the app - Modifies the SKILL.MD file in the gsap-frameworks folder to reflect the previous addition
9 lines
285 B
JavaScript
9 lines
285 B
JavaScript
import { createApp } from "vue";
|
|
import { gsap } from "gsap";
|
|
import { ScrollTrigger } from "gsap/ScrollTrigger";
|
|
import App from "./App.vue";
|
|
|
|
// Register all the GSAP Plugins you want only once at this top level file
|
|
gsap.registerPlugin(ScrollTrigger);
|
|
|
|
createApp(App).mount("#app"); |