mirror of
https://github.com/greensock/gsap-skills
synced 2026-09-22 23:34:24 +08:00
Nuxt demo update
- Updates the demo for Nuxt, no need to import the composable and use the client suffix in the file name - Updates the README.MD file in the examples folder - Updates the SKILL.md file in the frameworks folder
This commit is contained in:
1 parent
63353bf7a2
commit
7f8b61e6e9
4 files changed
+5
-9
No files matched your search
+2
-2
@@ -24,6 +24,6 @@ These examples are intended as reference implementations for AI agents and for q
|
||||
|
||||
## Nuxt
|
||||
|
||||
- **examples/nuxt/** — Nuxt 4 with GSAP client-only re-usable composable.
|
||||
- **examples/nuxt/** — Nuxt 4 with GSAP re-usable composable.
|
||||
- From repo root: `cd examples/nuxt && npm install && npm run dev`.
|
||||
- Patterns: GSAP as client-only composable (`useGSAP.client.ts`), for gsap access, lazy-loading plugins, `gsap.context(() => {}, scope)` cleanup.
|
||||
- Patterns: GSAP as reusable composable (`useGSAP.ts`), for gsap access, lazy-loading plugins, `gsap.context(() => {}, scope)` cleanup.
|
||||
File renamed without changes.
@@ -1,6 +1,5 @@
|
||||
<script setup>
|
||||
import { onMounted, onUnmounted } from "vue";
|
||||
import useGSAP from "./composables/useGSAP.client";
|
||||
|
||||
const { gsap, ScrollTrigger, lazyLoadPlugin } = useGSAP();
|
||||
|
||||
|
||||
Reference in new issue
Block a user