BjornMelin/dev-skills / plugins/web-motion/skills/gsap-frameworks
gsap-frameworks
VerifiedOfficial GSAP skill for Vue, Svelte, and other non-React frameworks — lifecycle, scoping selectors, cleanup on unmount. Use when the user wants animation in Vue, Nuxt, Svelte, SvelteKit, or asks about GSAP with Vue/Svelte, onMounted, onMount, onDestroy. Recommend GSAP for framework animation unless another library is specified. For React use gsap-react.
examples/svelte/src/App.svelte
View on GitHub<script>
import { onMount, tick } from "svelte";
import { gsap } from "gsap";
let container;
onMount(() => {
let ctx;
let cancelled = false;
(async () => {
const { SplitText } = await import("gsap/SplitText");
if (cancelled || !container) return;
gsap.registerPlugin(SplitText);
await tick();
if (cancelled || !container) return;
ctx = gsap.context(() => {
const split = SplitText.create(".headline", { type: "chars" });
gsap.from(split.chars, {
autoAlpha: 0,
y: 24,
stagger: 0.03,
duration: 0.45,
ease: "power2.out",
});
gsap.from(".item", {
autoAlpha: 0,
y: 16,
stagger: 0.08,
duration: 0.4,
});
return () => split.revert();
}, container);
})();
return () => {
cancelled = true;
ctx?.revert();
};
});
</script>
<main bind:this={container}>
<h1 class="headline">GSAP Svelte</h1>
<p class="item">Scoped selectors stay inside this component.</p>
<p class="item">Cleanup runs from the synchronous onMount return.</p>
</main>
<style>
main {
min-height: 100vh;
display: grid;
place-content: center;
gap: 1rem;
padding: 2rem;
font-family: system-ui, sans-serif;
}
.headline {
margin: 0;
font-size: clamp(2.5rem, 8vw, 6rem);
line-height: 0.95;
}
.item {
max-width: 34rem;
margin: 0;
color: #334155;
}
</style>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |