dsh-hyperframes 0.3.2 → 0.4.1
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 +5 -4
- package/README.md +6 -5
- 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,280 @@
|
|
|
1
|
+
<template id="text-spectral-rays-template">
|
|
2
|
+
<div
|
|
3
|
+
data-composition-id="text-spectral-rays"
|
|
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
|
+
data-width="1920"
|
|
11
|
+
data-height="1080"
|
|
12
|
+
data-duration="4"
|
|
13
|
+
>
|
|
14
|
+
<style>
|
|
15
|
+
:root {
|
|
16
|
+
--hg-violet: #7c3aed;
|
|
17
|
+
--hg-violet-2: #a855f7;
|
|
18
|
+
--hg-bg: #000000;
|
|
19
|
+
--hg-fg: #f5f5fa;
|
|
20
|
+
--hg-dim: #6b6b78;
|
|
21
|
+
}
|
|
22
|
+
* {
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
}
|
|
27
|
+
.vfx-canvas {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
width: 1920px;
|
|
31
|
+
height: 1080px;
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
.label {
|
|
35
|
+
position: absolute;
|
|
36
|
+
left: 48px;
|
|
37
|
+
bottom: 40px;
|
|
38
|
+
font-size: 22px;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
letter-spacing: 0.18em;
|
|
41
|
+
text-transform: uppercase;
|
|
42
|
+
color: rgba(255, 255, 255, 0.6);
|
|
43
|
+
mix-blend-mode: screen;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
</style>
|
|
47
|
+
<canvas class="vfx-canvas" width="1920" height="1080" aria-hidden="true"></canvas>
|
|
48
|
+
<div class="label">text_spectral_rays</div>
|
|
49
|
+
<script>
|
|
50
|
+
window.__timelines = window.__timelines || {};
|
|
51
|
+
const tl = gsap.timeline({ paused: true });
|
|
52
|
+
|
|
53
|
+
(function () {
|
|
54
|
+
const W = 1920;
|
|
55
|
+
const H = 1080;
|
|
56
|
+
|
|
57
|
+
const defaults = {
|
|
58
|
+
text: "SPECTRAL",
|
|
59
|
+
textColor: "#f6ff7a",
|
|
60
|
+
bgColor: "#000000",
|
|
61
|
+
sweepSpeed: 1,
|
|
62
|
+
};
|
|
63
|
+
const vars = Object.assign(
|
|
64
|
+
{},
|
|
65
|
+
defaults,
|
|
66
|
+
window.__hyperframes && window.__hyperframes.getVariables
|
|
67
|
+
? window.__hyperframes.getVariables()
|
|
68
|
+
: {},
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
const canvas = document.querySelector(".vfx-canvas");
|
|
72
|
+
const gl = canvas.getContext("webgl", {
|
|
73
|
+
premultipliedAlpha: false,
|
|
74
|
+
preserveDrawingBuffer: true,
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
// animated state — GSAP tweens these; mouse (the light cursor) is derived
|
|
78
|
+
const state = { progress: 0, effectMix: 0 };
|
|
79
|
+
const mouse = { x: 0, y: H * 0.5 };
|
|
80
|
+
const speed = Number(vars.sweepSpeed) || 1;
|
|
81
|
+
|
|
82
|
+
// ── Rasterize the wordmark into a white MASK + a coloured SRC canvas ──
|
|
83
|
+
function drawWord(ctx, fill) {
|
|
84
|
+
ctx.clearRect(0, 0, W, H);
|
|
85
|
+
let fs = 340;
|
|
86
|
+
const stack = "900 " + fs + 'px "Arial Black", Impact, "Inter", system-ui, sans-serif';
|
|
87
|
+
ctx.font = stack;
|
|
88
|
+
const maxW = 1600;
|
|
89
|
+
const measured = ctx.measureText(vars.text).width || 1;
|
|
90
|
+
if (measured > maxW) {
|
|
91
|
+
fs = Math.floor((fs * maxW) / measured);
|
|
92
|
+
ctx.font = "900 " + fs + 'px "Arial Black", Impact, "Inter", system-ui, sans-serif';
|
|
93
|
+
}
|
|
94
|
+
ctx.textAlign = "center";
|
|
95
|
+
ctx.textBaseline = "middle";
|
|
96
|
+
ctx.fillStyle = fill;
|
|
97
|
+
ctx.fillText(vars.text, W * 0.5, H * 0.5);
|
|
98
|
+
}
|
|
99
|
+
const maskCanvas = document.createElement("canvas");
|
|
100
|
+
maskCanvas.width = W;
|
|
101
|
+
maskCanvas.height = H;
|
|
102
|
+
drawWord(maskCanvas.getContext("2d"), "#ffffff");
|
|
103
|
+
const colorCanvas = document.createElement("canvas");
|
|
104
|
+
colorCanvas.width = W;
|
|
105
|
+
colorCanvas.height = H;
|
|
106
|
+
drawWord(colorCanvas.getContext("2d"), vars.textColor);
|
|
107
|
+
|
|
108
|
+
// ── WebGL fallback: flat fill (keeps the timeline registered) ──
|
|
109
|
+
if (!gl) {
|
|
110
|
+
const ctx = canvas.getContext("2d");
|
|
111
|
+
ctx.fillStyle = vars.bgColor;
|
|
112
|
+
ctx.fillRect(0, 0, W, H);
|
|
113
|
+
tl.to(state, { progress: 1, duration: 3.6, ease: "none" }, 0.2);
|
|
114
|
+
window.__timelines["text-spectral-rays"] = tl;
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const VERT = [
|
|
119
|
+
"attribute vec2 position;",
|
|
120
|
+
"varying vec2 vUv;",
|
|
121
|
+
"void main(){",
|
|
122
|
+
" vUv = position * 0.5 + 0.5;",
|
|
123
|
+
" gl_Position = vec4(position, 0.0, 1.0);",
|
|
124
|
+
"}",
|
|
125
|
+
].join("\n");
|
|
126
|
+
|
|
127
|
+
// Volumetric spectral light-rays cast by the text mask toward a moving
|
|
128
|
+
// light cursor — ported from the vfx-text-cursor golden sample, made
|
|
129
|
+
// generic (reads any text mask/colour). All state from uniforms.
|
|
130
|
+
const FRAG = [
|
|
131
|
+
"precision highp float;",
|
|
132
|
+
"varying vec2 vUv;",
|
|
133
|
+
"uniform vec2 resolution;",
|
|
134
|
+
"uniform vec2 mouse;",
|
|
135
|
+
"uniform float maskY;",
|
|
136
|
+
"uniform float maskScale;",
|
|
137
|
+
"uniform float effectMix;",
|
|
138
|
+
"uniform sampler2D src;",
|
|
139
|
+
"uniform sampler2D colorSrc;",
|
|
140
|
+
"#define PI 3.141593",
|
|
141
|
+
"#define SAMPLES 112.0",
|
|
142
|
+
"float hash(vec2 p){ return fract(sin(dot(p, vec2(489.0,589.0))) * 492.0) * 2.0 - 1.0; }",
|
|
143
|
+
"float hash(vec3 p){ return fract(sin(dot(p, vec3(489.0,589.0,58.0))) * 492.0) * 2.0 - 1.0; }",
|
|
144
|
+
"vec2 hash2(vec3 p){ return vec2(hash(p), hash(p + 1.0)); }",
|
|
145
|
+
"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); }",
|
|
146
|
+
"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); }",
|
|
147
|
+
"vec3 spectrum(float x){ return cos((x - vec3(0.0,0.5,1.0)) * vec3(0.6,1.0,0.5) * PI); }",
|
|
148
|
+
"void main(){",
|
|
149
|
+
" vec2 uv = vUv;",
|
|
150
|
+
" vec2 center = vec2(0.5, 0.5);",
|
|
151
|
+
" vec2 maskUv = (uv - center) / maskScale + center + vec2(0.0, maskY / resolution.y);",
|
|
152
|
+
" float mask = readMask(maskUv).r;",
|
|
153
|
+
" vec4 col0 = readColor(maskUv);",
|
|
154
|
+
" vec2 p = uv * 2.0 - 1.0;",
|
|
155
|
+
" p.x *= resolution.x / resolution.y;",
|
|
156
|
+
" vec2 mp = mouse / resolution;",
|
|
157
|
+
" mp.y = 1.0 - mp.y;",
|
|
158
|
+
" mp = mp * 2.0 - 1.0;",
|
|
159
|
+
" mp.x *= resolution.x / resolution.y;",
|
|
160
|
+
" vec2 rp = p;",
|
|
161
|
+
" vec2 d = (mp - p) / SAMPLES;",
|
|
162
|
+
" float acc = 0.0;",
|
|
163
|
+
" for(float i = 0.0; i < SAMPLES; i++){",
|
|
164
|
+
" rp += d;",
|
|
165
|
+
" rp += hash2(vec3(rp, i)) * 0.5 / SAMPLES;",
|
|
166
|
+
" vec2 uv2 = rp;",
|
|
167
|
+
" uv2.x /= resolution.x / resolution.y;",
|
|
168
|
+
" uv2 = uv2 * 0.5 + 0.5;",
|
|
169
|
+
" vec2 rayUv = (uv2 - center) / maskScale + center + vec2(0.0, maskY / resolution.y);",
|
|
170
|
+
" acc += readMask(rayUv).r / SAMPLES;",
|
|
171
|
+
" }",
|
|
172
|
+
" vec4 c = vec4(0.0, 0.0, 0.0, 1.0);",
|
|
173
|
+
" c -= acc * 0.24;",
|
|
174
|
+
" c += vec4(spectrum(cos(acc * 4.9)), 1.0) * acc * 3.65;",
|
|
175
|
+
" c.rgb = max(c.rgb - 0.035, 0.0);",
|
|
176
|
+
" c.rgb *= 1.16;",
|
|
177
|
+
" float cursorX = mouse.x / resolution.x;",
|
|
178
|
+
" float sweep = exp(-pow((uv.x - cursorX) * 6.2, 2.0));",
|
|
179
|
+
" float textProximity = smoothstep(0.006, 0.34, acc);",
|
|
180
|
+
" float longRay = smoothstep(0.004, 0.18, acc);",
|
|
181
|
+
" vec3 sweepColor = vec3(0.14, 0.65, 0.85) + spectrum(cursorX * 1.8) * 0.28;",
|
|
182
|
+
" c.rgb += sweepColor * sweep * (0.34 + textProximity * 2.35);",
|
|
183
|
+
" c.rgb += spectrum(cursorX + acc * 2.0) * longRay * 0.58;",
|
|
184
|
+
" c.rgb += col0.rgb * acc * 1.18;",
|
|
185
|
+
" c.rgb += col0.rgb * sweep * mask * 0.92;",
|
|
186
|
+
" c.rgb *= effectMix;",
|
|
187
|
+
" c.rgb = mix(c.rgb, col0.rgb, smoothstep(0.02, 0.75, col0.a));",
|
|
188
|
+
" c.rgb += vec3(1.0) * smoothstep(0.04, 0.38, mask) * 0.12 * effectMix;",
|
|
189
|
+
" float grain = hash(vec3(uv.xyy + mouse.x * 0.0007));",
|
|
190
|
+
" float dust = smoothstep(0.02, 0.38, acc) + smoothstep(0.03, 0.22, mask);",
|
|
191
|
+
" c.rgb += grain * 0.07 * (0.42 + dust) * effectMix;",
|
|
192
|
+
" c.rgb += spectrum(grain + cursorX) * abs(grain) * 0.045 * smoothstep(0.02, 0.5, acc) * effectMix;",
|
|
193
|
+
" c.a = 1.0;",
|
|
194
|
+
" gl_FragColor = c;",
|
|
195
|
+
"}",
|
|
196
|
+
].join("\n");
|
|
197
|
+
|
|
198
|
+
function compile(type, source) {
|
|
199
|
+
const s = gl.createShader(type);
|
|
200
|
+
gl.shaderSource(s, source);
|
|
201
|
+
gl.compileShader(s);
|
|
202
|
+
return s;
|
|
203
|
+
}
|
|
204
|
+
const program = gl.createProgram();
|
|
205
|
+
gl.attachShader(program, compile(gl.VERTEX_SHADER, VERT));
|
|
206
|
+
gl.attachShader(program, compile(gl.FRAGMENT_SHADER, FRAG));
|
|
207
|
+
gl.linkProgram(program);
|
|
208
|
+
gl.useProgram(program);
|
|
209
|
+
|
|
210
|
+
function createTexture(source) {
|
|
211
|
+
const t = gl.createTexture();
|
|
212
|
+
gl.bindTexture(gl.TEXTURE_2D, t);
|
|
213
|
+
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
|
|
214
|
+
gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);
|
|
215
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
|
|
216
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
|
|
217
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
|
|
218
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
|
|
219
|
+
return t;
|
|
220
|
+
}
|
|
221
|
+
const maskTex = createTexture(maskCanvas);
|
|
222
|
+
const colorTex = createTexture(colorCanvas);
|
|
223
|
+
|
|
224
|
+
const buffer = gl.createBuffer();
|
|
225
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
|
|
226
|
+
gl.bufferData(
|
|
227
|
+
gl.ARRAY_BUFFER,
|
|
228
|
+
new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]),
|
|
229
|
+
gl.STATIC_DRAW,
|
|
230
|
+
);
|
|
231
|
+
const posLoc = gl.getAttribLocation(program, "position");
|
|
232
|
+
const L = (n) => gl.getUniformLocation(program, n);
|
|
233
|
+
const uRes = L("resolution");
|
|
234
|
+
const uMouse = L("mouse");
|
|
235
|
+
const uMaskY = L("maskY");
|
|
236
|
+
const uMaskScale = L("maskScale");
|
|
237
|
+
const uMix = L("effectMix");
|
|
238
|
+
const uSrc = L("src");
|
|
239
|
+
const uColorSrc = L("colorSrc");
|
|
240
|
+
|
|
241
|
+
function render() {
|
|
242
|
+
mouse.x = state.progress * W;
|
|
243
|
+
mouse.y = H * 0.5;
|
|
244
|
+
gl.viewport(0, 0, W, H);
|
|
245
|
+
gl.clearColor(0, 0, 0, 1);
|
|
246
|
+
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
247
|
+
gl.useProgram(program);
|
|
248
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, buffer);
|
|
249
|
+
gl.enableVertexAttribArray(posLoc);
|
|
250
|
+
gl.vertexAttribPointer(posLoc, 2, gl.FLOAT, false, 0, 0);
|
|
251
|
+
gl.activeTexture(gl.TEXTURE0);
|
|
252
|
+
gl.bindTexture(gl.TEXTURE_2D, maskTex);
|
|
253
|
+
gl.uniform1i(uSrc, 0);
|
|
254
|
+
gl.activeTexture(gl.TEXTURE1);
|
|
255
|
+
gl.bindTexture(gl.TEXTURE_2D, colorTex);
|
|
256
|
+
gl.uniform1i(uColorSrc, 1);
|
|
257
|
+
gl.uniform2f(uRes, W, H);
|
|
258
|
+
gl.uniform2f(uMouse, mouse.x, mouse.y);
|
|
259
|
+
gl.uniform1f(uMaskY, 0);
|
|
260
|
+
gl.uniform1f(uMaskScale, 1);
|
|
261
|
+
gl.uniform1f(uMix, state.effectMix);
|
|
262
|
+
gl.drawArrays(gl.TRIANGLES, 0, 6);
|
|
263
|
+
}
|
|
264
|
+
render(); // initial frame (seek-to-0 correctness)
|
|
265
|
+
|
|
266
|
+
// All repaint via the timeline's onUpdate — fully seek-safe, no rAF.
|
|
267
|
+
tl.eventCallback("onUpdate", render);
|
|
268
|
+
|
|
269
|
+
// effect punches in, the light cursor sweeps L→R across the wordmark,
|
|
270
|
+
// then fades for a clean loop.
|
|
271
|
+
tl.set(state, { progress: 0, effectMix: 0 }, 0);
|
|
272
|
+
tl.to(state, { effectMix: 1, duration: 0.45, ease: "power3.out" }, 0.15);
|
|
273
|
+
tl.to(state, { progress: 1, duration: 3.4 / speed, ease: "none" }, 0.2);
|
|
274
|
+
tl.to(state, { effectMix: 0, duration: 0.4, ease: "power2.in" }, 3.6);
|
|
275
|
+
|
|
276
|
+
window.__timelines["text-spectral-rays"] = tl;
|
|
277
|
+
})();
|
|
278
|
+
</script>
|
|
279
|
+
</div>
|
|
280
|
+
</template>
|
|
@@ -14,11 +14,6 @@
|
|
|
14
14
|
--hg-fg: #f5f5fa;
|
|
15
15
|
--hg-dim: #6b6b78;
|
|
16
16
|
}
|
|
17
|
-
* {
|
|
18
|
-
margin: 0;
|
|
19
|
-
padding: 0;
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
}
|
|
22
17
|
html,
|
|
23
18
|
body {
|
|
24
19
|
margin: 0;
|
|
@@ -30,48 +25,6 @@
|
|
|
30
25
|
color: var(--hg-fg);
|
|
31
26
|
-webkit-font-smoothing: antialiased;
|
|
32
27
|
}
|
|
33
|
-
#scene {
|
|
34
|
-
position: absolute;
|
|
35
|
-
inset: 0;
|
|
36
|
-
width: 1920px;
|
|
37
|
-
height: 1080px;
|
|
38
|
-
}
|
|
39
|
-
.stage {
|
|
40
|
-
position: absolute;
|
|
41
|
-
inset: 0;
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
}
|
|
46
|
-
.wave-hero {
|
|
47
|
-
font-family: "Playfair Display", serif;
|
|
48
|
-
font-style: italic;
|
|
49
|
-
font-weight: 900;
|
|
50
|
-
font-size: 280px;
|
|
51
|
-
letter-spacing: -0.02em;
|
|
52
|
-
white-space: nowrap;
|
|
53
|
-
text-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
|
|
54
|
-
}
|
|
55
|
-
.wave-hero .char {
|
|
56
|
-
display: inline-block;
|
|
57
|
-
will-change: transform;
|
|
58
|
-
}
|
|
59
|
-
/* per-char solid colors marching across a violet→cyan ramp */
|
|
60
|
-
.wave-hero .char:nth-child(1) {
|
|
61
|
-
color: #7c3aed;
|
|
62
|
-
}
|
|
63
|
-
.wave-hero .char:nth-child(2) {
|
|
64
|
-
color: #a855f7;
|
|
65
|
-
}
|
|
66
|
-
.wave-hero .char:nth-child(3) {
|
|
67
|
-
color: #d946ef;
|
|
68
|
-
}
|
|
69
|
-
.wave-hero .char:nth-child(4) {
|
|
70
|
-
color: #ec4899;
|
|
71
|
-
}
|
|
72
|
-
.wave-hero .char:nth-child(5) {
|
|
73
|
-
color: #2afff0;
|
|
74
|
-
}
|
|
75
28
|
</style>
|
|
76
29
|
</head>
|
|
77
30
|
<body>
|
|
@@ -83,54 +36,19 @@
|
|
|
83
36
|
data-width="1920"
|
|
84
37
|
data-height="1080"
|
|
85
38
|
>
|
|
86
|
-
<div
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
39
|
+
<div
|
|
40
|
+
id="scene"
|
|
41
|
+
class="clip"
|
|
42
|
+
data-composition-id="text-wave-distort"
|
|
43
|
+
data-composition-src="scene.html"
|
|
44
|
+
data-start="0"
|
|
45
|
+
data-duration="2"
|
|
46
|
+
data-track-index="1"
|
|
47
|
+
></div>
|
|
94
48
|
</div>
|
|
95
49
|
<script>
|
|
96
50
|
window.__timelines = window.__timelines || {};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
// Explicit fromTo entry — safer than .from() in paused/seek mode
|
|
100
|
-
tl.fromTo(
|
|
101
|
-
"#hero .char",
|
|
102
|
-
{ y: 60, opacity: 0 },
|
|
103
|
-
{ y: 0, opacity: 1, stagger: 0.06, ease: "back.out(1.8)", duration: 0.5 },
|
|
104
|
-
0.1,
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
// Continuous wave: phase 0→4 cycles over 1.5s, amplitude envelope rise→settle
|
|
108
|
-
const state = { phase: 0 };
|
|
109
|
-
tl.to(
|
|
110
|
-
state,
|
|
111
|
-
{
|
|
112
|
-
phase: 4,
|
|
113
|
-
duration: 1.5,
|
|
114
|
-
ease: "none",
|
|
115
|
-
onUpdate: function () {
|
|
116
|
-
const chars = document.querySelectorAll("#hero .char");
|
|
117
|
-
const p = state.phase / 4;
|
|
118
|
-
let amp;
|
|
119
|
-
if (p < 0.35) amp = (p / 0.35) * 24;
|
|
120
|
-
else if (p < 0.7)
|
|
121
|
-
amp = 24 - ((p - 0.35) / 0.35) * 12; // 24 → 12
|
|
122
|
-
else amp = 12 - ((p - 0.7) / 0.3) * 4; // 12 → 8
|
|
123
|
-
chars.forEach((c, i) => {
|
|
124
|
-
const y = amp * Math.sin(state.phase * Math.PI * 2 + i * 0.45);
|
|
125
|
-
// Use gsap.set so it cooperates with GSAP's transform tracking
|
|
126
|
-
gsap.set(c, { y });
|
|
127
|
-
});
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
0.65,
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
window.__timelines["main"] = tl;
|
|
51
|
+
window.__timelines["main"] = gsap.timeline({ paused: true });
|
|
134
52
|
</script>
|
|
135
53
|
</body>
|
|
136
54
|
</html>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<template id="text-wave-distort-template">
|
|
2
|
+
<div
|
|
3
|
+
data-composition-id="text-wave-distort"
|
|
4
|
+
data-width="1920"
|
|
5
|
+
data-height="1080"
|
|
6
|
+
data-duration="2"
|
|
7
|
+
>
|
|
8
|
+
<style>
|
|
9
|
+
:root {
|
|
10
|
+
--hg-violet: #7c3aed;
|
|
11
|
+
--hg-violet-2: #a855f7;
|
|
12
|
+
--hg-cyan: #2afff0;
|
|
13
|
+
--hg-bg: #0a0a0f;
|
|
14
|
+
--hg-fg: #f5f5fa;
|
|
15
|
+
--hg-dim: #6b6b78;
|
|
16
|
+
}
|
|
17
|
+
* {
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
.stage {
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: 0;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
.wave-hero {
|
|
30
|
+
font-family: "Playfair Display", serif;
|
|
31
|
+
font-style: italic;
|
|
32
|
+
font-weight: 900;
|
|
33
|
+
font-size: 280px;
|
|
34
|
+
letter-spacing: -0.02em;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
text-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
|
|
37
|
+
}
|
|
38
|
+
.wave-hero .char {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
will-change: transform;
|
|
41
|
+
}
|
|
42
|
+
/* per-char solid colors marching across a violet→cyan ramp */
|
|
43
|
+
.wave-hero .char:nth-child(1) {
|
|
44
|
+
color: #7c3aed;
|
|
45
|
+
}
|
|
46
|
+
.wave-hero .char:nth-child(2) {
|
|
47
|
+
color: #a855f7;
|
|
48
|
+
}
|
|
49
|
+
.wave-hero .char:nth-child(3) {
|
|
50
|
+
color: #d946ef;
|
|
51
|
+
}
|
|
52
|
+
.wave-hero .char:nth-child(4) {
|
|
53
|
+
color: #ec4899;
|
|
54
|
+
}
|
|
55
|
+
.wave-hero .char:nth-child(5) {
|
|
56
|
+
color: #2afff0;
|
|
57
|
+
}
|
|
58
|
+
</style>
|
|
59
|
+
<div class="stage">
|
|
60
|
+
<div class="wave-hero" id="hero">
|
|
61
|
+
<span class="char">f</span><span class="char">l</span><span class="char">u</span
|
|
62
|
+
><span class="char">i</span><span class="char">d</span>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<script>
|
|
66
|
+
window.__timelines = window.__timelines || {};
|
|
67
|
+
const tl = gsap.timeline({ paused: true });
|
|
68
|
+
|
|
69
|
+
// Explicit fromTo entry — safer than .from() in paused/seek mode
|
|
70
|
+
tl.fromTo(
|
|
71
|
+
"#hero .char",
|
|
72
|
+
{ y: 60, opacity: 0 },
|
|
73
|
+
{ y: 0, opacity: 1, stagger: 0.06, ease: "back.out(1.8)", duration: 0.5 },
|
|
74
|
+
0.1,
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
// Continuous wave: phase 0→4 cycles over 1.5s, amplitude envelope rise→settle
|
|
78
|
+
const state = { phase: 0 };
|
|
79
|
+
tl.to(
|
|
80
|
+
state,
|
|
81
|
+
{
|
|
82
|
+
phase: 4,
|
|
83
|
+
duration: 1.5,
|
|
84
|
+
ease: "none",
|
|
85
|
+
onUpdate: function () {
|
|
86
|
+
const chars = document.querySelectorAll("#hero .char");
|
|
87
|
+
const p = state.phase / 4;
|
|
88
|
+
let amp;
|
|
89
|
+
if (p < 0.35) amp = (p / 0.35) * 24;
|
|
90
|
+
else if (p < 0.7)
|
|
91
|
+
amp = 24 - ((p - 0.35) / 0.35) * 12; // 24 → 12
|
|
92
|
+
else amp = 12 - ((p - 0.7) / 0.3) * 4; // 12 → 8
|
|
93
|
+
chars.forEach((c, i) => {
|
|
94
|
+
const y = amp * Math.sin(state.phase * Math.PI * 2 + i * 0.45);
|
|
95
|
+
// Use gsap.set so it cooperates with GSAP's transform tracking
|
|
96
|
+
gsap.set(c, { y });
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
0.65,
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
window.__timelines["text-wave-distort"] = tl;
|
|
104
|
+
</script>
|
|
105
|
+
</div>
|
|
106
|
+
</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,46 +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
|
-
.mosaic {
|
|
46
|
-
position: relative;
|
|
47
|
-
display: grid;
|
|
48
|
-
grid-template-columns: repeat(6, 1fr);
|
|
49
|
-
grid-template-rows: repeat(4, 1fr);
|
|
50
|
-
gap: 6px;
|
|
51
|
-
width: 1440px;
|
|
52
|
-
height: 960px;
|
|
53
|
-
}
|
|
54
|
-
.tile {
|
|
55
|
-
border-radius: 4px;
|
|
56
|
-
will-change: transform, opacity;
|
|
57
|
-
}
|
|
58
|
-
.title {
|
|
59
|
-
position: absolute;
|
|
60
|
-
inset: 0;
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
font-weight: 900;
|
|
65
|
-
font-size: 220px;
|
|
66
|
-
letter-spacing: -0.03em;
|
|
67
|
-
color: var(--hg-fg);
|
|
68
|
-
text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
|
|
69
|
-
will-change: transform, opacity;
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
}
|
|
72
27
|
</style>
|
|
73
28
|
</head>
|
|
74
29
|
<body>
|
|
@@ -80,65 +35,19 @@
|
|
|
80
35
|
data-width="1920"
|
|
81
36
|
data-height="1080"
|
|
82
37
|
>
|
|
83
|
-
<div
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
38
|
+
<div
|
|
39
|
+
id="scene"
|
|
40
|
+
class="clip"
|
|
41
|
+
data-composition-id="tile-mosaic"
|
|
42
|
+
data-composition-src="scene.html"
|
|
43
|
+
data-start="0"
|
|
44
|
+
data-duration="2.4"
|
|
45
|
+
data-track-index="1"
|
|
46
|
+
></div>
|
|
89
47
|
</div>
|
|
90
48
|
<script>
|
|
91
49
|
window.__timelines = window.__timelines || {};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const COLS = 6;
|
|
95
|
-
const ROWS = 4;
|
|
96
|
-
const STEP = 0.06;
|
|
97
|
-
// Deterministic palette; tile colour chosen by index, no randomness.
|
|
98
|
-
const PALETTE = [
|
|
99
|
-
"#7c3aed",
|
|
100
|
-
"#a855f7",
|
|
101
|
-
"#6d28d9",
|
|
102
|
-
"#c084fc",
|
|
103
|
-
"#5b21b6",
|
|
104
|
-
"#8b5cf6",
|
|
105
|
-
"#9333ea",
|
|
106
|
-
"#4c1d95",
|
|
107
|
-
];
|
|
108
|
-
|
|
109
|
-
const mosaic = document.getElementById("mosaic");
|
|
110
|
-
const tiles = [];
|
|
111
|
-
for (let i = 0; i < COLS * ROWS; i++) {
|
|
112
|
-
const row = Math.floor(i / COLS);
|
|
113
|
-
const col = i % COLS;
|
|
114
|
-
const cell = document.createElement("div");
|
|
115
|
-
cell.className = "tile";
|
|
116
|
-
const a = PALETTE[(row + col) % PALETTE.length];
|
|
117
|
-
const b = PALETTE[(row + col + 3) % PALETTE.length];
|
|
118
|
-
cell.style.background = "linear-gradient(135deg, " + a + " 0%, " + b + " 100%)";
|
|
119
|
-
mosaic.appendChild(cell);
|
|
120
|
-
tiles.push({ el: cell, diag: row + col });
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Diagonal sweep: reveal order governed by (row + col), explicit per-tile timing.
|
|
124
|
-
for (const t of tiles) {
|
|
125
|
-
tl.fromTo(
|
|
126
|
-
t.el,
|
|
127
|
-
{ autoAlpha: 0, scale: 0.6 },
|
|
128
|
-
{ autoAlpha: 1, scale: 1, duration: 0.4, ease: "back.out(1.7)" },
|
|
129
|
-
t.diag * STEP,
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// Title settles over the finished, dense mosaic.
|
|
134
|
-
tl.fromTo(
|
|
135
|
-
"#title",
|
|
136
|
-
{ autoAlpha: 0, scale: 1.12 },
|
|
137
|
-
{ autoAlpha: 1, scale: 1, duration: 0.45, ease: "power2.out" },
|
|
138
|
-
1.7,
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
window.__timelines["main"] = tl;
|
|
50
|
+
window.__timelines["main"] = gsap.timeline({ paused: true });
|
|
142
51
|
</script>
|
|
143
52
|
</body>
|
|
144
53
|
</html>
|