Skip to content

gooseworks-ai/goose-skills / skills/video/render-value-prop

render-value-prop

Verified

Render a designed 'value prop' video from a config — 3-5 noun-phrase benefit claims (<=4 words each) revealed sequentially over per-SKU product visuals, one crisp editorial frame per claim (hook sticker -> N claim beats -> brand end card). Deterministic PIL/HTML beat renderer frame-stepped via Playwright and encoded with FFmpeg, sound-off legible, hard cuts, uniform pacing. FREE (no paid calls); music is added separately (create-music-elevenlabs). Use for the value-prop format.

shared/animations/text-entrance/word-by-word.js

View on GitHub
// text-entrance/word-by-word.js
// Each headline word fades + translates individually, 80ms staggered.
// Punchy / sport-active register.
//
// REQUIREMENT: headline must be split into <span class="word"> per word at build time.
// The build script should pre-process headline text:
//   "NSF Certified for Sport." →
//   <span class="word">NSF</span> <span class="word">Certified</span> ...
//
// Contract: animate(t, elements, params?) → void
//   elements: { eyebrow, rule, headline, sub } — headline contains .word children
//   params:   { word_stagger_ms?: 80, word_duration_ms?: 350 }

(function (root) {
  function animateText(t, elements, params) {
    params = params || {};
    const wordStagger = (params.word_stagger_ms ?? 80) / 1000;
    const wordDur     = (params.word_duration_ms ?? 350) / 1000;

    // Eyebrow + rule fade in fast
    if (elements.eyebrow) {
      const u = tw_lin(t, 0.05, 0.30);
      elements.eyebrow.style.opacity = easeOut(u);
    }
    if (elements.rule) {
      const u = tw_lin(t, 0.10, 0.35);
      const e = easeOut(u);
      elements.rule.style.opacity = e;
      elements.rule.style.transform = `scaleX(${0.4 + 0.6 * e})`;
    }
    // Headline: per-word stagger
    if (elements.headline) {
      const words = elements.headline.querySelectorAll('.word');
      const baseStart = 0.25;
      words.forEach(function (w, i) {
        const start = baseStart + i * wordStagger;
        const u = tw_lin(t, start, start + wordDur);
        const e = easeOut(u);
        w.style.opacity = e;
        w.style.transform = `translateY(${(1 - e) * 24}px)`;
      });
    }
    // Sub
    if (elements.sub) {
      const u = tw_lin(t, 0.65, 1.05);
      const e = easeOut(u);
      elements.sub.style.opacity = e;
      elements.sub.style.transform = `translateY(${(1 - e) * 14}px)`;
    }
  }
  root.animateText_wordByWord = animateText;
})(window);
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 323kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 323kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 323kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall