dsh-hyperframes 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +4 -3
- package/README.md +5 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/package.json +2 -2
- package/skills/embedded-captions/SKILL.md +28 -3
- package/skills/embedded-captions/references/aesthetic-principles.md +2 -3
- package/skills/embedded-captions/references/rail.md +1 -1
- package/skills/embedded-captions/scripts/check-occlusion.cjs +4 -1
- package/skills/embedded-captions/scripts/check-overflow.cjs +1 -0
- package/skills/embedded-captions/scripts/check-rail-climax.cjs +5 -1
- package/skills/embedded-captions/scripts/fixtures/heroless/theme.json +11 -0
- package/skills/embedded-captions/scripts/hf-cli.cjs +33 -0
- package/skills/embedded-captions/scripts/make-theme.cjs +95 -57
- package/skills/embedded-captions/scripts/make-theme.test.mjs +131 -0
- package/skills/embedded-captions/scripts/matte.cjs +1 -13
- package/skills/embedded-captions/scripts/measure-layout.cjs +2 -1
- package/skills/embedded-captions/scripts/preview-frames.cjs +39 -11
- package/skills/embedded-captions/scripts/preview-frames.test.mjs +24 -0
- package/skills/embedded-captions/scripts/render-and-composite.sh +8 -52
- package/skills/embedded-captions/scripts/safe-zones.cjs +4 -1
- package/skills/embedded-captions/scripts/transcribe.cjs +5 -14
- package/skills/embedded-captions/scripts/transcribe.test.mjs +41 -0
- package/skills/faceless-explainer/SKILL.md +20 -16
- package/skills/faceless-explainer/references/story-design.md +1 -1
- package/skills/faceless-explainer/scripts/assemble-index.mjs +6 -4
- package/skills/faceless-explainer/scripts/assemble-index.test.mjs +57 -2
- package/skills/faceless-explainer/scripts/audio.mjs +2 -0
- package/skills/faceless-explainer/scripts/build-frame.mjs +6 -3
- package/skills/faceless-explainer/scripts/captions.mjs +7 -4
- package/skills/faceless-explainer/scripts/frame-packets.mjs +4 -4
- package/skills/faceless-explainer/scripts/lib/bgm-volume.mjs +4 -0
- package/skills/faceless-explainer/scripts/lib/captured-fonts.mjs +58 -0
- package/skills/{hyperframes-core → faceless-explainer}/scripts/lib/frame-packets-core.mjs +5 -23
- package/skills/faceless-explainer/scripts/lib/storyboard.mjs +1 -1
- package/skills/faceless-explainer/scripts/lib/transitions.json +3 -3
- package/skills/faceless-explainer/scripts/transitions.mjs +1 -0
- package/skills/faceless-explainer/scripts/transitions.test.mjs +2 -0
- package/skills/faceless-explainer/sub-agents/frame-worker.md +1 -1
- package/skills/figma/SKILL.md +2 -0
- package/skills/general-video/SKILL.md +13 -11
- package/skills/general-video/scripts/frame-packets.mjs +4 -4
- package/skills/general-video/scripts/lib/frame-packets-core.mjs +194 -0
- package/skills/general-video/sub-agents/frame-worker.md +1 -1
- package/skills/hyperframes/SKILL.md +40 -30
- package/skills/{hyperframes-core → hyperframes}/references/brief-contract.md +15 -15
- package/skills/{hyperframes-core → hyperframes}/references/brief-format.md +8 -8
- package/skills/hyperframes/references/capability-menu.md +2 -2
- package/skills/{hyperframes-core → hyperframes}/references/frame-worker-core.md +1 -1
- package/skills/hyperframes/references/intent-interview.md +16 -16
- package/skills/hyperframes/references/plugin-installation.md +43 -0
- package/skills/{hyperframes-core → hyperframes}/references/production-loop.md +11 -11
- package/skills/hyperframes/references/review-loop.md +37 -0
- package/skills/hyperframes/references/route-briefs.md +1 -1
- package/skills/hyperframes/references/routes/motion-graphics.md +1 -1
- package/skills/{hyperframes-core → hyperframes}/references/script-format.md +3 -3
- package/skills/hyperframes/references/skill-lifecycle.md +2 -0
- package/skills/{hyperframes-core → hyperframes}/references/storyboard-format.md +3 -34
- package/skills/hyperframes/scripts/lib/frame-packets-core.mjs +194 -0
- package/skills/hyperframes/scripts/plugin-cli.mjs +88 -0
- package/skills/hyperframes/scripts/plugin-cli.test.mjs +117 -0
- package/skills/hyperframes-animation/SKILL.md +5 -1
- package/skills/hyperframes-animation/adapters/gsap.md +1 -1
- package/skills/hyperframes-animation/adapters/lottie.md +15 -2
- package/skills/hyperframes-animation/adapters/three.md +14 -0
- package/skills/hyperframes-animation/blueprints/titlecard-reveal.md +1 -1
- package/skills/hyperframes-animation/references/motion-blur.md +133 -0
- package/skills/hyperframes-animation/rules/cursor-click-ripple.md +1 -1
- package/skills/hyperframes-animation/rules/dynamic-content-sequencing.md +1 -1
- package/skills/hyperframes-animation/rules/hacker-flip-3d.md +1 -1
- package/skills/hyperframes-animation/rules/kinetic-beat-slam.md +2 -2
- package/skills/hyperframes-animation/rules/motion-blur-streak.md +1 -1
- package/skills/hyperframes-animation/rules/vertical-spring-ticker.md +1 -1
- package/skills/hyperframes-animation/scripts/package-loader.mjs +47 -16
- package/skills/hyperframes-animation/scripts/package-loader.test.mjs +52 -0
- package/skills/hyperframes-animation/techniques.md +1 -1
- package/skills/hyperframes-animation/transitions/TRANSITION-REGISTRY.md +3 -3
- package/skills/hyperframes-animation/transitions/css-push.md +4 -4
- package/skills/hyperframes-audio/SKILL.md +30 -22
- package/skills/hyperframes-audio/scripts/carve.mjs +6 -3
- package/skills/hyperframes-audio/scripts/carve.test.mjs +16 -1
- package/skills/hyperframes-cli/SKILL.md +44 -35
- package/skills/hyperframes-cli/references/init-and-scaffold.md +8 -6
- package/skills/hyperframes-cli/references/lint-validate-inspect.md +3 -3
- package/skills/hyperframes-cli/references/preview-render.md +35 -32
- package/skills/hyperframes-cli/references/upgrade-info-misc.md +50 -1
- package/skills/hyperframes-core/SKILL.md +30 -24
- package/skills/hyperframes-core/references/composition-patterns.md +3 -42
- package/skills/hyperframes-core/references/creator-editing-recipes.md +131 -7
- package/skills/hyperframes-core/references/data-attributes.md +11 -11
- package/skills/hyperframes-core/references/determinism-rules.md +2 -19
- package/skills/hyperframes-core/references/full-screen-motion.md +0 -9
- package/skills/hyperframes-core/references/minimal-composition.md +2 -2
- package/skills/hyperframes-core/references/sub-compositions.md +3 -66
- package/skills/hyperframes-core/references/tailwind.md +1 -20
- package/skills/hyperframes-core/references/tracks-and-clips.md +2 -6
- package/skills/hyperframes-core/references/variables-and-media.md +3 -3
- package/skills/hyperframes-creative/SKILL.md +2 -0
- package/skills/hyperframes-creative/references/house-style.md +15 -15
- package/skills/hyperframes-creative/references/story-spine.md +3 -1
- package/skills/hyperframes-creative/references/storyboard-recipe.md +57 -0
- package/skills/hyperframes-creative/references/typography.md +1 -1
- package/skills/hyperframes-creative/scripts/package-loader.mjs +47 -16
- package/skills/hyperframes-creative/scripts/package-loader.test.mjs +52 -0
- package/skills/hyperframes-keyframes/SKILL.md +4 -2
- package/skills/hyperframes-registry/SKILL.md +3 -1
- package/skills/hyperframes-registry/references/contributing.md +8 -2
- package/skills/hyperframes-registry/references/discovery.md +20 -34
- package/skills/hyperframes-studio/SKILL.md +77 -0
- package/skills/media-use/SKILL.md +14 -12
- package/skills/media-use/audio/references/captions/authoring.md +4 -0
- package/skills/media-use/audio/references/remove-background.md +1 -1
- package/skills/media-use/audio/references/tts-to-captions.md +11 -2
- package/skills/media-use/audio/references/tts.md +84 -6
- package/skills/media-use/audio/scripts/audio.mjs +15 -6
- package/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +113 -0
- package/skills/media-use/audio/scripts/lib/audio-meta.mjs +39 -0
- package/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +136 -0
- package/skills/media-use/audio/scripts/lib/bgm-volume.mjs +4 -0
- package/skills/media-use/audio/scripts/lib/bgm.mjs +2 -6
- package/skills/media-use/audio/scripts/lib/gemini-auth.mjs +43 -0
- package/skills/media-use/audio/scripts/lib/gemini-auth.py +52 -0
- package/skills/media-use/audio/scripts/lib/gemini-auth.test.mjs +86 -0
- package/skills/media-use/audio/scripts/lib/gemini-auth_test.py +90 -0
- package/skills/media-use/audio/scripts/lib/gemini-tts.mjs +122 -0
- package/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +243 -0
- package/skills/media-use/audio/scripts/lib/heygen.mjs +2 -1
- package/skills/media-use/audio/scripts/lib/tts.mjs +15 -3
- package/skills/media-use/audio/scripts/wait-bgm.mjs +8 -4
- package/skills/media-use/audio/scripts/wait-bgm.test.mjs +65 -0
- package/skills/media-use/references/audio.md +3 -2
- package/skills/media-use/references/grading.md +7 -7
- package/skills/media-use/references/media-treatment-recipes.md +1 -1
- package/skills/media-use/references/memory.md +2 -2
- package/skills/media-use/references/meta.md +2 -2
- package/skills/media-use/references/operations.md +15 -13
- package/skills/media-use/references/resolve.md +22 -11
- package/skills/media-use/references/setup-providers.md +11 -11
- package/skills/media-use/scripts/audio-duck.mjs +19 -27
- package/skills/media-use/scripts/compatibility.test.mjs +96 -0
- package/skills/media-use/scripts/lib/config-lock.mjs +45 -0
- package/skills/media-use/scripts/lib/duck.mjs +16 -10
- package/skills/media-use/scripts/lib/media-fetch.mjs +85 -0
- package/skills/media-use/scripts/lib/media-home.mjs +20 -0
- package/skills/media-use/scripts/lib/npx-sync.mjs +28 -2
- package/skills/media-use/scripts/lib/prefs-store.mjs +2 -2
- package/skills/media-use/scripts/lib/recipe-store.mjs +2 -2
- package/skills/media-use/scripts/lib/telemetry.mjs +29 -41
- package/skills/media-use/scripts/lib/transcriptCutFade.mjs +21 -0
- package/skills/media-use/scripts/prefs.mjs +1 -1
- package/skills/media-use/scripts/recipe.mjs +1 -1
- package/skills/media-use/scripts/resolve-plugin.test.mjs +62 -0
- package/skills/media-use/scripts/resolve.mjs +27 -1267
- package/skills/media-use/scripts/transcribe.mjs +39 -25
- package/skills/media-use/scripts/transcribe.test.mjs +112 -0
- package/skills/media-use/scripts/transcript-cut.mjs +39 -8
- package/skills/media-use/scripts/transcript-cut.test.mjs +117 -0
- package/skills/motion-graphics/SKILL.md +3 -1
- package/skills/motion-graphics/agents/builder.md +1 -0
- package/skills/motion-graphics/agents/director.md +2 -1
- package/skills/motion-graphics/catalog-map.md +25 -13
- package/skills/motion-graphics/categories/charts/module.md +2 -1
- package/skills/motion-graphics/categories/lower-thirds/module.md +4 -0
- package/skills/motion-graphics/categories/news/module.md +1 -1
- package/skills/motion-graphics/references/motion-vocabulary.md +4 -0
- package/skills/music-to-video/SKILL.md +8 -6
- package/skills/music-to-video/references/montage.md +3 -6
- package/skills/music-to-video/references/motion-primitives/3d-card-flip/index.html +10 -111
- package/skills/music-to-video/references/motion-primitives/3d-card-flip/scene.html +119 -0
- package/skills/music-to-video/references/motion-primitives/bg-flow-field/index.html +11 -284
- package/skills/music-to-video/references/motion-primitives/bg-flow-field/scene.html +294 -0
- package/skills/music-to-video/references/motion-primitives/binary-decrypt/index.html +10 -76
- package/skills/music-to-video/references/motion-primitives/binary-decrypt/scene.html +85 -0
- package/skills/music-to-video/references/motion-primitives/blur-resolve/index.html +10 -52
- package/skills/music-to-video/references/motion-primitives/blur-resolve/scene.html +60 -0
- package/skills/music-to-video/references/motion-primitives/braam-punch/index.html +10 -92
- package/skills/music-to-video/references/motion-primitives/braam-punch/scene.html +100 -0
- package/skills/music-to-video/references/motion-primitives/chromatic-split/index.html +10 -103
- package/skills/music-to-video/references/motion-primitives/chromatic-split/scene.html +111 -0
- package/skills/music-to-video/references/motion-primitives/chrome-sweep/index.html +10 -60
- package/skills/music-to-video/references/motion-primitives/chrome-sweep/scene.html +68 -0
- package/skills/music-to-video/references/motion-primitives/counting-punch/index.html +10 -110
- package/skills/music-to-video/references/motion-primitives/counting-punch/scene.html +119 -0
- package/skills/music-to-video/references/motion-primitives/crash-zoom-in/index.html +10 -112
- package/skills/music-to-video/references/motion-primitives/crash-zoom-in/scene.html +120 -0
- package/skills/music-to-video/references/motion-primitives/datamosh-smear/index.html +10 -121
- package/skills/music-to-video/references/motion-primitives/datamosh-smear/scene.html +131 -0
- package/skills/music-to-video/references/motion-primitives/directional-fill/index.html +10 -90
- package/skills/music-to-video/references/motion-primitives/directional-fill/scene.html +103 -0
- package/skills/music-to-video/references/motion-primitives/dolly-zoom/index.html +10 -94
- package/skills/music-to-video/references/motion-primitives/dolly-zoom/scene.html +102 -0
- package/skills/music-to-video/references/motion-primitives/electric-arc/index.html +10 -100
- package/skills/music-to-video/references/motion-primitives/electric-arc/scene.html +105 -0
- package/skills/music-to-video/references/motion-primitives/flash-cut/index.html +10 -89
- package/skills/music-to-video/references/motion-primitives/flash-cut/scene.html +97 -0
- package/skills/music-to-video/references/motion-primitives/gooey-metaball/index.html +10 -197
- package/skills/music-to-video/references/motion-primitives/gooey-metaball/scene.html +206 -0
- package/skills/music-to-video/references/motion-primitives/hard-cut/index.html +10 -74
- package/skills/music-to-video/references/motion-primitives/hard-cut/scene.html +82 -0
- package/skills/music-to-video/references/motion-primitives/hypercut-whip/index.html +10 -36
- package/skills/music-to-video/references/motion-primitives/hypercut-whip/scene.html +44 -0
- package/skills/music-to-video/references/motion-primitives/iris-open/index.html +10 -61
- package/skills/music-to-video/references/motion-primitives/iris-open/scene.html +69 -0
- package/skills/music-to-video/references/motion-primitives/kinetic-letter-in/index.html +10 -55
- package/skills/music-to-video/references/motion-primitives/kinetic-letter-in/scene.html +64 -0
- package/skills/music-to-video/references/motion-primitives/liquid-morph/index.html +10 -88
- package/skills/music-to-video/references/motion-primitives/liquid-morph/scene.html +96 -0
- package/skills/music-to-video/references/motion-primitives/mask-reveal/index.html +10 -66
- package/skills/music-to-video/references/motion-primitives/mask-reveal/scene.html +74 -0
- package/skills/music-to-video/references/motion-primitives/mosaic-pack/index.html +10 -81
- package/skills/music-to-video/references/motion-primitives/mosaic-pack/scene.html +89 -0
- package/skills/music-to-video/references/motion-primitives/neon-flicker/index.html +10 -65
- package/skills/music-to-video/references/motion-primitives/neon-flicker/scene.html +73 -0
- package/skills/music-to-video/references/motion-primitives/outline-to-fill/index.html +10 -74
- package/skills/music-to-video/references/motion-primitives/outline-to-fill/scene.html +82 -0
- package/skills/music-to-video/references/motion-primitives/palette-flip/index.html +10 -89
- package/skills/music-to-video/references/motion-primitives/palette-flip/scene.html +97 -0
- package/skills/music-to-video/references/motion-primitives/particle-burst/index.html +10 -98
- package/skills/music-to-video/references/motion-primitives/particle-burst/scene.html +106 -0
- package/skills/music-to-video/references/motion-primitives/pixel-dissolve/index.html +10 -78
- package/skills/music-to-video/references/motion-primitives/pixel-dissolve/scene.html +86 -0
- package/skills/music-to-video/references/motion-primitives/radial-burst-lines/index.html +10 -117
- package/skills/music-to-video/references/motion-primitives/radial-burst-lines/scene.html +130 -0
- package/skills/music-to-video/references/motion-primitives/screen-shake/index.html +10 -70
- package/skills/music-to-video/references/motion-primitives/screen-shake/scene.html +78 -0
- package/skills/music-to-video/references/motion-primitives/slot-machine-reveal/index.html +10 -87
- package/skills/music-to-video/references/motion-primitives/slot-machine-reveal/scene.html +100 -0
- package/skills/music-to-video/references/motion-primitives/spotlight-sweep/index.html +10 -94
- package/skills/music-to-video/references/motion-primitives/spotlight-sweep/scene.html +102 -0
- package/skills/music-to-video/references/motion-primitives/staggered-exit/index.html +10 -74
- package/skills/music-to-video/references/motion-primitives/staggered-exit/scene.html +82 -0
- package/skills/music-to-video/references/motion-primitives/text-spectral-rays/index.html +11 -271
- package/skills/music-to-video/references/motion-primitives/text-spectral-rays/scene.html +280 -0
- package/skills/music-to-video/references/motion-primitives/text-wave-distort/index.html +10 -92
- package/skills/music-to-video/references/motion-primitives/text-wave-distort/scene.html +106 -0
- package/skills/music-to-video/references/motion-primitives/tile-mosaic/index.html +10 -101
- package/skills/music-to-video/references/motion-primitives/tile-mosaic/scene.html +109 -0
- package/skills/music-to-video/references/motion-primitives/typewriter-reveal/index.html +10 -79
- package/skills/music-to-video/references/motion-primitives/typewriter-reveal/scene.html +91 -0
- package/skills/music-to-video/references/motion-primitives/word-grid-burst/index.html +10 -83
- package/skills/music-to-video/references/motion-primitives/word-grid-burst/scene.html +96 -0
- package/skills/music-to-video/references/planning.md +2 -2
- package/skills/music-to-video/scripts/lib/storyboard.mjs +1 -1
- package/skills/music-to-video/sub-agents/frame-worker.md +2 -2
- package/skills/pr-to-video/SKILL.md +20 -16
- package/skills/pr-to-video/references/code-vocabulary.md +14 -12
- package/skills/pr-to-video/references/story-design.md +1 -1
- package/skills/pr-to-video/scripts/assemble-index.mjs +6 -4
- package/skills/pr-to-video/scripts/assemble-index.test.mjs +57 -2
- package/skills/pr-to-video/scripts/audio.mjs +2 -0
- package/skills/pr-to-video/scripts/build-frame.mjs +6 -3
- package/skills/pr-to-video/scripts/captions.mjs +7 -4
- package/skills/pr-to-video/scripts/captions.test.mjs +41 -0
- package/skills/pr-to-video/scripts/frame-packets.mjs +4 -4
- package/skills/pr-to-video/scripts/lib/bgm-volume.mjs +4 -0
- package/skills/pr-to-video/scripts/lib/captured-fonts.mjs +58 -0
- package/skills/pr-to-video/scripts/lib/frame-packets-core.mjs +194 -0
- package/skills/pr-to-video/scripts/lib/storyboard.mjs +1 -1
- package/skills/pr-to-video/scripts/lib/transitions.json +3 -3
- package/skills/pr-to-video/scripts/transitions.mjs +7 -5
- package/skills/pr-to-video/sub-agents/frame-worker.md +1 -1
- package/skills/product-launch-video/SKILL.md +20 -16
- package/skills/product-launch-video/references/story-design.md +1 -1
- package/skills/product-launch-video/scripts/assemble-index.mjs +6 -4
- package/skills/product-launch-video/scripts/assemble-index.test.mjs +57 -2
- package/skills/product-launch-video/scripts/audio.mjs +2 -0
- package/skills/product-launch-video/scripts/audio.test.mjs +16 -0
- package/skills/product-launch-video/scripts/build-frame-subsets.test.mjs +152 -0
- package/skills/product-launch-video/scripts/build-frame.mjs +6 -3
- package/skills/product-launch-video/scripts/captions.mjs +7 -4
- package/skills/product-launch-video/scripts/frame-packets.mjs +4 -4
- package/skills/product-launch-video/scripts/lib/bgm-volume.mjs +4 -0
- package/skills/product-launch-video/scripts/lib/captured-fonts.mjs +58 -0
- package/skills/product-launch-video/scripts/lib/frame-packets-core.mjs +194 -0
- package/skills/product-launch-video/scripts/lib/storyboard.mjs +1 -1
- package/skills/product-launch-video/scripts/lib/transitions.json +3 -3
- package/skills/product-launch-video/scripts/transitions.mjs +7 -5
- package/skills/product-launch-video/scripts/transitions.test.mjs +68 -0
- package/skills/product-launch-video/sub-agents/frame-worker.md +1 -1
- package/skills/remotion-to-hyperframes/SKILL.md +7 -4
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/expected.json +5 -5
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/hf-src/compositions/title.html +31 -0
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-1-title-card/hf-src/index.html +10 -25
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/README.md +8 -8
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/expected.json +9 -9
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/compositions/scene-1.html +35 -0
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/compositions/scene-2.html +35 -0
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/compositions/scene-3.html +36 -0
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-2-multi-scene/hf-src/index.html +28 -71
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/expected.json +3 -3
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/compositions/scene-1.html +52 -0
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/compositions/scene-2.html +99 -0
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/compositions/scene-3.html +55 -0
- package/skills/remotion-to-hyperframes/assets/test-corpus/tier-3-data-driven/hf-src/index.html +13 -212
- package/skills/remotion-to-hyperframes/references/api-map.md +16 -16
- package/skills/remotion-to-hyperframes/references/limitations.md +7 -7
- package/skills/remotion-to-hyperframes/references/lottie.md +5 -7
- package/skills/remotion-to-hyperframes/references/media.md +3 -3
- package/skills/remotion-to-hyperframes/references/parameters.md +5 -0
- package/skills/remotion-to-hyperframes/references/sequencing.md +71 -18
- package/skills/slideshow/SKILL.md +4 -1
- package/skills/slideshow/references/standalone-harness.md +0 -3
- package/skills/talking-head-recut/SKILL.md +10 -1
- package/skills/hyperframes-core/references/review-loop.md +0 -41
- package/skills/media-use/scripts/lib/adopt.mjs +0 -128
- package/skills/media-use/scripts/lib/adopt.test.mjs +0 -95
- package/skills/media-use/scripts/lib/bgm-provider.mjs +0 -20
- package/skills/media-use/scripts/lib/brand-provider.mjs +0 -59
- package/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +0 -108
- package/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +0 -85
- package/skills/media-use/scripts/lib/cache.mjs +0 -150
- package/skills/media-use/scripts/lib/candidates.mjs +0 -91
- package/skills/media-use/scripts/lib/candidates.test.mjs +0 -155
- package/skills/media-use/scripts/lib/codex-provider.mjs +0 -161
- package/skills/media-use/scripts/lib/codex-provider.test.mjs +0 -34
- package/skills/media-use/scripts/lib/coverage.test.mjs +0 -117
- package/skills/media-use/scripts/lib/cube-build.mjs +0 -181
- package/skills/media-use/scripts/lib/cube-build.test.mjs +0 -80
- package/skills/media-use/scripts/lib/cube-validate.mjs +0 -198
- package/skills/media-use/scripts/lib/cube-validate.test.mjs +0 -125
- package/skills/media-use/scripts/lib/cutlist.test.mjs +0 -148
- package/skills/media-use/scripts/lib/duck.test.mjs +0 -118
- package/skills/media-use/scripts/lib/error-diffusion.test.mjs +0 -102
- package/skills/media-use/scripts/lib/freeze.mjs +0 -70
- package/skills/media-use/scripts/lib/freeze.test.mjs +0 -46
- package/skills/media-use/scripts/lib/grade-analyzer.mjs +0 -264
- package/skills/media-use/scripts/lib/grade-analyzer.test.mjs +0 -285
- package/skills/media-use/scripts/lib/heygen-cli.mjs +0 -191
- package/skills/media-use/scripts/lib/heygen-cli.test.mjs +0 -301
- package/skills/media-use/scripts/lib/heygen-search.mjs +0 -45
- package/skills/media-use/scripts/lib/heygen-search.test.mjs +0 -49
- package/skills/media-use/scripts/lib/heygen-video-provider.mjs +0 -127
- package/skills/media-use/scripts/lib/heygen-video-provider.test.mjs +0 -344
- package/skills/media-use/scripts/lib/image-provider.mjs +0 -44
- package/skills/media-use/scripts/lib/local-models.mjs +0 -318
- package/skills/media-use/scripts/lib/local-models.test.mjs +0 -220
- package/skills/media-use/scripts/lib/local-run.mjs +0 -78
- package/skills/media-use/scripts/lib/local-run.test.mjs +0 -121
- package/skills/media-use/scripts/lib/logo-provider.mjs +0 -222
- package/skills/media-use/scripts/lib/logo-provider.test.mjs +0 -137
- package/skills/media-use/scripts/lib/ltx-video-provider.mjs +0 -94
- package/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +0 -316
- package/skills/media-use/scripts/lib/lut-preset-provider.mjs +0 -266
- package/skills/media-use/scripts/lib/lut-preset-provider.test.mjs +0 -176
- package/skills/media-use/scripts/lib/manifest.test.mjs +0 -388
- package/skills/media-use/scripts/lib/match.mjs +0 -47
- package/skills/media-use/scripts/lib/mflux-provider.mjs +0 -128
- package/skills/media-use/scripts/lib/mflux-provider.test.mjs +0 -174
- package/skills/media-use/scripts/lib/misses.mjs +0 -49
- package/skills/media-use/scripts/lib/misses.test.mjs +0 -78
- package/skills/media-use/scripts/lib/npx-sync.test.mjs +0 -50
- package/skills/media-use/scripts/lib/parakeet-words.test.mjs +0 -44
- package/skills/media-use/scripts/lib/prefs-store.test.mjs +0 -189
- package/skills/media-use/scripts/lib/probe.mjs +0 -39
- package/skills/media-use/scripts/lib/probe.test.mjs +0 -31
- package/skills/media-use/scripts/lib/providers.mjs +0 -5
- package/skills/media-use/scripts/lib/recipe-store.test.mjs +0 -367
- package/skills/media-use/scripts/lib/registry.mjs +0 -218
- package/skills/media-use/scripts/lib/registry.test.mjs +0 -261
- package/skills/media-use/scripts/lib/search.mjs +0 -24
- package/skills/media-use/scripts/lib/search.test.mjs +0 -32
- package/skills/media-use/scripts/lib/sfx-provider.mjs +0 -23
- package/skills/media-use/scripts/lib/specs.mjs +0 -132
- package/skills/media-use/scripts/lib/specs.test.mjs +0 -157
- package/skills/media-use/scripts/lib/stats.mjs +0 -117
- package/skills/media-use/scripts/lib/stats.test.mjs +0 -165
- package/skills/media-use/scripts/lib/telemetry.test.mjs +0 -373
- package/skills/media-use/scripts/lib/tts-local-provider.mjs +0 -92
- package/skills/media-use/scripts/lib/tts-local-provider.test.mjs +0 -72
- package/skills/media-use/scripts/lib/usage.mjs +0 -57
- package/skills/media-use/scripts/lib/usage.test.mjs +0 -54
- package/skills/media-use/scripts/lib/voice-provider.mjs +0 -57
- package/skills/media-use/scripts/lib/voice-provider.test.mjs +0 -46
- package/skills/media-use/scripts/resolve.test.mjs +0 -1120
- /package/skills/{hyperframes-core → hyperframes}/references/subagent-dispatch.md +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<template id="spotlight-sweep-template">
|
|
2
|
+
<div data-composition-id="spotlight-sweep" data-width="1920" data-height="1080" data-duration="2">
|
|
3
|
+
<style>
|
|
4
|
+
:root {
|
|
5
|
+
--hg-violet: #7c3aed;
|
|
6
|
+
--hg-violet-2: #a855f7;
|
|
7
|
+
--hg-bg: #0a0a0f;
|
|
8
|
+
--hg-fg: #f5f5fa;
|
|
9
|
+
--hg-dim: #6b6b78;
|
|
10
|
+
}
|
|
11
|
+
* {
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
.dim-layer {
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset: 0;
|
|
19
|
+
background: #03030a;
|
|
20
|
+
}
|
|
21
|
+
.hero-bright,
|
|
22
|
+
.hero-dim {
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: 0;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
font-family: "Playfair Display", serif;
|
|
29
|
+
font-weight: 900;
|
|
30
|
+
font-size: 320px;
|
|
31
|
+
letter-spacing: -0.04em;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
}
|
|
34
|
+
.hero-dim {
|
|
35
|
+
color: rgba(245, 245, 250, 0.06);
|
|
36
|
+
}
|
|
37
|
+
.hero-bright {
|
|
38
|
+
color: var(--hg-fg);
|
|
39
|
+
text-shadow:
|
|
40
|
+
0 0 30px rgba(168, 85, 247, 0.4),
|
|
41
|
+
0 0 80px rgba(168, 85, 247, 0.2);
|
|
42
|
+
-webkit-mask-image: radial-gradient(
|
|
43
|
+
circle 360px at -400px 50%,
|
|
44
|
+
#000 0%,
|
|
45
|
+
rgba(0, 0, 0, 0.6) 60%,
|
|
46
|
+
transparent 80%
|
|
47
|
+
);
|
|
48
|
+
mask-image: radial-gradient(
|
|
49
|
+
circle 360px at -400px 50%,
|
|
50
|
+
#000 0%,
|
|
51
|
+
rgba(0, 0, 0, 0.6) 60%,
|
|
52
|
+
transparent 80%
|
|
53
|
+
);
|
|
54
|
+
will-change: mask-image;
|
|
55
|
+
}
|
|
56
|
+
.spotlight-glow {
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset: 0;
|
|
59
|
+
background: radial-gradient(
|
|
60
|
+
circle 380px at -400px 50%,
|
|
61
|
+
rgba(168, 85, 247, 0.18) 0%,
|
|
62
|
+
transparent 60%
|
|
63
|
+
);
|
|
64
|
+
will-change: background;
|
|
65
|
+
mix-blend-mode: screen;
|
|
66
|
+
}
|
|
67
|
+
</style>
|
|
68
|
+
<div class="dim-layer"></div>
|
|
69
|
+
<div class="hero-dim">DISCOVER</div>
|
|
70
|
+
<div class="hero-bright" id="bright">DISCOVER</div>
|
|
71
|
+
<div class="spotlight-glow" id="glow"></div>
|
|
72
|
+
<script>
|
|
73
|
+
window.__timelines = window.__timelines || {};
|
|
74
|
+
const tl = gsap.timeline({ paused: true });
|
|
75
|
+
|
|
76
|
+
// Animate the spotlight x position via mask-image (use a proxy + onUpdate for smoothness)
|
|
77
|
+
const state = { x: -400 };
|
|
78
|
+
tl.to(
|
|
79
|
+
state,
|
|
80
|
+
{
|
|
81
|
+
x: 2300,
|
|
82
|
+
duration: 1.4,
|
|
83
|
+
ease: "power2.inOut",
|
|
84
|
+
onUpdate: function () {
|
|
85
|
+
const m = `radial-gradient(circle 360px at ${state.x}px 50%, #000 0%, rgba(0,0,0,0.6) 60%, transparent 80%)`;
|
|
86
|
+
const g = `radial-gradient(circle 380px at ${state.x}px 50%, rgba(168, 85, 247, 0.18) 0%, transparent 60%)`;
|
|
87
|
+
const bright = document.getElementById("bright");
|
|
88
|
+
const glow = document.getElementById("glow");
|
|
89
|
+
if (bright) {
|
|
90
|
+
bright.style.maskImage = m;
|
|
91
|
+
bright.style.webkitMaskImage = m;
|
|
92
|
+
}
|
|
93
|
+
if (glow) glow.style.background = g;
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
0.3,
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
window.__timelines["spotlight-sweep"] = tl;
|
|
100
|
+
</script>
|
|
101
|
+
</div>
|
|
102
|
+
</template>
|
|
@@ -13,11 +13,6 @@
|
|
|
13
13
|
--hg-fg: #f5f5fa;
|
|
14
14
|
--hg-dim: #6b6b78;
|
|
15
15
|
}
|
|
16
|
-
* {
|
|
17
|
-
margin: 0;
|
|
18
|
-
padding: 0;
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
}
|
|
21
16
|
html,
|
|
22
17
|
body {
|
|
23
18
|
margin: 0;
|
|
@@ -29,38 +24,6 @@
|
|
|
29
24
|
color: var(--hg-fg);
|
|
30
25
|
-webkit-font-smoothing: antialiased;
|
|
31
26
|
}
|
|
32
|
-
#scene {
|
|
33
|
-
position: absolute;
|
|
34
|
-
inset: 0;
|
|
35
|
-
width: 1920px;
|
|
36
|
-
height: 1080px;
|
|
37
|
-
}
|
|
38
|
-
.stage {
|
|
39
|
-
position: absolute;
|
|
40
|
-
inset: 0;
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
}
|
|
45
|
-
.grid {
|
|
46
|
-
display: grid;
|
|
47
|
-
grid-template-columns: repeat(4, 320px);
|
|
48
|
-
grid-template-rows: repeat(2, 320px);
|
|
49
|
-
gap: 36px;
|
|
50
|
-
}
|
|
51
|
-
.card {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
border-radius: 28px;
|
|
56
|
-
background: linear-gradient(135deg, var(--hg-violet), var(--hg-violet-2));
|
|
57
|
-
color: var(--hg-fg);
|
|
58
|
-
font-weight: 900;
|
|
59
|
-
font-size: 72px;
|
|
60
|
-
letter-spacing: -0.02em;
|
|
61
|
-
box-shadow: 0 24px 60px rgba(124, 58, 237, 0.35);
|
|
62
|
-
will-change: transform, opacity;
|
|
63
|
-
}
|
|
64
27
|
</style>
|
|
65
28
|
</head>
|
|
66
29
|
<body>
|
|
@@ -72,46 +35,19 @@
|
|
|
72
35
|
data-width="1920"
|
|
73
36
|
data-height="1080"
|
|
74
37
|
>
|
|
75
|
-
<div
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<div class="card">CORE</div>
|
|
85
|
-
<div class="card">FLUX</div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
38
|
+
<div
|
|
39
|
+
id="scene"
|
|
40
|
+
class="clip"
|
|
41
|
+
data-composition-id="staggered-exit"
|
|
42
|
+
data-composition-src="scene.html"
|
|
43
|
+
data-start="0"
|
|
44
|
+
data-duration="2"
|
|
45
|
+
data-track-index="1"
|
|
46
|
+
></div>
|
|
89
47
|
</div>
|
|
90
48
|
<script>
|
|
91
49
|
window.__timelines = window.__timelines || {};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const cards = gsap.utils.toArray(".card");
|
|
95
|
-
const hold = 0.4; // fully visible hold before the cascade begins
|
|
96
|
-
const step = 0.11; // per-element offset
|
|
97
|
-
const exitDur = 0.45;
|
|
98
|
-
|
|
99
|
-
// start fully visible
|
|
100
|
-
tl.set(cards, { autoAlpha: 1, y: 0 }, 0);
|
|
101
|
-
|
|
102
|
-
// ordered exit: each card slides down + fades, one after another
|
|
103
|
-
for (let i = 0; i < cards.length; i++) {
|
|
104
|
-
tl.to(
|
|
105
|
-
cards[i],
|
|
106
|
-
{ y: 80, autoAlpha: 0, duration: exitDur, ease: "power3.in" },
|
|
107
|
-
hold + i * step,
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// snap all back to the visible start state so the next loop begins full
|
|
112
|
-
tl.set(cards, { autoAlpha: 1, y: 0 }, 1.95);
|
|
113
|
-
|
|
114
|
-
window.__timelines["main"] = tl;
|
|
50
|
+
window.__timelines["main"] = gsap.timeline({ paused: true });
|
|
115
51
|
</script>
|
|
116
52
|
</body>
|
|
117
53
|
</html>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<template id="staggered-exit-template">
|
|
2
|
+
<div data-composition-id="staggered-exit" data-width="1920" data-height="1080" data-duration="2">
|
|
3
|
+
<style>
|
|
4
|
+
:root {
|
|
5
|
+
--hg-violet: #7c3aed;
|
|
6
|
+
--hg-violet-2: #a855f7;
|
|
7
|
+
--hg-bg: #0a0a0f;
|
|
8
|
+
--hg-fg: #f5f5fa;
|
|
9
|
+
--hg-dim: #6b6b78;
|
|
10
|
+
}
|
|
11
|
+
* {
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
.stage {
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset: 0;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
23
|
+
.grid {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: repeat(4, 320px);
|
|
26
|
+
grid-template-rows: repeat(2, 320px);
|
|
27
|
+
gap: 36px;
|
|
28
|
+
}
|
|
29
|
+
.card {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
border-radius: 28px;
|
|
34
|
+
background: linear-gradient(135deg, var(--hg-violet), var(--hg-violet-2));
|
|
35
|
+
color: var(--hg-fg);
|
|
36
|
+
font-weight: 900;
|
|
37
|
+
font-size: 72px;
|
|
38
|
+
letter-spacing: -0.02em;
|
|
39
|
+
box-shadow: 0 24px 60px rgba(124, 58, 237, 0.35);
|
|
40
|
+
will-change: transform, opacity;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
43
|
+
<div class="stage">
|
|
44
|
+
<div class="grid">
|
|
45
|
+
<div class="card">NORTH</div>
|
|
46
|
+
<div class="card">EAST</div>
|
|
47
|
+
<div class="card">SOUTH</div>
|
|
48
|
+
<div class="card">WEST</div>
|
|
49
|
+
<div class="card">PEAK</div>
|
|
50
|
+
<div class="card">EDGE</div>
|
|
51
|
+
<div class="card">CORE</div>
|
|
52
|
+
<div class="card">FLUX</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<script>
|
|
56
|
+
window.__timelines = window.__timelines || {};
|
|
57
|
+
const tl = gsap.timeline({ paused: true });
|
|
58
|
+
|
|
59
|
+
const cards = gsap.utils.toArray(".card");
|
|
60
|
+
const hold = 0.4; // fully visible hold before the cascade begins
|
|
61
|
+
const step = 0.11; // per-element offset
|
|
62
|
+
const exitDur = 0.45;
|
|
63
|
+
|
|
64
|
+
// start fully visible
|
|
65
|
+
tl.set(cards, { autoAlpha: 1, y: 0 }, 0);
|
|
66
|
+
|
|
67
|
+
// ordered exit: each card slides down + fades, one after another
|
|
68
|
+
for (let i = 0; i < cards.length; i++) {
|
|
69
|
+
tl.to(
|
|
70
|
+
cards[i],
|
|
71
|
+
{ y: 80, autoAlpha: 0, duration: exitDur, ease: "power3.in" },
|
|
72
|
+
hold + i * step,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// snap all back to the visible start state so the next loop begins full
|
|
77
|
+
tl.set(cards, { autoAlpha: 1, y: 0 }, 1.95);
|
|
78
|
+
|
|
79
|
+
window.__timelines["staggered-exit"] = tl;
|
|
80
|
+
</script>
|
|
81
|
+
</div>
|
|
82
|
+
</template>
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
|
-
<html
|
|
3
|
-
lang="en"
|
|
4
|
-
data-composition-variables='[
|
|
5
|
-
{"id":"text", "type":"string", "label":"Wordmark", "default":"SPECTRAL"},
|
|
6
|
-
{"id":"textColor", "type":"color", "label":"Wordmark fill", "default":"#f6ff7a"},
|
|
7
|
-
{"id":"bgColor", "type":"color", "label":"Stage background", "default":"#000000"},
|
|
8
|
-
{"id":"sweepSpeed", "type":"number", "label":"Light sweep speed", "default":1, "min":0.2, "max":3, "step":0.1}
|
|
9
|
-
]'
|
|
10
|
-
>
|
|
2
|
+
<html lang="en">
|
|
11
3
|
<head>
|
|
12
4
|
<meta charset="UTF-8" />
|
|
13
5
|
<meta name="viewport" content="width=1920, height=1080" />
|
|
@@ -21,11 +13,6 @@
|
|
|
21
13
|
--hg-fg: #f5f5fa;
|
|
22
14
|
--hg-dim: #6b6b78;
|
|
23
15
|
}
|
|
24
|
-
* {
|
|
25
|
-
margin: 0;
|
|
26
|
-
padding: 0;
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
}
|
|
29
16
|
html,
|
|
30
17
|
body {
|
|
31
18
|
margin: 0;
|
|
@@ -37,32 +24,6 @@
|
|
|
37
24
|
color: var(--hg-fg);
|
|
38
25
|
-webkit-font-smoothing: antialiased;
|
|
39
26
|
}
|
|
40
|
-
#scene {
|
|
41
|
-
position: absolute;
|
|
42
|
-
inset: 0;
|
|
43
|
-
width: 1920px;
|
|
44
|
-
height: 1080px;
|
|
45
|
-
background: #000;
|
|
46
|
-
}
|
|
47
|
-
.vfx-canvas {
|
|
48
|
-
position: absolute;
|
|
49
|
-
inset: 0;
|
|
50
|
-
width: 1920px;
|
|
51
|
-
height: 1080px;
|
|
52
|
-
display: block;
|
|
53
|
-
}
|
|
54
|
-
.label {
|
|
55
|
-
position: absolute;
|
|
56
|
-
left: 48px;
|
|
57
|
-
bottom: 40px;
|
|
58
|
-
font-size: 22px;
|
|
59
|
-
font-weight: 600;
|
|
60
|
-
letter-spacing: 0.18em;
|
|
61
|
-
text-transform: uppercase;
|
|
62
|
-
color: rgba(255, 255, 255, 0.6);
|
|
63
|
-
mix-blend-mode: screen;
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
}
|
|
66
27
|
</style>
|
|
67
28
|
</head>
|
|
68
29
|
<body>
|
|
@@ -74,240 +35,19 @@
|
|
|
74
35
|
data-width="1920"
|
|
75
36
|
data-height="1080"
|
|
76
37
|
>
|
|
77
|
-
<div
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
38
|
+
<div
|
|
39
|
+
id="scene"
|
|
40
|
+
class="clip"
|
|
41
|
+
data-composition-id="text-spectral-rays"
|
|
42
|
+
data-composition-src="scene.html"
|
|
43
|
+
data-start="0"
|
|
44
|
+
data-duration="4"
|
|
45
|
+
data-track-index="1"
|
|
46
|
+
></div>
|
|
81
47
|
</div>
|
|
82
48
|
<script>
|
|
83
49
|
window.__timelines = window.__timelines || {};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
(function () {
|
|
87
|
-
const W = 1920;
|
|
88
|
-
const H = 1080;
|
|
89
|
-
|
|
90
|
-
const defaults = {
|
|
91
|
-
text: "SPECTRAL",
|
|
92
|
-
textColor: "#f6ff7a",
|
|
93
|
-
bgColor: "#000000",
|
|
94
|
-
sweepSpeed: 1,
|
|
95
|
-
};
|
|
96
|
-
const vars = Object.assign(
|
|
97
|
-
{},
|
|
98
|
-
defaults,
|
|
99
|
-
window.__hyperframes && window.__hyperframes.getVariables
|
|
100
|
-
? window.__hyperframes.getVariables()
|
|
101
|
-
: {},
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
const canvas = document.querySelector(".vfx-canvas");
|
|
105
|
-
const gl = canvas.getContext("webgl", {
|
|
106
|
-
premultipliedAlpha: false,
|
|
107
|
-
preserveDrawingBuffer: true,
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
// animated state — GSAP tweens these; mouse (the light cursor) is derived
|
|
111
|
-
const state = { progress: 0, effectMix: 0 };
|
|
112
|
-
const mouse = { x: 0, y: H * 0.5 };
|
|
113
|
-
const speed = Number(vars.sweepSpeed) || 1;
|
|
114
|
-
|
|
115
|
-
// ── Rasterize the wordmark into a white MASK + a coloured SRC canvas ──
|
|
116
|
-
function drawWord(ctx, fill) {
|
|
117
|
-
ctx.clearRect(0, 0, W, H);
|
|
118
|
-
let fs = 340;
|
|
119
|
-
const stack = "900 " + fs + 'px "Arial Black", Impact, "Inter", system-ui, sans-serif';
|
|
120
|
-
ctx.font = stack;
|
|
121
|
-
const maxW = 1600;
|
|
122
|
-
const measured = ctx.measureText(vars.text).width || 1;
|
|
123
|
-
if (measured > maxW) {
|
|
124
|
-
fs = Math.floor((fs * maxW) / measured);
|
|
125
|
-
ctx.font = "900 " + fs + 'px "Arial Black", Impact, "Inter", system-ui, sans-serif';
|
|
126
|
-
}
|
|
127
|
-
ctx.textAlign = "center";
|
|
128
|
-
ctx.textBaseline = "middle";
|
|
129
|
-
ctx.fillStyle = fill;
|
|
130
|
-
ctx.fillText(vars.text, W * 0.5, H * 0.5);
|
|
131
|
-
}
|
|
132
|
-
const maskCanvas = document.createElement("canvas");
|
|
133
|
-
maskCanvas.width = W;
|
|
134
|
-
maskCanvas.height = H;
|
|
135
|
-
drawWord(maskCanvas.getContext("2d"), "#ffffff");
|
|
136
|
-
const colorCanvas = document.createElement("canvas");
|
|
137
|
-
colorCanvas.width = W;
|
|
138
|
-
colorCanvas.height = H;
|
|
139
|
-
drawWord(colorCanvas.getContext("2d"), vars.textColor);
|
|
140
|
-
|
|
141
|
-
// ── WebGL fallback: flat fill (keeps the timeline registered) ──
|
|
142
|
-
if (!gl) {
|
|
143
|
-
const ctx = canvas.getContext("2d");
|
|
144
|
-
ctx.fillStyle = vars.bgColor;
|
|
145
|
-
ctx.fillRect(0, 0, W, H);
|
|
146
|
-
tl.to(state, { progress: 1, duration: 3.6, ease: "none" }, 0.2);
|
|
147
|
-
window.__timelines["main"] = tl;
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
const VERT = [
|
|
152
|
-
"attribute vec2 position;",
|
|
153
|
-
"varying vec2 vUv;",
|
|
154
|
-
"void main(){",
|
|
155
|
-
" vUv = position * 0.5 + 0.5;",
|
|
156
|
-
" gl_Position = vec4(position, 0.0, 1.0);",
|
|
157
|
-
"}",
|
|
158
|
-
].join("\n");
|
|
159
|
-
|
|
160
|
-
// Volumetric spectral light-rays cast by the text mask toward a moving
|
|
161
|
-
// light cursor — ported from the vfx-text-cursor golden sample, made
|
|
162
|
-
// generic (reads any text mask/colour). All state from uniforms.
|
|
163
|
-
const FRAG = [
|
|
164
|
-
"precision highp float;",
|
|
165
|
-
"varying vec2 vUv;",
|
|
166
|
-
"uniform vec2 resolution;",
|
|
167
|
-
"uniform vec2 mouse;",
|
|
168
|
-
"uniform float maskY;",
|
|
169
|
-
"uniform float maskScale;",
|
|
170
|
-
"uniform float effectMix;",
|
|
171
|
-
"uniform sampler2D src;",
|
|
172
|
-
"uniform sampler2D colorSrc;",
|
|
173
|
-
"#define PI 3.141593",
|
|
174
|
-
"#define SAMPLES 112.0",
|
|
175
|
-
"float hash(vec2 p){ return fract(sin(dot(p, vec2(489.0,589.0))) * 492.0) * 2.0 - 1.0; }",
|
|
176
|
-
"float hash(vec3 p){ return fract(sin(dot(p, vec3(489.0,589.0,58.0))) * 492.0) * 2.0 - 1.0; }",
|
|
177
|
-
"vec2 hash2(vec3 p){ return vec2(hash(p), hash(p + 1.0)); }",
|
|
178
|
-
"vec4 readMask(vec2 uv){ if(uv.x<0.0||uv.x>1.0||uv.y<0.0||uv.y>1.0){return vec4(0.0);} return texture2D(src, uv); }",
|
|
179
|
-
"vec4 readColor(vec2 uv){ if(uv.x<0.0||uv.x>1.0||uv.y<0.0||uv.y>1.0){return vec4(0.0);} return texture2D(colorSrc, uv); }",
|
|
180
|
-
"vec3 spectrum(float x){ return cos((x - vec3(0.0,0.5,1.0)) * vec3(0.6,1.0,0.5) * PI); }",
|
|
181
|
-
"void main(){",
|
|
182
|
-
" vec2 uv = vUv;",
|
|
183
|
-
" vec2 center = vec2(0.5, 0.5);",
|
|
184
|
-
" vec2 maskUv = (uv - center) / maskScale + center + vec2(0.0, maskY / resolution.y);",
|
|
185
|
-
" float mask = readMask(maskUv).r;",
|
|
186
|
-
" vec4 col0 = readColor(maskUv);",
|
|
187
|
-
" vec2 p = uv * 2.0 - 1.0;",
|
|
188
|
-
" p.x *= resolution.x / resolution.y;",
|
|
189
|
-
" vec2 mp = mouse / resolution;",
|
|
190
|
-
" mp.y = 1.0 - mp.y;",
|
|
191
|
-
" mp = mp * 2.0 - 1.0;",
|
|
192
|
-
" mp.x *= resolution.x / resolution.y;",
|
|
193
|
-
" vec2 rp = p;",
|
|
194
|
-
" vec2 d = (mp - p) / SAMPLES;",
|
|
195
|
-
" float acc = 0.0;",
|
|
196
|
-
" for(float i = 0.0; i < SAMPLES; i++){",
|
|
197
|
-
" rp += d;",
|
|
198
|
-
" rp += hash2(vec3(rp, i)) * 0.5 / SAMPLES;",
|
|
199
|
-
" vec2 uv2 = rp;",
|
|
200
|
-
" uv2.x /= resolution.x / resolution.y;",
|
|
201
|
-
" uv2 = uv2 * 0.5 + 0.5;",
|
|
202
|
-
" vec2 rayUv = (uv2 - center) / maskScale + center + vec2(0.0, maskY / resolution.y);",
|
|
203
|
-
" acc += readMask(rayUv).r / SAMPLES;",
|
|
204
|
-
" }",
|
|
205
|
-
" vec4 c = vec4(0.0, 0.0, 0.0, 1.0);",
|
|
206
|
-
" c -= acc * 0.24;",
|
|
207
|
-
" c += vec4(spectrum(cos(acc * 4.9)), 1.0) * acc * 3.65;",
|
|
208
|
-
" c.rgb = max(c.rgb - 0.035, 0.0);",
|
|
209
|
-
" c.rgb *= 1.16;",
|
|
210
|
-
" float cursorX = mouse.x / resolution.x;",
|
|
211
|
-
" float sweep = exp(-pow((uv.x - cursorX) * 6.2, 2.0));",
|
|
212
|
-
" float textProximity = smoothstep(0.006, 0.34, acc);",
|
|
213
|
-
" float longRay = smoothstep(0.004, 0.18, acc);",
|
|
214
|
-
" vec3 sweepColor = vec3(0.14, 0.65, 0.85) + spectrum(cursorX * 1.8) * 0.28;",
|
|
215
|
-
" c.rgb += sweepColor * sweep * (0.34 + textProximity * 2.35);",
|
|
216
|
-
" c.rgb += spectrum(cursorX + acc * 2.0) * longRay * 0.58;",
|
|
217
|
-
" c.rgb += col0.rgb * acc * 1.18;",
|
|
218
|
-
" c.rgb += col0.rgb * sweep * mask * 0.92;",
|
|
219
|
-
" c.rgb *= effectMix;",
|
|
220
|
-
" c.rgb = mix(c.rgb, col0.rgb, smoothstep(0.02, 0.75, col0.a));",
|
|
221
|
-
" c.rgb += vec3(1.0) * smoothstep(0.04, 0.38, mask) * 0.12 * effectMix;",
|
|
222
|
-
" float grain = hash(vec3(uv.xyy + mouse.x * 0.0007));",
|
|
223
|
-
" float dust = smoothstep(0.02, 0.38, acc) + smoothstep(0.03, 0.22, mask);",
|
|
224
|
-
" c.rgb += grain * 0.07 * (0.42 + dust) * effectMix;",
|
|
225
|
-
" c.rgb += spectrum(grain + cursorX) * abs(grain) * 0.045 * smoothstep(0.02, 0.5, acc) * effectMix;",
|
|
226
|
-
" c.a = 1.0;",
|
|
227
|
-
" gl_FragColor = c;",
|
|
228
|
-
"}",
|
|
229
|
-
].join("\n");
|
|
230
|
-
|
|
231
|
-
function compile(type, source) {
|
|
232
|
-
const s = gl.createShader(type);
|
|
233
|
-
gl.shaderSource(s, source);
|
|
234
|
-
gl.compileShader(s);
|
|
235
|
-
return s;
|
|
236
|
-
}
|
|
237
|
-
const program = gl.createProgram();
|
|
238
|
-
gl.attachShader(program, compile(gl.VERTEX_SHADER, VERT));
|
|
239
|
-
gl.attachShader(program, compile(gl.FRAGMENT_SHADER, FRAG));
|
|
240
|
-
gl.linkProgram(program);
|
|
241
|
-
gl.useProgram(program);
|
|
242
|
-
|
|
243
|
-
function createTexture(source) {
|
|
244
|
-
const t = gl.createTexture();
|
|
245
|
-
gl.bindTexture(gl.TEXTURE_2D, t);
|
|
246
|
-
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
|
|
247
|
-
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);
|
|
248
|
-
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
|
|
249
|
-
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
|
|
250
|
-
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
|
|
251
|
-
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
|
|
252
|
-
return t;
|
|
253
|
-
}
|
|
254
|
-
const maskTex = createTexture(maskCanvas);
|
|
255
|
-
const colorTex = createTexture(colorCanvas);
|
|
256
|
-
|
|
257
|
-
const buffer = gl.createBuffer();
|
|
258
|
-
gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
|
|
259
|
-
gl.bufferData(
|
|
260
|
-
gl.ARRAY_BUFFER,
|
|
261
|
-
new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]),
|
|
262
|
-
gl.STATIC_DRAW,
|
|
263
|
-
);
|
|
264
|
-
const posLoc = gl.getAttribLocation(program, "position");
|
|
265
|
-
const L = (n) => gl.getUniformLocation(program, n);
|
|
266
|
-
const uRes = L("resolution");
|
|
267
|
-
const uMouse = L("mouse");
|
|
268
|
-
const uMaskY = L("maskY");
|
|
269
|
-
const uMaskScale = L("maskScale");
|
|
270
|
-
const uMix = L("effectMix");
|
|
271
|
-
const uSrc = L("src");
|
|
272
|
-
const uColorSrc = L("colorSrc");
|
|
273
|
-
|
|
274
|
-
function render() {
|
|
275
|
-
mouse.x = state.progress * W;
|
|
276
|
-
mouse.y = H * 0.5;
|
|
277
|
-
gl.viewport(0, 0, W, H);
|
|
278
|
-
gl.clearColor(0, 0, 0, 1);
|
|
279
|
-
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
280
|
-
gl.useProgram(program);
|
|
281
|
-
gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
|
|
282
|
-
gl.enableVertexAttribArray(posLoc);
|
|
283
|
-
gl.vertexAttribPointer(posLoc, 2, gl.FLOAT, false, 0, 0);
|
|
284
|
-
gl.activeTexture(gl.TEXTURE0);
|
|
285
|
-
gl.bindTexture(gl.TEXTURE_2D, maskTex);
|
|
286
|
-
gl.uniform1i(uSrc, 0);
|
|
287
|
-
gl.activeTexture(gl.TEXTURE1);
|
|
288
|
-
gl.bindTexture(gl.TEXTURE_2D, colorTex);
|
|
289
|
-
gl.uniform1i(uColorSrc, 1);
|
|
290
|
-
gl.uniform2f(uRes, W, H);
|
|
291
|
-
gl.uniform2f(uMouse, mouse.x, mouse.y);
|
|
292
|
-
gl.uniform1f(uMaskY, 0);
|
|
293
|
-
gl.uniform1f(uMaskScale, 1);
|
|
294
|
-
gl.uniform1f(uMix, state.effectMix);
|
|
295
|
-
gl.drawArrays(gl.TRIANGLES, 0, 6);
|
|
296
|
-
}
|
|
297
|
-
render(); // initial frame (seek-to-0 correctness)
|
|
298
|
-
|
|
299
|
-
// All repaint via the timeline's onUpdate — fully seek-safe, no rAF.
|
|
300
|
-
tl.eventCallback("onUpdate", render);
|
|
301
|
-
|
|
302
|
-
// effect punches in, the light cursor sweeps L→R across the wordmark,
|
|
303
|
-
// then fades for a clean loop.
|
|
304
|
-
tl.set(state, { progress: 0, effectMix: 0 }, 0);
|
|
305
|
-
tl.to(state, { effectMix: 1, duration: 0.45, ease: "power3.out" }, 0.15);
|
|
306
|
-
tl.to(state, { progress: 1, duration: 3.4 / speed, ease: "none" }, 0.2);
|
|
307
|
-
tl.to(state, { effectMix: 0, duration: 0.4, ease: "power2.in" }, 3.6);
|
|
308
|
-
|
|
309
|
-
window.__timelines["main"] = tl;
|
|
310
|
-
})();
|
|
50
|
+
window.__timelines["main"] = gsap.timeline({ paused: true });
|
|
311
51
|
</script>
|
|
312
52
|
</body>
|
|
313
53
|
</html>
|