/mode-marketing-ua:gsapfrom mode-marketing-ua
GSAP animation reference for HyperFrames compositions. Covers gsap.to(), from(), fromTo(), easing, stagger, timelines, and performance best practices.
Ships in mode-marketing-ua. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
HyperFrames controls GSAP through its gsap runtime adapter. Create a paused timeline synchronously, register it on window.__timelines with the exact data-composition-id, and let HyperFrames seek it.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
<script>
window.__timelines = window.__timelines || {};
const tl = gsap.timeline({ paused: true });
tl.from(".title", { y: 48, opacity: 0, duration: 0.6, ease: "power3.out" }, 0);
tl.to(".accent", { scaleX: 1, duration: 0.5, ease: "power2.out" }, 0.25);
window.__timelines["main"] = tl; // key must equal data-composition-id on the composition root
</script>
data-composition-id.tl.play() for render-critical motion.vars. Most common.vars to current state (entrances).Always use camelCase property names (e.g. backgroundColor, rotationX).
"power1.out" (default), "power3.inOut", "back.out(1.7)", "elastic.out(1, 0.3)", "none".0.1 or object: { amount: 0.3, from: "center" }, { each: 0.1, from: "random" }.false (default), true, or "auto".-1 in HyperFrames. Compute repeats from the visible duration. yoyo — alternates direction with repeat.true for from()/fromTo(). Set false on later tweens targeting the same property+element to avoid overwrite.Prefer GSAP's transform aliases over raw transform string:
| GSAP property | Equivalent |
|---|---|
x, y, z | translateX/Y/Z (px) |
xPercent, yPercent | translateX/Y in % |
scale, scaleX, scaleY | scale |
rotation | rotate (deg) |
rotationX, rotationY | 3D rotate |
skewX, skewY | skew |
transformOrigin | transform-origin |
opacity. At 0: also sets visibility: hidden."--hue": 180.transformOrigin."360_cw", "-170_short", "90_ccw"."all" or comma-separated; removes inline styles on complete."+=20", "-=10", "*=2".gsap.to(".item", {
x: (i, target, targets) => i * 50,
stagger: 0.1,
});
Built-in eases: power1–power4, back, bounce, circ, elastic, expo, sine. Each has .in, .out, .inOut.
gsap.defaults({ duration: 0.6, ease: "power2.out" });
const tween = gsap.to(".box", { x: 100 });
tween.pause();
tween.play();
tween.reverse();
tween.kill();
tween.progress(0.5);
tween.time(0.2);
Runs setup only when a media query matches; auto-reverts when it stops matching.
let mm = gsap.matchMedia();
mm.add(
{
isDesktop: "(min-width: 800px)",
reduceMotion: "(prefers-reduced-motion: reduce)",
},
(context) => {
const { isDesktop, reduceMotion } = context.conditions;
gsap.to(".box", {
rotation: isDesktop ? 360 : 180,
duration: reduceMotion ? 0 : 2,
});
},
);
const tl = gsap.timeline({ defaults: { duration: 0.5, ease: "power2.out" } });
tl.to(".a", { x: 100 }).to(".b", { y: 50 }).to(".c", { opacity: 0 });
Third argument controls placement:
1 — at 1s"+=0.5" — after end; "-=0.2" — before end"intro", "intro+=0.3""<" — same start as previous; ">" — after previous ends; "<0.2" — 0.2s after previous startstl.to(".a", { x: 100 }, 0);
tl.to(".b", { y: 50 }, "<"); // same start as .a
tl.to(".c", { opacity: 0 }, "<0.2"); // 0.2s after .b starts
tl.addLabel("intro", 0);
tl.to(".a", { x: 100 }, "intro");
tl.addLabel("outro", "+=0.5");
tl.play("outro");
tl.tweenFromTo("intro", "outro");
.play() to start.const master = gsap.timeline();
const child = gsap.timeline();
child.to(".a", { x: 100 }).to(".b", { y: 50 });
master.add(child, 0);
tl.play(), tl.pause(), tl.reverse(), tl.restart(), tl.time(2), tl.progress(0.5), tl.kill().
Animating x, y, scale, rotation, opacity stays on the compositor. Avoid width, height, top, left when transforms achieve the same effect.
will-change: transform;
Only on elements that actually animate.
let xTo = gsap.quickTo("#id", "x", { duration: 0.4, ease: "power3" }),
yTo = gsap.quickTo("#id", "y", { duration: 0.4, ease: "power3" });
container.addEventListener("mousemove", (e) => {
xTo(e.pageX);
yTo(e.pageY);
});
Use stagger instead of separate tweens with manual delays.
Pause or kill off-screen animations.
addLabel() for readable sequencing.packages/core/src/runtime/adapters/gsap.ts.What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/animejsAnime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on window.__hfAnime, making Anime.js seek-driven and deterministic, or translating Anime.js examples into render-safe HyperFrames HTML./contribute-catalogAuthor a new HyperFrames registry block (caption style, VFX block, transition, lower third) or component (text effect, overlay, snippet) and ship it as an upstream PR to the hyperframes repo. Use ONLY when the user wants to CONTRIBUTE to the public catalog — for in-project caption/transition authoring use the `hyperframes` skill, for installing existing registry items use the `hyperframes-registry` skill./css-animationsCSS animation adapter patterns for HyperFrames. Use when authoring CSS keyframes, animation-delay based timing, animation-fill-mode, animation-play-state, or CSS-only motion that HyperFrames must seek deterministically during preview and rendering./higgsfield-generateGenerate images/videos via Higgsfield AI. Default: GPT
Image 2 for images/design/text, Seedance 2.0 for video,
Nano Banana 2/Pro for character/reference image work,
Marketing Studio for ads with avatars/products/hooks,
settings, plus Soul V2/Cinema/Cast/Location and Kling
3.0. Use when: "generate an image", "make a video",
"animate this photo", "image-to-video",
"edit/stylize/remix this image", "produce a clip",
"create an ad", "make a UGC video", "product demo",
"unboxing", "brand video", "presenter video",
"import product from URL", "create avatar for ad",
or "analyze video virality". Supports image-to-image,
image-to-video, references, job/upload IDs, and
Marketing Studio. Chain with higgsfield-soul-id for
face/identity consistency. Virality Predictor
(`brain_activity`) analyzes video virality: hook strength,
attention, retention, distraction risk, and creative
score. NOT for: Soul Character training (use
higgsfield-soul-id), product photoshoots, marketplace
listing cards, text/chat/TTS tasks.
/higgsfield-marketplace-cardsGenerate marketplace product image cards through Higgsfield: compliant
main image, secondary product images, and A+ style content modules. Use when
the user asks for marketplace listing images, product detail cards,
secondary product images, product infographics, lifestyle listing shots,
A+ style content, marketplace image sets, or sales-ready product visuals.
Backend owns marketplace compliance references and prompt templates; this skill
only routes user intent to the CLI.
NOT for generic brand product photography without marketplace/listing context
(use higgsfield-product-photoshoot), video generation or UGC ads (use
higgsfield-generate), or Soul Character training (use higgsfield-soul-id).
/higgsfield-product-photoshootGenerate brand-quality product images through Higgsfield product-photoshoot
prompt enhancement on GPT Image 2 / gpt_image_2. Entry point for professional
brand/product visuals.
Use when: "product photo", "studio shot", "lifestyle image", "Pinterest pin",
"hero/banner", "carousel", "ad creative", "Meta ads", "virtual try-on",
"model wearing", "person holding product", "closeup with hands",
"levitating/floating/splash product", "CGI/surreal product", "restyle",
"seasonal/aesthetic variation", or any product, brand, or paid-social creative.
Modes: product_shot, lifestyle_scene, closeup_product_with_person,
moodboard_pin, hero_banner, social_carousel, ad_creative_pack,
virtual_model_tryout, conceptual_product, restyle. Backend assembles the final
prompt; never freehand it.
NOT for: no-product text-to-image (use higgsfield-generate), branded avatar
video (use higgsfield-generate Marketing Studio), marketplace listing cards
(use higgsfield-marketplace-cards), Soul Character training (use
higgsfield-soul-id).
Generated from the plugin's indexed repository (currentmobile/ua-social-creative-massposting) — no native marketplace selected
npx claudepluginhub p/currentmobile-mode-marketing-uaOther plugins' skills for the same job