@mevdragon/vidfarm-devcli 0.14.0 → 0.16.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/.agents/skills/embedded-captions/CATALOG.md +93 -0
- package/.agents/skills/embedded-captions/SKILL.md +286 -0
- package/.agents/skills/embedded-captions/assets/brand/CDPR-fankit-terms.txt +35 -0
- package/.agents/skills/embedded-captions/assets/brand/cyberpunk-widths.json +115 -0
- package/.agents/skills/embedded-captions/assets/fonts/char-widths.json +2211 -0
- package/.agents/skills/embedded-captions/assets/strokefonts/HersheyScript1.svg +242 -0
- package/.agents/skills/embedded-captions/assets/strokefonts/HersheyScriptMed.svg +242 -0
- package/.agents/skills/embedded-captions/dna/README.md +148 -0
- package/.agents/skills/embedded-captions/dna/chrome.json +68 -0
- package/.agents/skills/embedded-captions/dna/cream.json +69 -0
- package/.agents/skills/embedded-captions/dna/documentary.json +62 -0
- package/.agents/skills/embedded-captions/dna/editorial.json +70 -0
- package/.agents/skills/embedded-captions/dna/glitch.json +82 -0
- package/.agents/skills/embedded-captions/dna/ink.json +65 -0
- package/.agents/skills/embedded-captions/dna/keynote.json +62 -0
- package/.agents/skills/embedded-captions/dna/loud.json +75 -0
- package/.agents/skills/embedded-captions/dna/neon.json +58 -0
- package/.agents/skills/embedded-captions/dna/velocity.json +89 -0
- package/.agents/skills/embedded-captions/modes/cinematic/README.md +48 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/champion/spec.md +98 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/champion/template.html +188 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/memory-wall/spec.md +134 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/memory-wall/template.html +179 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/portrait-header/spec.md +81 -0
- package/.agents/skills/embedded-captions/modes/cinematic/_archive/portrait-header/template.html +170 -0
- package/.agents/skills/embedded-captions/modes/cinematic/cinematic-cream/spec.md +16 -0
- package/.agents/skills/embedded-captions/modes/cinematic/cinematic-cream/template.html +226 -0
- package/.agents/skills/embedded-captions/modes/cinematic/engine.html +355 -0
- package/.agents/skills/embedded-captions/modes/standard/_anatomy.md +233 -0
- package/.agents/skills/embedded-captions/modes/standard/_motion.md +192 -0
- package/.agents/skills/embedded-captions/modes/standard/fonts/build-fonts-css.cjs +97 -0
- package/.agents/skills/embedded-captions/references/aesthetic-principles.md +168 -0
- package/.agents/skills/embedded-captions/references/anti-patterns.md +188 -0
- package/.agents/skills/embedded-captions/references/bespoke-vs-presets.md +178 -0
- package/.agents/skills/embedded-captions/references/caption-grouping.md +130 -0
- package/.agents/skills/embedded-captions/references/composition-craft.md +522 -0
- package/.agents/skills/embedded-captions/references/direction-catalog.md +138 -0
- package/.agents/skills/embedded-captions/references/example-renders/champion.html +371 -0
- package/.agents/skills/embedded-captions/references/example-renders/memory-wall.html +334 -0
- package/.agents/skills/embedded-captions/references/failure-modes.md +145 -0
- package/.agents/skills/embedded-captions/references/layout-heuristics.md +238 -0
- package/.agents/skills/embedded-captions/references/motion-vocabulary.md +148 -0
- package/.agents/skills/embedded-captions/references/rail.md +68 -0
- package/.agents/skills/embedded-captions/references/reference-bar.md +47 -0
- package/.agents/skills/embedded-captions/references/scene-types.md +94 -0
- package/.agents/skills/embedded-captions/references/test-set.md +66 -0
- package/.agents/skills/embedded-captions/references/typographic-moves.md +266 -0
- package/.agents/skills/embedded-captions/references/typography-presets.md +63 -0
- package/.agents/skills/embedded-captions/scripts/audio-envelope.cjs +95 -0
- package/.agents/skills/embedded-captions/scripts/check-occlusion.cjs +250 -0
- package/.agents/skills/embedded-captions/scripts/check-overflow.cjs +194 -0
- package/.agents/skills/embedded-captions/scripts/check-rail-climax.cjs +233 -0
- package/.agents/skills/embedded-captions/scripts/check-timing.cjs +173 -0
- package/.agents/skills/embedded-captions/scripts/fill-timings.cjs +124 -0
- package/.agents/skills/embedded-captions/scripts/fit-fonts.cjs +158 -0
- package/.agents/skills/embedded-captions/scripts/gen-stroke-path.py +46 -0
- package/.agents/skills/embedded-captions/scripts/inject-fonts.cjs +169 -0
- package/.agents/skills/embedded-captions/scripts/lib-dna.cjs +201 -0
- package/.agents/skills/embedded-captions/scripts/make-cinematic.cjs +1205 -0
- package/.agents/skills/embedded-captions/scripts/make-composition.cjs +404 -0
- package/.agents/skills/embedded-captions/scripts/make-theme.cjs +8781 -0
- package/.agents/skills/embedded-captions/scripts/matte.cjs +294 -0
- package/.agents/skills/embedded-captions/scripts/measure-layout.cjs +293 -0
- package/.agents/skills/embedded-captions/scripts/prepare.sh +39 -0
- package/.agents/skills/embedded-captions/scripts/preview-frames.cjs +268 -0
- package/.agents/skills/embedded-captions/scripts/render-and-composite.sh +509 -0
- package/.agents/skills/embedded-captions/scripts/render-theme.sh +34 -0
- package/.agents/skills/embedded-captions/scripts/safe-zones.cjs +813 -0
- package/.agents/skills/embedded-captions/scripts/transcribe.cjs +349 -0
- package/.agents/skills/embedded-captions/themes/PORTING.md +49 -0
- package/.agents/skills/embedded-captions/themes/README.md +244 -0
- package/.agents/skills/embedded-captions/themes/anchor.json +27 -0
- package/.agents/skills/embedded-captions/themes/arcade.json +51 -0
- package/.agents/skills/embedded-captions/themes/aurora.json +41 -0
- package/.agents/skills/embedded-captions/themes/biolume.json +35 -0
- package/.agents/skills/embedded-captions/themes/brush.json +74 -0
- package/.agents/skills/embedded-captions/themes/chalkboard.json +52 -0
- package/.agents/skills/embedded-captions/themes/dossier.json +56 -0
- package/.agents/skills/embedded-captions/themes/graffiti.json +62 -0
- package/.agents/skills/embedded-captions/themes/hologram.json +41 -0
- package/.agents/skills/embedded-captions/themes/inkwater.json +43 -0
- package/.agents/skills/embedded-captions/themes/laser.json +46 -0
- package/.agents/skills/embedded-captions/themes/lastpage.json +33 -0
- package/.agents/skills/embedded-captions/themes/neonsign.json +53 -0
- package/.agents/skills/embedded-captions/themes/nightcity.json +56 -0
- package/.agents/skills/embedded-captions/themes/ordnance.json +54 -0
- package/.agents/skills/embedded-captions/themes/papercut.json +37 -0
- package/.agents/skills/embedded-captions/themes/popup.json +46 -0
- package/.agents/skills/embedded-captions/themes/ransom.json +62 -0
- package/.agents/skills/embedded-captions/themes/scoreboard.json +54 -0
- package/.agents/skills/embedded-captions/themes/spectrum.json +46 -0
- package/.agents/skills/embedded-captions/themes/stardust.json +29 -0
- package/.agents/skills/embedded-captions/themes/stomp.json +43 -0
- package/.agents/skills/embedded-captions/themes/terminal.json +49 -0
- package/.agents/skills/embedded-captions/themes/thunder.json +44 -0
- package/.agents/skills/embedded-captions/themes/transit.json +44 -0
- package/.agents/skills/embedded-captions/themes/vhs.json +47 -0
- package/.agents/skills/faceless-explainer/SKILL.md +209 -0
- package/.agents/skills/faceless-explainer/references/cut-catalog.md +215 -0
- package/.agents/skills/faceless-explainer/references/motion-language.md +156 -0
- package/.agents/skills/faceless-explainer/references/story-design.md +248 -0
- package/.agents/skills/faceless-explainer/references/visual-design.md +146 -0
- package/.agents/skills/faceless-explainer/scripts/assemble-index.mjs +570 -0
- package/.agents/skills/faceless-explainer/scripts/audio.mjs +260 -0
- package/.agents/skills/faceless-explainer/scripts/build-frame.mjs +536 -0
- package/.agents/skills/faceless-explainer/scripts/captions.mjs +508 -0
- package/.agents/skills/faceless-explainer/scripts/lib/assets.mjs +55 -0
- package/.agents/skills/faceless-explainer/scripts/lib/dimensions.mjs +45 -0
- package/.agents/skills/faceless-explainer/scripts/lib/storyboard.mjs +249 -0
- package/.agents/skills/faceless-explainer/scripts/lib/tokens.mjs +204 -0
- package/.agents/skills/faceless-explainer/scripts/lib/transition-registry.mjs +38 -0
- package/.agents/skills/faceless-explainer/scripts/lib/transitions.json +71 -0
- package/.agents/skills/faceless-explainer/scripts/transitions.mjs +320 -0
- package/.agents/skills/faceless-explainer/sub-agents/frame-worker.md +75 -0
- package/.agents/skills/flockposter/LICENSE +17 -0
- package/.agents/skills/flockposter/README.md +72 -0
- package/.agents/skills/flockposter/SKILL.md +562 -0
- package/.agents/skills/flockposter/examples/cli-instagram-reel.sh +21 -0
- package/.agents/skills/flockposter/examples/cli-multi-platform.json +69 -0
- package/.agents/skills/flockposter/examples/cli-tiktok-upload-only.sh +22 -0
- package/.agents/skills/flockposter/examples/cli-x-thread.sh +17 -0
- package/.agents/skills/flockposter/examples/cli-youtube-short.sh +21 -0
- package/.agents/skills/flockposter/examples/public-api-instagram-reel.json +28 -0
- package/.agents/skills/general-video/SKILL.md +143 -0
- package/.agents/skills/hyperframes/SKILL.md +160 -0
- package/.agents/skills/hyperframes-animation/SKILL.md +84 -0
- package/.agents/skills/hyperframes-animation/adapters/animate-text.md +64 -0
- package/.agents/skills/hyperframes-animation/adapters/animejs.md +114 -0
- package/.agents/skills/hyperframes-animation/adapters/css-animations.md +143 -0
- package/.agents/skills/hyperframes-animation/adapters/gsap-easing-and-stagger.md +118 -0
- package/.agents/skills/hyperframes-animation/adapters/gsap-timeline-and-labels.md +96 -0
- package/.agents/skills/hyperframes-animation/adapters/gsap-transforms-and-perf.md +96 -0
- package/.agents/skills/hyperframes-animation/adapters/gsap.md +105 -0
- package/.agents/skills/hyperframes-animation/adapters/html-in-canvas-patterns.md +507 -0
- package/.agents/skills/hyperframes-animation/adapters/lottie.md +117 -0
- package/.agents/skills/hyperframes-animation/adapters/three.md +131 -0
- package/.agents/skills/hyperframes-animation/adapters/typegpu.md +178 -0
- package/.agents/skills/hyperframes-animation/adapters/waapi.md +101 -0
- package/.agents/skills/hyperframes-animation/blueprints/comparison-split.md +27 -0
- package/.agents/skills/hyperframes-animation/blueprints/constellation-hub.md +44 -0
- package/.agents/skills/hyperframes-animation/blueprints/cta-morph-press.md +28 -0
- package/.agents/skills/hyperframes-animation/blueprints/cursor-ui-demo.md +57 -0
- package/.agents/skills/hyperframes-animation/blueprints/dataviz-countup.md +46 -0
- package/.agents/skills/hyperframes-animation/blueprints/device-surface-showcase.md +53 -0
- package/.agents/skills/hyperframes-animation/blueprints/grid-card-assemble.md +66 -0
- package/.agents/skills/hyperframes-animation/blueprints/kinetic-type-beats.md +78 -0
- package/.agents/skills/hyperframes-animation/blueprints/logo-assemble-lockup.md +69 -0
- package/.agents/skills/hyperframes-animation/blueprints/overwhelm-surround.md +28 -0
- package/.agents/skills/hyperframes-animation/blueprints/spatial-pan-stations.md +37 -0
- package/.agents/skills/hyperframes-animation/blueprints/ticker-takeover.md +29 -0
- package/.agents/skills/hyperframes-animation/blueprints/titlecard-reveal.md +42 -0
- package/.agents/skills/hyperframes-animation/blueprints/typewriter-reveal.md +51 -0
- package/.agents/skills/hyperframes-animation/blueprints/video-text-pivot.md +30 -0
- package/.agents/skills/hyperframes-animation/blueprints-index.md +146 -0
- package/.agents/skills/hyperframes-animation/examples/assets/avatars/02.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/assets/brands/github.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/assets/brands/nvidia.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/assets/brands/visa.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/assets/brands/zoominfo.avif +0 -0
- package/.agents/skills/hyperframes-animation/examples/brand-reveal-assemble-zoom.html +382 -0
- package/.agents/skills/hyperframes-animation/examples/comparison-split-cards.html +649 -0
- package/.agents/skills/hyperframes-animation/examples/concept-demo-decode-pan.html +520 -0
- package/.agents/skills/hyperframes-animation/examples/cta-morph-press.html +468 -0
- package/.agents/skills/hyperframes-animation/examples/cta-orbit-collapse.html +1298 -0
- package/.agents/skills/hyperframes-animation/examples/demo-page-scroll-spotlight.html +759 -0
- package/.agents/skills/hyperframes-animation/examples/hook-counter-burst.html +729 -0
- package/.agents/skills/hyperframes-animation/examples/messaging-multi-phrase.html +352 -0
- package/.agents/skills/hyperframes-animation/examples/metric-video-text-pivot.html +779 -0
- package/.agents/skills/hyperframes-animation/examples/problem-mockup-overwhelm.html +1374 -0
- package/.agents/skills/hyperframes-animation/examples/proof-logo-chain.html +861 -0
- package/.agents/skills/hyperframes-animation/examples/takeover-ticker-displace.html +347 -0
- package/.agents/skills/hyperframes-animation/examples/workflow-approve-press.html +606 -0
- package/.agents/skills/hyperframes-animation/rules/3d-page-scroll.md +227 -0
- package/.agents/skills/hyperframes-animation/rules/3d-text-depth-layers.md +297 -0
- package/.agents/skills/hyperframes-animation/rules/ai-tracking-box.md +382 -0
- package/.agents/skills/hyperframes-animation/rules/ambient-glow-bloom.md +305 -0
- package/.agents/skills/hyperframes-animation/rules/asr-keyword-glow.md +286 -0
- package/.agents/skills/hyperframes-animation/rules/avatar-cloud-network.md +371 -0
- package/.agents/skills/hyperframes-animation/rules/camera-cursor-tracking.md +246 -0
- package/.agents/skills/hyperframes-animation/rules/card-morph-anchor.md +267 -0
- package/.agents/skills/hyperframes-animation/rules/center-outward-expansion.md +227 -0
- package/.agents/skills/hyperframes-animation/rules/context-sensitive-cursor.md +257 -0
- package/.agents/skills/hyperframes-animation/rules/coordinate-target-zoom.md +332 -0
- package/.agents/skills/hyperframes-animation/rules/counting-dynamic-scale.md +283 -0
- package/.agents/skills/hyperframes-animation/rules/css-marker-patterns.md +373 -0
- package/.agents/skills/hyperframes-animation/rules/cursor-click-ripple.md +262 -0
- package/.agents/skills/hyperframes-animation/rules/depth-of-field-blur.md +313 -0
- package/.agents/skills/hyperframes-animation/rules/depth-scatter-assemble.md +303 -0
- package/.agents/skills/hyperframes-animation/rules/discrete-text-sequence.md +273 -0
- package/.agents/skills/hyperframes-animation/rules/dynamic-content-sequencing.md +307 -0
- package/.agents/skills/hyperframes-animation/rules/gsap-effects.md +299 -0
- package/.agents/skills/hyperframes-animation/rules/hacker-flip-3d.md +223 -0
- package/.agents/skills/hyperframes-animation/rules/kinetic-beat-slam.md +183 -0
- package/.agents/skills/hyperframes-animation/rules/motion-blur-streak.md +328 -0
- package/.agents/skills/hyperframes-animation/rules/multi-phase-camera.md +273 -0
- package/.agents/skills/hyperframes-animation/rules/orbit-3d-entry.md +301 -0
- package/.agents/skills/hyperframes-animation/rules/physics-press-reaction.md +350 -0
- package/.agents/skills/hyperframes-animation/rules/press-release-spring.md +296 -0
- package/.agents/skills/hyperframes-animation/rules/reactive-displacement.md +277 -0
- package/.agents/skills/hyperframes-animation/rules/scale-swap-transition.md +298 -0
- package/.agents/skills/hyperframes-animation/rules/sine-wave-loop.md +278 -0
- package/.agents/skills/hyperframes-animation/rules/split-tilt-cards.md +277 -0
- package/.agents/skills/hyperframes-animation/rules/spring-pop-entrance.md +273 -0
- package/.agents/skills/hyperframes-animation/rules/stat-bars-and-fills.md +156 -0
- package/.agents/skills/hyperframes-animation/rules/svg-icon-enrichment.md +329 -0
- package/.agents/skills/hyperframes-animation/rules/svg-path-draw.md +274 -0
- package/.agents/skills/hyperframes-animation/rules/vertical-spring-ticker.md +239 -0
- package/.agents/skills/hyperframes-animation/rules/viewport-change.md +349 -0
- package/.agents/skills/hyperframes-animation/rules-index.md +86 -0
- package/.agents/skills/hyperframes-animation/scripts/animation-map.mjs +606 -0
- package/.agents/skills/hyperframes-animation/scripts/package-loader.mjs +288 -0
- package/.agents/skills/hyperframes-animation/scripts/package-loader.test.mjs +62 -0
- package/.agents/skills/hyperframes-animation/techniques.md +507 -0
- package/.agents/skills/hyperframes-animation/transitions/TRANSITION-REGISTRY.md +167 -0
- package/.agents/skills/hyperframes-animation/transitions/catalog.md +127 -0
- package/.agents/skills/hyperframes-animation/transitions/css-3d.md +12 -0
- package/.agents/skills/hyperframes-animation/transitions/css-blur.md +51 -0
- package/.agents/skills/hyperframes-animation/transitions/css-cover.md +43 -0
- package/.agents/skills/hyperframes-animation/transitions/css-destruction.md +95 -0
- package/.agents/skills/hyperframes-animation/transitions/css-dissolve.md +66 -0
- package/.agents/skills/hyperframes-animation/transitions/css-distortion.md +45 -0
- package/.agents/skills/hyperframes-animation/transitions/css-grid.md +10 -0
- package/.agents/skills/hyperframes-animation/transitions/css-light.md +49 -0
- package/.agents/skills/hyperframes-animation/transitions/css-mechanical.md +30 -0
- package/.agents/skills/hyperframes-animation/transitions/css-other.md +25 -0
- package/.agents/skills/hyperframes-animation/transitions/css-push.md +41 -0
- package/.agents/skills/hyperframes-animation/transitions/css-radial.md +37 -0
- package/.agents/skills/hyperframes-animation/transitions/css-scale.md +24 -0
- package/.agents/skills/hyperframes-animation/transitions/overview.md +153 -0
- package/.agents/skills/hyperframes-cli/SKILL.md +113 -0
- package/.agents/skills/hyperframes-cli/references/doctor-browser.md +45 -0
- package/.agents/skills/hyperframes-cli/references/init-and-scaffold.md +55 -0
- package/.agents/skills/hyperframes-cli/references/lambda.md +132 -0
- package/.agents/skills/hyperframes-cli/references/lint-validate-inspect.md +121 -0
- package/.agents/skills/hyperframes-cli/references/preview-render.md +149 -0
- package/.agents/skills/hyperframes-cli/references/upgrade-info-misc.md +75 -0
- package/.agents/skills/hyperframes-core/SKILL.md +78 -0
- package/.agents/skills/hyperframes-core/references/composition-patterns.md +263 -0
- package/.agents/skills/hyperframes-core/references/data-attributes.md +70 -0
- package/.agents/skills/hyperframes-core/references/determinism-rules.md +68 -0
- package/.agents/skills/hyperframes-core/references/full-screen-motion.md +62 -0
- package/.agents/skills/hyperframes-core/references/minimal-composition.md +66 -0
- package/.agents/skills/hyperframes-core/references/script-format.md +49 -0
- package/.agents/skills/hyperframes-core/references/storyboard-format.md +95 -0
- package/.agents/skills/hyperframes-core/references/sub-compositions.md +237 -0
- package/.agents/skills/hyperframes-core/references/subagent-dispatch.md +41 -0
- package/.agents/skills/hyperframes-core/references/tailwind.md +125 -0
- package/.agents/skills/hyperframes-core/references/tracks-and-clips.md +76 -0
- package/.agents/skills/hyperframes-core/references/variables-and-media.md +90 -0
- package/.agents/skills/hyperframes-creative/SKILL.md +70 -0
- package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/FRAME.md +289 -0
- package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/caption-skin.html +221 -0
- package/.agents/skills/hyperframes-creative/frame-presets/biennale-yellow/frame-showcase.html +1214 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blockframe/FRAME.md +275 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blockframe/caption-skin.html +224 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blockframe/frame-showcase.html +1347 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/FRAME.md +307 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/caption-skin.html +223 -0
- package/.agents/skills/hyperframes-creative/frame-presets/blue-professional/frame-showcase.html +1372 -0
- package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/FRAME.md +275 -0
- package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/caption-skin.html +230 -0
- package/.agents/skills/hyperframes-creative/frame-presets/bold-poster/frame-showcase.html +1140 -0
- package/.agents/skills/hyperframes-creative/frame-presets/broadside/FRAME.md +284 -0
- package/.agents/skills/hyperframes-creative/frame-presets/broadside/caption-skin.html +225 -0
- package/.agents/skills/hyperframes-creative/frame-presets/broadside/frame-showcase.html +1166 -0
- package/.agents/skills/hyperframes-creative/frame-presets/capsule/FRAME.md +284 -0
- package/.agents/skills/hyperframes-creative/frame-presets/capsule/caption-skin.html +224 -0
- package/.agents/skills/hyperframes-creative/frame-presets/capsule/frame-showcase.html +1465 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cartesian/FRAME.md +278 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cartesian/caption-skin.html +222 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cartesian/frame-showcase.html +1263 -0
- package/.agents/skills/hyperframes-creative/frame-presets/claude/FRAME.md +277 -0
- package/.agents/skills/hyperframes-creative/frame-presets/claude/caption-skin.html +224 -0
- package/.agents/skills/hyperframes-creative/frame-presets/claude/frame-showcase.html +1439 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/FRAME.md +265 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/caption-skin.html +238 -0
- package/.agents/skills/hyperframes-creative/frame-presets/cobalt-grid/frame-showcase.html +1468 -0
- package/.agents/skills/hyperframes-creative/frame-presets/coral/FRAME.md +314 -0
- package/.agents/skills/hyperframes-creative/frame-presets/coral/caption-skin.html +226 -0
- package/.agents/skills/hyperframes-creative/frame-presets/coral/frame-showcase.html +1268 -0
- package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/FRAME.md +333 -0
- package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/caption-skin.html +227 -0
- package/.agents/skills/hyperframes-creative/frame-presets/creative-mode/frame-showcase.html +1330 -0
- package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/FRAME.md +274 -0
- package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/caption-skin.html +230 -0
- package/.agents/skills/hyperframes-creative/frame-presets/daisy-days/frame-showcase.html +1444 -0
- package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/FRAME.md +265 -0
- package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/caption-skin.html +223 -0
- package/.agents/skills/hyperframes-creative/frame-presets/editorial-forest/frame-showcase.html +1273 -0
- package/.agents/skills/hyperframes-creative/palettes/bold-energetic.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/clean-corporate.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/dark-premium.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/jewel-rich.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/monochrome.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/nature-earth.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/neon-electric.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/pastel-soft.md +14 -0
- package/.agents/skills/hyperframes-creative/palettes/warm-editorial.md +14 -0
- package/.agents/skills/hyperframes-creative/references/audio-reactive.md +76 -0
- package/.agents/skills/hyperframes-creative/references/beat-direction.md +164 -0
- package/.agents/skills/hyperframes-creative/references/composition-patterns.md +199 -0
- package/.agents/skills/hyperframes-creative/references/data-in-motion.md +19 -0
- package/.agents/skills/hyperframes-creative/references/design-adherence.md +19 -0
- package/.agents/skills/hyperframes-creative/references/design-picker.md +123 -0
- package/.agents/skills/hyperframes-creative/references/design-spec.md +55 -0
- package/.agents/skills/hyperframes-creative/references/house-style.md +73 -0
- package/.agents/skills/hyperframes-creative/references/motion-principles.md +150 -0
- package/.agents/skills/hyperframes-creative/references/narration.md +92 -0
- package/.agents/skills/hyperframes-creative/references/prompt-expansion.md +68 -0
- package/.agents/skills/hyperframes-creative/references/typography.md +218 -0
- package/.agents/skills/hyperframes-creative/references/video-composition.md +63 -0
- package/.agents/skills/hyperframes-creative/references/visual-styles.md +457 -0
- package/.agents/skills/hyperframes-creative/scripts/contrast-report.mjs +353 -0
- package/.agents/skills/hyperframes-creative/scripts/extract-audio-data.py +188 -0
- package/.agents/skills/hyperframes-creative/scripts/package-loader.mjs +288 -0
- package/.agents/skills/hyperframes-creative/scripts/package-loader.test.mjs +62 -0
- package/.agents/skills/hyperframes-creative/templates/design-picker.html +1432 -0
- package/.agents/skills/hyperframes-keyframes/SKILL.md +237 -0
- package/.agents/skills/hyperframes-keyframes/agents/openai.yaml +4 -0
- package/.agents/skills/hyperframes-keyframes/references/keyframe-patterns.md +106 -0
- package/.agents/skills/motion-graphics/SKILL.md +172 -0
- package/.agents/skills/motion-graphics/agents/builder.md +40 -0
- package/.agents/skills/motion-graphics/agents/director.md +53 -0
- package/.agents/skills/motion-graphics/agents/finalize.md +17 -0
- package/.agents/skills/motion-graphics/catalog-map.md +40 -0
- package/.agents/skills/motion-graphics/categories/asset-fusion/module.md +37 -0
- package/.agents/skills/motion-graphics/categories/charts/module.md +21 -0
- package/.agents/skills/motion-graphics/categories/kinetic-type/module.md +19 -0
- package/.agents/skills/motion-graphics/categories/logo-reveal/module.md +17 -0
- package/.agents/skills/motion-graphics/categories/lower-thirds/module.md +16 -0
- package/.agents/skills/motion-graphics/categories/maps/bake-basemap.mjs +273 -0
- package/.agents/skills/motion-graphics/categories/maps/module.md +61 -0
- package/.agents/skills/motion-graphics/categories/news/module.md +56 -0
- package/.agents/skills/motion-graphics/categories/stat/module.md +21 -0
- package/.agents/skills/motion-graphics/categories/tweet/module.md +16 -0
- package/.agents/skills/motion-graphics/categories/webpage/module.md +21 -0
- package/.agents/skills/motion-graphics/grounding/PROTOCOL.md +64 -0
- package/.agents/skills/motion-graphics/grounding/locate.mjs +227 -0
- package/.agents/skills/motion-graphics/phases/source/guide.md +21 -0
- package/.agents/skills/motion-graphics/references/builder-contract.md +38 -0
- package/.agents/skills/motion-graphics/references/motion-vocabulary.md +43 -0
- package/.agents/skills/motion-graphics/references/shot-plan-ir.md +54 -0
- package/.agents/skills/motion-graphics/samples/asset-fusion/_ref-circle-highlight.html +306 -0
- package/.agents/skills/product-launch-video/SKILL.md +208 -0
- package/.agents/skills/product-launch-video/references/cut-catalog.md +220 -0
- package/.agents/skills/product-launch-video/references/motion-language.md +156 -0
- package/.agents/skills/product-launch-video/references/story-design.md +373 -0
- package/.agents/skills/product-launch-video/references/visual-design.md +126 -0
- package/.agents/skills/product-launch-video/scripts/assemble-index.mjs +570 -0
- package/.agents/skills/product-launch-video/scripts/audio.mjs +260 -0
- package/.agents/skills/product-launch-video/scripts/build-frame.mjs +536 -0
- package/.agents/skills/product-launch-video/scripts/captions.mjs +508 -0
- package/.agents/skills/product-launch-video/scripts/lib/assets.mjs +55 -0
- package/.agents/skills/product-launch-video/scripts/lib/dimensions.mjs +45 -0
- package/.agents/skills/product-launch-video/scripts/lib/pad-frame-duration.mjs +36 -0
- package/.agents/skills/product-launch-video/scripts/lib/pad-frame-duration.test.mjs +76 -0
- package/.agents/skills/product-launch-video/scripts/lib/storyboard.mjs +249 -0
- package/.agents/skills/product-launch-video/scripts/lib/tokens.mjs +204 -0
- package/.agents/skills/product-launch-video/scripts/lib/transition-registry.mjs +38 -0
- package/.agents/skills/product-launch-video/scripts/lib/transitions.json +71 -0
- package/.agents/skills/product-launch-video/scripts/stage-assets.mjs +39 -0
- package/.agents/skills/product-launch-video/scripts/transitions.mjs +327 -0
- package/.agents/skills/product-launch-video/sub-agents/frame-worker.md +75 -0
- package/.agents/skills/slideshow/SKILL.md +550 -0
- package/.agents/skills/slideshow/references/standalone-harness.md +1020 -0
- package/.agents/skills/talking-head-recut/NOTICE.md +39 -0
- package/.agents/skills/talking-head-recut/SKILL.md +1195 -0
- package/.agents/skills/talking-head-recut/assets/vendor/gsap.min.js +10 -0
- package/.agents/skills/talking-head-recut/references/DESIGN_INDEX.md +145 -0
- package/.agents/skills/talking-head-recut/references/frames/clean.html +92 -0
- package/.agents/skills/talking-head-recut/references/frames/hairline.html +171 -0
- package/.agents/skills/talking-head-recut/references/frames/polaroid.html +131 -0
- package/.agents/skills/talking-head-recut/references/layouts/overlay.html +164 -0
- package/.agents/skills/talking-head-recut/references/layouts/pip.html +143 -0
- package/.agents/skills/talking-head-recut/references/layouts/split.html +121 -0
- package/.agents/skills/talking-head-recut/references/layouts/stack.html +109 -0
- package/.agents/skills/talking-head-recut/references/styles/academic.html +172 -0
- package/.agents/skills/talking-head-recut/references/styles/audit.html +170 -0
- package/.agents/skills/talking-head-recut/references/styles/editorial.html +189 -0
- package/.agents/skills/talking-head-recut/references/styles/geom.html +181 -0
- package/.agents/skills/talking-head-recut/references/styles/minimal.html +130 -0
- package/.agents/skills/talking-head-recut/references/styles/spotlight.html +142 -0
- package/.agents/skills/talking-head-recut/references/styles/swiss.html +188 -0
- package/.agents/skills/talking-head-recut/references/styles/terminal.html +196 -0
- package/.agents/skills/talking-head-recut/references/styles/whiteboard.html +170 -0
- package/.agents/skills/talking-head-recut/references/styles/xhs.html +206 -0
- package/.agents/skills/vidfarm-media/SKILL.md +85 -0
- package/.agents/skills/vidfarm-media/references/tts.md +54 -0
- package/.agents/skills/vidfarm-media/scripts/audio.mjs +628 -0
- package/.agents/skills/vidfarm-media/scripts/wait-bgm.mjs +31 -0
- package/.agents/skills/website-to-video/SKILL.md +145 -0
- package/.agents/skills/website-to-video/assets/sfx/CREDITS.md +35 -0
- package/.agents/skills/website-to-video/assets/sfx/manifest.json +97 -0
- package/.agents/skills/website-to-video/references/beat-builder-guide.md +263 -0
- package/.agents/skills/website-to-video/references/capabilities.md +713 -0
- package/.agents/skills/website-to-video/references/step-0-capture.md +55 -0
- package/.agents/skills/website-to-video/references/step-1-design.md +333 -0
- package/.agents/skills/website-to-video/references/step-2-brief.md +178 -0
- package/.agents/skills/website-to-video/references/step-3-storyboard.md +572 -0
- package/.agents/skills/website-to-video/references/step-4-vo.md +225 -0
- package/.agents/skills/website-to-video/references/step-5-build.md +483 -0
- package/.agents/skills/website-to-video/references/step-6-validate.md +341 -0
- package/.agents/skills/website-to-video/scripts/w2h-verify.mjs +759 -0
- package/SKILL.director.md +37 -0
- package/SKILL.platform.md +6 -1
- package/demo/dist/app.css +1 -1
- package/demo/dist/app.js +369 -85
- package/dist/src/app.js +630 -140
- package/dist/src/cli.js +529 -12
- package/dist/src/composition-runtime.js +262 -3
- package/dist/src/config.js +13 -0
- package/dist/src/devcli/doctor.js +192 -0
- package/dist/src/devcli/hyperframes-cli.js +118 -0
- package/dist/src/devcli/skills.js +476 -0
- package/dist/src/devcli/stills.js +249 -0
- package/dist/src/editor-chat.js +256 -0
- package/dist/src/frontend/homepage-client.js +50 -1
- package/dist/src/frontend/homepage-shared.js +197 -0
- package/dist/src/frontend/homepage-store.js +10 -1
- package/dist/src/frontend/homepage-view.js +43 -5
- package/dist/src/homepage.js +51 -18
- package/dist/src/hyperframes/composition.js +5 -5
- package/dist/src/services/composition-lint.js +199 -0
- package/dist/src/services/hyperframes.js +67 -13
- package/dist/src/services/serverless-records.js +9 -0
- package/package.json +2 -1
- package/public/assets/homepage-client-app.js +23 -23
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hyperframes-animejs
|
|
3
|
+
description: Anime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on window.__hfAnime, making Anime.js seek-driven and deterministic, or translating Anime.js examples into render-safe HyperFrames HTML.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Anime.js for HyperFrames
|
|
7
|
+
|
|
8
|
+
HyperFrames can seek Anime.js instances through its `animejs` runtime adapter. The composition owns the animation objects; HyperFrames owns the clock.
|
|
9
|
+
|
|
10
|
+
## Contract
|
|
11
|
+
|
|
12
|
+
- Create animations or timelines synchronously during composition initialization.
|
|
13
|
+
- Set `autoplay: false` so Anime.js does not advance on its own clock.
|
|
14
|
+
- Register every returned animation or timeline on `window.__hfAnime`.
|
|
15
|
+
- Use finite durations and loop counts.
|
|
16
|
+
- Avoid callbacks that mutate DOM based on wall-clock time, network state, or unseeded randomness.
|
|
17
|
+
|
|
18
|
+
The adapter seeks every registered instance with `instance.seek(timeMs)`, where `timeMs` is HyperFrames time in milliseconds.
|
|
19
|
+
|
|
20
|
+
## Basic Pattern
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<script src="https://cdn.jsdelivr.net/npm/animejs@4.0.2/lib/anime.iife.min.js"></script>
|
|
24
|
+
<script>
|
|
25
|
+
const anim = anime({
|
|
26
|
+
targets: ".mark",
|
|
27
|
+
translateX: 280,
|
|
28
|
+
rotate: "1turn",
|
|
29
|
+
opacity: [0, 1],
|
|
30
|
+
duration: 1200,
|
|
31
|
+
easing: "easeOutExpo",
|
|
32
|
+
autoplay: false,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
window.__hfAnime = window.__hfAnime || [];
|
|
36
|
+
window.__hfAnime.push(anim);
|
|
37
|
+
</script>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Timeline Pattern
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<script>
|
|
44
|
+
const tl = anime.timeline({
|
|
45
|
+
autoplay: false,
|
|
46
|
+
easing: "easeOutCubic",
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
tl.add({
|
|
50
|
+
targets: ".title",
|
|
51
|
+
translateY: [40, 0],
|
|
52
|
+
opacity: [0, 1],
|
|
53
|
+
duration: 650,
|
|
54
|
+
}).add(
|
|
55
|
+
{
|
|
56
|
+
targets: ".accent",
|
|
57
|
+
scaleX: [0, 1],
|
|
58
|
+
duration: 450,
|
|
59
|
+
},
|
|
60
|
+
250,
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
window.__hfAnime = window.__hfAnime || [];
|
|
64
|
+
window.__hfAnime.push(tl);
|
|
65
|
+
</script>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Module Builds
|
|
69
|
+
|
|
70
|
+
If you use an ES module build, the adapter does not care how the instance was created. It only needs the returned object to expose `seek()`, `pause()`, and preferably `play()`:
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<script type="module">
|
|
74
|
+
import { animate } from "https://cdn.jsdelivr.net/npm/animejs/+esm";
|
|
75
|
+
|
|
76
|
+
const anim = animate(".chip", {
|
|
77
|
+
x: "18rem",
|
|
78
|
+
duration: 900,
|
|
79
|
+
autoplay: false,
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
window.__hfAnime = window.__hfAnime || [];
|
|
83
|
+
window.__hfAnime.push(anim);
|
|
84
|
+
</script>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Good Uses
|
|
88
|
+
|
|
89
|
+
- Small SVG and DOM flourishes where Anime.js syntax is compact.
|
|
90
|
+
- Imported Anime.js examples that can be made seek-driven.
|
|
91
|
+
- Multiple independent micro-animations pushed into the same registry.
|
|
92
|
+
|
|
93
|
+
Use GSAP for complex scene sequencing unless the user specifically asks for Anime.js. GSAP is still the primary HyperFrames authoring path.
|
|
94
|
+
|
|
95
|
+
## Avoid
|
|
96
|
+
|
|
97
|
+
- Leaving `autoplay` at the Anime.js default.
|
|
98
|
+
- Depending on `anime.running` auto-discovery instead of explicit `window.__hfAnime.push(...)`.
|
|
99
|
+
- Infinite loops. Compute a finite repeat count from the composition duration.
|
|
100
|
+
- Building animations in timers, promises, event handlers, or after async asset loads.
|
|
101
|
+
|
|
102
|
+
## Validation
|
|
103
|
+
|
|
104
|
+
After editing a composition that uses Anime.js:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
npx hyperframes lint
|
|
108
|
+
npx hyperframes validate
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Credits And References
|
|
112
|
+
|
|
113
|
+
- HyperFrames adapter source: `packages/core/src/runtime/adapters/animejs.ts`.
|
|
114
|
+
- Anime.js documentation for `autoplay`, `pause()`, and `seek()`: https://animejs.com/documentation/
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hyperframes-css-animations
|
|
3
|
+
description: CSS animation adapter patterns for HyperFrames. Use when authoring CSS keyframes, animation-delay based timing, animation-fill-mode, animation-play-state, or CSS-only motion that HyperFrames must seek deterministically during preview and rendering.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# CSS Animations for HyperFrames
|
|
7
|
+
|
|
8
|
+
HyperFrames can seek CSS keyframe animations through its `css` runtime adapter. Use this for simple repeated motifs, background motion, shimmer, glow, masks, and non-sequenced decoration.
|
|
9
|
+
|
|
10
|
+
For scene choreography, GSAP is usually clearer. CSS animations work best when the motion belongs to one element and has a fixed duration.
|
|
11
|
+
|
|
12
|
+
## Contract
|
|
13
|
+
|
|
14
|
+
- Put the animated element in the DOM before runtime initialization finishes.
|
|
15
|
+
- Give timed elements a `data-start` value so local animation time matches the clip.
|
|
16
|
+
- Use finite `animation-duration` and `animation-iteration-count` because the negative-delay fallback cannot represent unbounded duration in environments without WAAPI-backed CSS animations.
|
|
17
|
+
- Prefer `animation-fill-mode: both` so seeked states hold before and after active motion.
|
|
18
|
+
- Avoid wall-clock JavaScript, hover-triggered state, and class toggles that depend on user events.
|
|
19
|
+
|
|
20
|
+
The adapter discovers elements with computed `animation-name`, seeks their browser `Animation` handles when available, and falls back to pausing with negative `animation-delay`.
|
|
21
|
+
|
|
22
|
+
## Basic Pattern
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<div
|
|
26
|
+
id="pulse-ring"
|
|
27
|
+
class="clip pulse-ring"
|
|
28
|
+
data-start="0"
|
|
29
|
+
data-duration="4"
|
|
30
|
+
data-track-index="2"
|
|
31
|
+
></div>
|
|
32
|
+
|
|
33
|
+
<style>
|
|
34
|
+
.pulse-ring {
|
|
35
|
+
width: 280px;
|
|
36
|
+
height: 280px;
|
|
37
|
+
border: 4px solid rgba(255, 255, 255, 0.7);
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
animation-name: pulse-ring;
|
|
40
|
+
animation-duration: 1200ms;
|
|
41
|
+
animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
|
|
42
|
+
animation-iteration-count: 3;
|
|
43
|
+
animation-fill-mode: both;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes pulse-ring {
|
|
47
|
+
from {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
transform: scale(0.82);
|
|
50
|
+
}
|
|
51
|
+
35% {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
}
|
|
54
|
+
to {
|
|
55
|
+
opacity: 0;
|
|
56
|
+
transform: scale(1.18);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
</style>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Stagger Pattern
|
|
63
|
+
|
|
64
|
+
Use CSS custom properties to avoid duplicating keyframes:
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<div class="clip dots" data-start="1" data-duration="3" data-track-index="3">
|
|
68
|
+
<span style="--i: 0"></span>
|
|
69
|
+
<span style="--i: 1"></span>
|
|
70
|
+
<span style="--i: 2"></span>
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<style>
|
|
74
|
+
.dots span {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
width: 18px;
|
|
77
|
+
height: 18px;
|
|
78
|
+
margin-right: 10px;
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
background: currentColor;
|
|
81
|
+
animation: dot-pop 900ms ease-out both;
|
|
82
|
+
animation-delay: calc(var(--i) * 120ms);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes dot-pop {
|
|
86
|
+
from {
|
|
87
|
+
opacity: 0;
|
|
88
|
+
transform: translateY(18px) scale(0.75);
|
|
89
|
+
}
|
|
90
|
+
to {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
transform: translateY(0) scale(1);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
</style>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Good Uses
|
|
99
|
+
|
|
100
|
+
- Decorative loops with a known repeat count.
|
|
101
|
+
- Mask, glow, shimmer, grain, and subtle parallax layers.
|
|
102
|
+
- Simple one-element entrances where a full JS timeline would be excessive.
|
|
103
|
+
|
|
104
|
+
## Avoid
|
|
105
|
+
|
|
106
|
+
- Infinite CSS animations unless you have verified the browser exposes seekable WAAPI-backed CSS animation handles. Prefer a finite iteration count covering the visible duration. If you do use `infinite`, add `data-duration` to the root element — see Composition Duration below.
|
|
107
|
+
- Animating layout properties like `top`, `left`, `width`, or `height` when transforms work.
|
|
108
|
+
- Relying on hover, focus, scroll, or media queries to trigger render-critical motion.
|
|
109
|
+
- Changing animation classes after startup unless another deterministic timeline controls that change.
|
|
110
|
+
|
|
111
|
+
## Composition Duration
|
|
112
|
+
|
|
113
|
+
The render engine needs to know the composition's total length. GSAP timelines report this automatically; CSS-only compositions have no timeline object, so the runtime infers duration from the longest running animation's computed end time (`animation-delay` + `animation-duration` × finite `animation-iteration-count`, per element with `data-start` added as an offset). `data-duration` on the root element is optional whenever every CSS animation on the page is finite — you don't need to add it just because the composition is CSS-driven.
|
|
114
|
+
|
|
115
|
+
`animation-iteration-count: infinite` (or any unresolved/unbounded animation) has no finite end time, so it cannot be auto-inferred. If the composition's only animation is infinite, you **must** add `data-duration="<seconds>"` to the root `[data-composition-id]` element with your intended total length — `npx hyperframes lint` errors on this case (`root_composition_missing_duration_source`) precisely because there is nothing for the runtime to infer.
|
|
116
|
+
|
|
117
|
+
```html
|
|
118
|
+
<div
|
|
119
|
+
data-composition-id="root"
|
|
120
|
+
data-start="0"
|
|
121
|
+
data-duration="6"
|
|
122
|
+
data-width="1920"
|
|
123
|
+
data-height="1080"
|
|
124
|
+
>
|
|
125
|
+
<div class="clip spinner" data-start="0" style="animation: spin 1s linear infinite"></div>
|
|
126
|
+
</div>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Validation
|
|
130
|
+
|
|
131
|
+
After editing CSS animation compositions:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
npx hyperframes lint
|
|
135
|
+
npx hyperframes validate
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Credits And References
|
|
139
|
+
|
|
140
|
+
- HyperFrames adapter source: `packages/core/src/runtime/adapters/css.ts`.
|
|
141
|
+
- Duration auto-inference: `packages/core/src/runtime/init.ts` (`resolveAdapterDurationFloorSeconds`), `getInferredDurationSeconds` in the adapter above.
|
|
142
|
+
- MDN CSS animation documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/animation
|
|
143
|
+
- MDN `animation-fill-mode`: https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# Easing, Stagger, and Function-Based Values
|
|
2
|
+
|
|
3
|
+
## Easing
|
|
4
|
+
|
|
5
|
+
Built-in eases: `power1`, `power2`, `power3`, `power4`, `back`, `bounce`, `circ`, `elastic`, `expo`, `sine`, `none`.
|
|
6
|
+
|
|
7
|
+
Each has `.in`, `.out`, `.inOut` variants.
|
|
8
|
+
|
|
9
|
+
| Ease | Use for |
|
|
10
|
+
| -------------------------- | ----------------------------------------------------------------------- |
|
|
11
|
+
| `power1.out`, `power2.out` | Standard UI motion. Default for most entrances. |
|
|
12
|
+
| `power3.out`, `power4.out` | Punchier deceleration. Title cards, hero reveals. |
|
|
13
|
+
| `sine.inOut` | Long, slow, calm motion. Crossfades, ambient drift. |
|
|
14
|
+
| `back.out(1.7)` | Slight overshoot. Playful entrances. The arg controls overshoot amount. |
|
|
15
|
+
| `elastic.out(1, 0.3)` | Springy bounce. First arg = amplitude, second = period. |
|
|
16
|
+
| `expo.inOut` | Snappy, dramatic. Quick transitions between hero scenes. |
|
|
17
|
+
| `none` (linear) | Camera moves with timed counterpoint, mechanical motion. |
|
|
18
|
+
|
|
19
|
+
Pick `.out` for entrances, `.in` for exits, `.inOut` for symmetric moves and continuous motion.
|
|
20
|
+
|
|
21
|
+
## Easing Vocabulary (character & mood)
|
|
22
|
+
|
|
23
|
+
Easings are tone of voice: a video that only whispers is boring; one that varies between whisper, normal, and punch is engaging. Every composition should use at least 3 different easings — `power2.out` for everything produces flat, monotonous motion.
|
|
24
|
+
|
|
25
|
+
The full palette by character (each family has `.in`, `.out`, `.inOut` variants):
|
|
26
|
+
|
|
27
|
+
| Family | Character | Typical use |
|
|
28
|
+
| -------------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
29
|
+
| `power1`–`power4` | Gentle (1) to aggressive (4) acceleration curves | General purpose. power2 is the workhorse, power4 for dramatic snaps |
|
|
30
|
+
| `back(N)` | Overshoot then settle. N controls how far past the target (1=subtle, 4=wild) | Logo reveals, badge pops, card entrances. `back.out(2.5)` for playful, `back.out(1.2)` for elegant |
|
|
31
|
+
| `elastic(amp, freq)` | Spring bounce. amp=magnitude, freq=oscillation speed | Panel scatter, energetic drops, fun reveals |
|
|
32
|
+
| `bounce` | Ball-drop bouncing | Physical interactions, icons landing, score counters |
|
|
33
|
+
| `expo` | Extreme acceleration curve (much steeper than power4) | Premium/luxury reveals, dramatic entrances |
|
|
34
|
+
| `sine` | Smooth, organic, no hard edges | Ambient float, breathing, Ken Burns, anything that loops. `.inOut` for yoyo motion |
|
|
35
|
+
| `circ` | Circular acceleration (starts very fast, ends very gentle or vice versa) | Camera moves, scene transitions, orbital motion |
|
|
36
|
+
| `steps(N)` | Discrete N-step jumps, no interpolation | Typing effects, cursor blink, counter ticks, retro/digital aesthetics |
|
|
37
|
+
|
|
38
|
+
**Mood mapping:** Match easing character to the beat's emotional content. Smooth/organic easings (`sine`, `power1`) feel contemplative and drifting. Aggressive deceleration (`power4.out`, `expo.out`) feels snappy and confident. Spring overshoot (`back.out`) feels bouncy and physical. The storyboard's mood description should guide which character fits — not a formula.
|
|
39
|
+
|
|
40
|
+
## Defaults
|
|
41
|
+
|
|
42
|
+
```javascript
|
|
43
|
+
const tl = gsap.timeline({
|
|
44
|
+
paused: true,
|
|
45
|
+
defaults: { duration: 0.6, ease: "power2.out" },
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Or globally:
|
|
50
|
+
|
|
51
|
+
```javascript
|
|
52
|
+
gsap.defaults({ duration: 0.6, ease: "power2.out" });
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Setting defaults at timeline scope is preferred — it documents the motion language of that composition in one place.
|
|
56
|
+
|
|
57
|
+
## Stagger
|
|
58
|
+
|
|
59
|
+
```javascript
|
|
60
|
+
gsap.fromTo(".item", { y: 24, opacity: 0 }, { y: 0, opacity: 1, duration: 0.5, stagger: 0.08 });
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Object form:
|
|
64
|
+
|
|
65
|
+
```javascript
|
|
66
|
+
gsap.fromTo(
|
|
67
|
+
".item",
|
|
68
|
+
{ y: 24, opacity: 0 },
|
|
69
|
+
{
|
|
70
|
+
y: 0,
|
|
71
|
+
opacity: 1,
|
|
72
|
+
stagger: {
|
|
73
|
+
each: 0.08, // delay between each
|
|
74
|
+
from: "center", // "start" | "end" | "center" | "edges" | "random" | index
|
|
75
|
+
amount: 0.6, // total stagger time (overrides each if both set)
|
|
76
|
+
grid: "auto", // for 2D stagger
|
|
77
|
+
axis: "x" | "y",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
);
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Prefer `stagger` over N separate tweens with manual delays — it stays correct when the target count or order changes. Use `fromTo()` rather than `from()` so the start state is explicit (see `gsap-timeline-and-labels.md` → sub-composition entrances).
|
|
84
|
+
|
|
85
|
+
## Function-Based Values
|
|
86
|
+
|
|
87
|
+
Any var can be a function `(index, target, targets) => value`:
|
|
88
|
+
|
|
89
|
+
```javascript
|
|
90
|
+
gsap.to(".item", {
|
|
91
|
+
x: (i, target, targets) => i * 50,
|
|
92
|
+
rotation: (i) => (i % 2 === 0 ? 5 : -5),
|
|
93
|
+
stagger: 0.1,
|
|
94
|
+
});
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Use this for per-element values that depend on index, attributes, or measured size. Cheaper and more idiomatic than building tweens in a loop.
|
|
98
|
+
|
|
99
|
+
## gsap.matchMedia (preview only)
|
|
100
|
+
|
|
101
|
+
`matchMedia` runs setup only when a media query matches and auto-reverts when it stops matching. It is useful for **preview** in the browser at different viewport sizes, and for `prefers-reduced-motion`. It is **not** a substitute for rendering at the composition's actual `data-width`/`data-height` — HyperFrames renders at a fixed viewport.
|
|
102
|
+
|
|
103
|
+
```javascript
|
|
104
|
+
let mm = gsap.matchMedia();
|
|
105
|
+
mm.add(
|
|
106
|
+
{
|
|
107
|
+
isDesktop: "(min-width: 800px)",
|
|
108
|
+
reduceMotion: "(prefers-reduced-motion: reduce)",
|
|
109
|
+
},
|
|
110
|
+
(context) => {
|
|
111
|
+
const { isDesktop, reduceMotion } = context.conditions;
|
|
112
|
+
gsap.to(".box", {
|
|
113
|
+
rotation: isDesktop ? 360 : 180,
|
|
114
|
+
duration: reduceMotion ? 0 : 2,
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
);
|
|
118
|
+
```
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Timelines and Labels
|
|
2
|
+
|
|
3
|
+
HyperFrames is a seek-driven runtime. Build one paused timeline per composition, attach it to `window.__timelines["<composition-id>"]`, and let HyperFrames seek it. Never call `.play()` for render-critical motion.
|
|
4
|
+
|
|
5
|
+
## Creating a Timeline
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
const tl = gsap.timeline({
|
|
9
|
+
paused: true,
|
|
10
|
+
defaults: { duration: 0.5, ease: "power2.out" },
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
tl.to(".a", { x: 100 }).to(".b", { y: 50 }).to(".c", { opacity: 0 });
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Timeline options:
|
|
17
|
+
|
|
18
|
+
- **paused: true** — required in HyperFrames. The framework drives the playhead.
|
|
19
|
+
- **repeat**, **yoyo** — apply to the whole timeline. `repeat: -1` is forbidden; use finite counts.
|
|
20
|
+
- **defaults** — vars merged into every child tween. Use this instead of repeating `ease` and `duration` on every line.
|
|
21
|
+
|
|
22
|
+
## Position Parameter
|
|
23
|
+
|
|
24
|
+
The third argument to `.to()`/`.from()`/`.fromTo()` controls placement on the timeline:
|
|
25
|
+
|
|
26
|
+
| Form | Meaning |
|
|
27
|
+
| -------------- | ------------------------------------ |
|
|
28
|
+
| `0`, `1.5` | Absolute time in seconds |
|
|
29
|
+
| `"+=0.5"` | 0.5s after the end of the timeline |
|
|
30
|
+
| `"-=0.2"` | 0.2s before the end of the timeline |
|
|
31
|
+
| `"intro"` | At the `intro` label |
|
|
32
|
+
| `"intro+=0.3"` | 0.3s after the `intro` label |
|
|
33
|
+
| `"<"` | Same start as the previous tween |
|
|
34
|
+
| `">"` | Right after the previous tween ends |
|
|
35
|
+
| `"<0.2"` | 0.2s after the previous tween starts |
|
|
36
|
+
| `">-0.1"` | 0.1s before the previous tween ends |
|
|
37
|
+
|
|
38
|
+
```javascript
|
|
39
|
+
tl.to(".a", { x: 100 }, 0);
|
|
40
|
+
tl.to(".b", { y: 50 }, "<"); // same start as .a
|
|
41
|
+
tl.to(".c", { opacity: 0 }, "<0.2"); // 0.2s after .b starts
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Prefer the position parameter over `delay:` — it composes naturally and survives refactors that re-order tweens.
|
|
45
|
+
|
|
46
|
+
## Labels
|
|
47
|
+
|
|
48
|
+
```javascript
|
|
49
|
+
tl.addLabel("intro", 0);
|
|
50
|
+
tl.to(".a", { x: 100 }, "intro");
|
|
51
|
+
|
|
52
|
+
tl.addLabel("outro", "+=0.5");
|
|
53
|
+
tl.to(".a", { opacity: 0 }, "outro");
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Labels make a long timeline readable and let multiple tweens converge on the same beat without re-typing absolute times.
|
|
57
|
+
|
|
58
|
+
## Nesting Timelines
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
const master = gsap.timeline({ paused: true });
|
|
62
|
+
|
|
63
|
+
const child = gsap.timeline();
|
|
64
|
+
child.to(".a", { x: 100 }).to(".b", { y: 50 });
|
|
65
|
+
|
|
66
|
+
master.add(child, 0);
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
In HyperFrames, **do not** nest sub-composition timelines into the host. Sub-compositions loaded via `data-composition-src` are seeked independently by HyperFrames from their own `data-start`. Nesting is only for grouping pieces of the _same_ composition's timeline.
|
|
70
|
+
|
|
71
|
+
## Inside Sub-Compositions: prefer `fromTo` over `from`
|
|
72
|
+
|
|
73
|
+
For entrance tweens inside a sub-composition, prefer `gsap.fromTo()` over `gsap.from()`:
|
|
74
|
+
|
|
75
|
+
```javascript
|
|
76
|
+
// Sub-composition entrance — survives re-seek cleanly
|
|
77
|
+
tl.fromTo(".title", { y: 60, opacity: 0 }, { y: 0, opacity: 1, duration: 0.6 }, 0.2);
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Why: HyperFrames re-seeks the sub-composition every time its host clip becomes visible. `gsap.from()` snapshots the starting state at **registration time** (page load); when the playhead jumps back past `data-start`, that snapshot can desync from the actual CSS state and the element renders in the wrong position. `gsap.fromTo()` declares both endpoints explicitly, so the seek-back always produces the same start state.
|
|
81
|
+
|
|
82
|
+
In top-level (standalone) compositions either form works — there's no re-seek-through-mount cycle.
|
|
83
|
+
|
|
84
|
+
## Playback Control (debug / preview only)
|
|
85
|
+
|
|
86
|
+
```javascript
|
|
87
|
+
tl.play();
|
|
88
|
+
tl.pause();
|
|
89
|
+
tl.reverse();
|
|
90
|
+
tl.restart();
|
|
91
|
+
tl.time(2);
|
|
92
|
+
tl.progress(0.5);
|
|
93
|
+
tl.kill();
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
These are useful when previewing in the browser. In rendered output HyperFrames calls `seek()` internally — your timeline must produce identical state for the same time value every time it is seeked.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Transforms and Performance
|
|
2
|
+
|
|
3
|
+
## Transform Aliases
|
|
4
|
+
|
|
5
|
+
Prefer GSAP's transform aliases over raw `transform` strings:
|
|
6
|
+
|
|
7
|
+
| GSAP property | Equivalent |
|
|
8
|
+
| --------------------------- | --------------------- |
|
|
9
|
+
| `x`, `y`, `z` | `translateX/Y/Z` (px) |
|
|
10
|
+
| `xPercent`, `yPercent` | `translateX/Y` in `%` |
|
|
11
|
+
| `scale`, `scaleX`, `scaleY` | `scale` |
|
|
12
|
+
| `rotation` | `rotate` (deg) |
|
|
13
|
+
| `rotationX`, `rotationY` | 3D rotate |
|
|
14
|
+
| `skewX`, `skewY` | `skew` |
|
|
15
|
+
| `transformOrigin` | `transform-origin` |
|
|
16
|
+
|
|
17
|
+
Aliases let GSAP track and interpolate each axis independently, which prevents accidental overwrites between separate tweens on the same element.
|
|
18
|
+
|
|
19
|
+
## autoAlpha
|
|
20
|
+
|
|
21
|
+
Prefer `autoAlpha` over `opacity` for show/hide:
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
gsap.to(".panel", { autoAlpha: 0, duration: 0.4 });
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`autoAlpha: 0` sets both `opacity: 0` and `visibility: hidden`, which removes the element from hit-testing and accessibility tree at zero alpha — closer to "gone" than plain `opacity: 0`.
|
|
28
|
+
|
|
29
|
+
## clearProps
|
|
30
|
+
|
|
31
|
+
Removes inline styles set by GSAP when the tween completes:
|
|
32
|
+
|
|
33
|
+
```javascript
|
|
34
|
+
gsap.to(".item", { x: 100, rotation: 45, clearProps: "all" });
|
|
35
|
+
gsap.to(".item", { x: 100, rotation: 45, clearProps: "rotation,x" });
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Useful at the end of an animation segment to hand the element back to CSS.
|
|
39
|
+
|
|
40
|
+
## CSS Variables
|
|
41
|
+
|
|
42
|
+
```javascript
|
|
43
|
+
gsap.to(".chart", { "--hue": 180, duration: 1 });
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Animate any custom property. Works for color, length, number — anything CSS will interpolate.
|
|
47
|
+
|
|
48
|
+
## Relative and Directional Values
|
|
49
|
+
|
|
50
|
+
- Relative: `"+=20"`, `"-=10"`, `"*=2"`.
|
|
51
|
+
- Directional rotation: `"360_cw"`, `"-170_short"`, `"90_ccw"` — controls which way the angle takes when going between two values.
|
|
52
|
+
|
|
53
|
+
## SVG Specifics
|
|
54
|
+
|
|
55
|
+
- `svgOrigin` sets transform origin in the SVG's global coordinate space (not the element's local box). **Do not** combine `svgOrigin` with `transformOrigin` on the same element — pick one.
|
|
56
|
+
- Animate SVG transform attributes via the same alias names (`x`, `y`, `rotation`) — GSAP handles the SVG-specific quirks.
|
|
57
|
+
|
|
58
|
+
## Performance Rules
|
|
59
|
+
|
|
60
|
+
### Prefer transforms and opacity
|
|
61
|
+
|
|
62
|
+
Animating `x`, `y`, `scale`, `rotation`, `opacity` stays on the GPU compositor. Avoid `width`, `height`, `top`, `left`, `margin`, `padding` when transforms achieve the same effect.
|
|
63
|
+
|
|
64
|
+
### will-change (sparingly)
|
|
65
|
+
|
|
66
|
+
```css
|
|
67
|
+
.title {
|
|
68
|
+
will-change: transform;
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Only on elements that _actually_ animate. Applied everywhere it becomes useless and burns memory.
|
|
73
|
+
|
|
74
|
+
### gsap.quickTo for frequent updates (preview-only)
|
|
75
|
+
|
|
76
|
+
For high-frequency updates driven by **events** — pointer move, scroll, audio scrub — `quickTo` reuses the same tween instead of creating a new one each frame:
|
|
77
|
+
|
|
78
|
+
```javascript
|
|
79
|
+
const xTo = gsap.quickTo("#cursor", "x", { duration: 0.4, ease: "power3" });
|
|
80
|
+
const yTo = gsap.quickTo("#cursor", "y", { duration: 0.4, ease: "power3" });
|
|
81
|
+
|
|
82
|
+
container.addEventListener("mousemove", (e) => {
|
|
83
|
+
xTo(e.pageX);
|
|
84
|
+
yTo(e.pageY);
|
|
85
|
+
});
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
> **Render mode has no input events.** The renderer seeks frame-by-frame; `mousemove`, `scroll`, etc. never fire. `quickTo`'s main use case applies in **live preview** in the browser only. For audio-reactive motion in renders, pre-extract audio data and drive the timeline declaratively (see `../rules/gsap-effects.md`).
|
|
89
|
+
|
|
90
|
+
### Stagger beats N tweens
|
|
91
|
+
|
|
92
|
+
One tween with `stagger` beats N tweens with manual delays for both readability and runtime cost.
|
|
93
|
+
|
|
94
|
+
### Cleanup
|
|
95
|
+
|
|
96
|
+
In live preview, pause or `kill()` off-screen animations. Render mode is unaffected (the renderer drives time directly).
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hyperframes-gsap-adapter
|
|
3
|
+
description: GSAP animation API reference for HyperFrames. Use when writing seekable GSAP timelines in HyperFrames compositions, including gsap.to(), from(), fromTo(), set(), timeline position parameters, labels, easing, stagger, finite repeats, and transform performance.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# HyperFrames GSAP
|
|
7
|
+
|
|
8
|
+
GSAP usage scoped to HyperFrames' seek-driven render model. This skill is the GSAP reference _as constrained by HyperFrames_ — for the framework's broader composition contract see `hyperframes-core`.
|
|
9
|
+
|
|
10
|
+
## HyperFrames Contract
|
|
11
|
+
|
|
12
|
+
HyperFrames controls GSAP through its `gsap` runtime adapter. Create a paused timeline synchronously, register it on `window.__timelines` with the exact `data-composition-id`, and let HyperFrames seek it.
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
|
|
16
|
+
<script>
|
|
17
|
+
window.__timelines = window.__timelines || {};
|
|
18
|
+
const tl = gsap.timeline({ paused: true });
|
|
19
|
+
|
|
20
|
+
tl.from(".title", { y: 48, opacity: 0, duration: 0.6, ease: "power3.out" }, 0);
|
|
21
|
+
tl.to(".accent", { scaleX: 1, duration: 0.5, ease: "power2.out" }, 0.25);
|
|
22
|
+
|
|
23
|
+
window.__timelines["main"] = tl; // key must equal data-composition-id on the composition root
|
|
24
|
+
</script>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
- The registry key must match the composition root's `data-composition-id`.
|
|
28
|
+
- Bracket and dot syntax both register: `window.__timelines["main"] = tl` and `window.__timelines.main = tl` are equivalent (the linter recognizes both). Bracket form is required when the id isn't a valid identifier (e.g. contains `-`).
|
|
29
|
+
- Do not call `tl.play()` for render-critical motion.
|
|
30
|
+
- Do not build timelines inside async code, timers, or event handlers.
|
|
31
|
+
- Keep loops finite. HyperFrames renders finite video durations.
|
|
32
|
+
- **Render duration comes from `data-duration` on the composition root, not from GSAP timeline length.** Do not pad the timeline with empty tweens like `tl.set({}, {}, 283)` to "extend" it. (Some external docs show this trick; in HyperFrames it conflicts with the seek-driven duration model — set `data-duration` instead.)
|
|
33
|
+
|
|
34
|
+
## Core Tween Methods
|
|
35
|
+
|
|
36
|
+
- **gsap.to(targets, vars)** — animate from current state to `vars`. Most common.
|
|
37
|
+
- **gsap.from(targets, vars)** — animate from `vars` to current state (entrances).
|
|
38
|
+
- **gsap.fromTo(targets, fromVars, toVars)** — explicit start and end.
|
|
39
|
+
- **gsap.set(targets, vars)** — apply immediately (duration 0).
|
|
40
|
+
|
|
41
|
+
Always use **camelCase** property names (e.g. `backgroundColor`, `rotationX`).
|
|
42
|
+
|
|
43
|
+
## Common vars (cheatsheet)
|
|
44
|
+
|
|
45
|
+
- **duration** — seconds (default 0.5).
|
|
46
|
+
- **delay** — seconds before start.
|
|
47
|
+
- **ease** — `"power1.out"` (default), `"power3.inOut"`, `"back.out(1.7)"`, `"elastic.out(1, 0.3)"`, `"none"`. See `./gsap-easing-and-stagger.md`.
|
|
48
|
+
- **stagger** — number or object. See `./gsap-easing-and-stagger.md`.
|
|
49
|
+
- **repeat** — finite number; never `-1` in HyperFrames. Compute repeats from the visible duration.
|
|
50
|
+
- **yoyo** — alternates direction with repeat.
|
|
51
|
+
- **overwrite** — `false` (default), `true`, or `"auto"`.
|
|
52
|
+
- **immediateRender** — default `true` for from()/fromTo(). Set `false` on later tweens targeting the same property+element.
|
|
53
|
+
- **onComplete**, **onStart**, **onUpdate** — callbacks.
|
|
54
|
+
|
|
55
|
+
For transforms, autoAlpha, clearProps, and SVG specifics see `./gsap-transforms-and-perf.md`.
|
|
56
|
+
|
|
57
|
+
## Animated Property Allowlist
|
|
58
|
+
|
|
59
|
+
HyperFrames is stricter than vanilla GSAP. Animate only:
|
|
60
|
+
|
|
61
|
+
- **Compositor-cheap**: `opacity`, `x`, `y`, `scale`, `scaleX`, `scaleY`, `rotation`, `rotationX`, `rotationY`, `skewX`, `skewY`, `transformOrigin`
|
|
62
|
+
- **Visual fills**: `color`, `backgroundColor`, `borderColor`, `borderRadius`
|
|
63
|
+
- **CSS variables**: `"--hue": 180` etc.
|
|
64
|
+
- **Media `volume`** (on `<audio>` / `<video>`): animate for fades/ducking, e.g. `tl.to("#bgm", { volume: 0, duration: 1 }, "outro")`. The runtime probes these keyframes from the timeline and drives them in both preview and render (they match). This sets the _author_ volume; `data-volume` is the static baseline when no tween touches the element.
|
|
65
|
+
- **DOM text `innerText`** (for numeric counters): tween it directly, e.g. `tl.to(el, { innerText: 100, snap: { innerText: 1 } })` — `snap` keeps it integer; the GSAP inspector recognizes it as a counter. Equivalent to the `onUpdate`-proxy form in `../rules/counting-dynamic-scale.md`; prefer that proxy form when you must also drive font-size, locale formatting (`toLocaleString`), or a suffix in the same tween.
|
|
66
|
+
|
|
67
|
+
**Avoid** (use the transform alias instead):
|
|
68
|
+
|
|
69
|
+
- `width` / `height` / `top` / `left` / `right` / `bottom` / `margin*` / `padding*` — trigger layout reflows. Use `scaleX/Y` (with `transformOrigin`) or `x` / `y`.
|
|
70
|
+
|
|
71
|
+
**Forbidden** (breaks the renderer or the clip lifecycle):
|
|
72
|
+
|
|
73
|
+
- `display`, `visibility` — never tween these directly. Use `autoAlpha` (sets opacity + visibility together at endpoints, doesn't tween the discrete property).
|
|
74
|
+
- Anything driven by `Math.random()`, `Date.now()`, `performance.now()`, or event handlers — animation state must be deterministic from time alone.
|
|
75
|
+
|
|
76
|
+
> **Note**: `docs/guides/gsap-animation.mdx` lists `width`/`height`/`visibility` in its "Supported Properties" — that list is too permissive for HyperFrames composition rules. This allowlist is the canonical one. See `hyperframes-core/references/determinism-rules.md` for the full deterministic-render contract.
|
|
77
|
+
|
|
78
|
+
## References
|
|
79
|
+
|
|
80
|
+
- `./gsap-timeline-and-labels.md` — timeline creation, position parameter (`+=`, `<`, `>`), labels, nesting, sub-comp `fromTo` preference, playback control.
|
|
81
|
+
- `./gsap-easing-and-stagger.md` — easing families, stagger objects, function-based values, `gsap.matchMedia()`, `gsap.defaults()`.
|
|
82
|
+
- `./gsap-transforms-and-perf.md` — transform aliases, autoAlpha, `quickTo`, `will-change`, performance rules.
|
|
83
|
+
- `../rules/gsap-effects.md` — drop-in recipes: typewriter (with cursor / backspace / word rotation) + audio visualizer (uses `skills/hyperframes-creative/scripts/extract-audio-data.py`).
|
|
84
|
+
|
|
85
|
+
## Best Practices
|
|
86
|
+
|
|
87
|
+
- Use camelCase property names; prefer transform aliases and autoAlpha.
|
|
88
|
+
- Prefer timelines over chained tweens with delays; use the position parameter.
|
|
89
|
+
- Add labels with `addLabel()` for readable sequencing.
|
|
90
|
+
- Pass defaults into the timeline constructor.
|
|
91
|
+
- Store the tween/timeline return value when controlling playback.
|
|
92
|
+
|
|
93
|
+
## Do Not
|
|
94
|
+
|
|
95
|
+
- Animate layout properties (`width`/`height`/`top`/`left`) when transforms suffice.
|
|
96
|
+
- Use both `svgOrigin` and `transformOrigin` on the same SVG element.
|
|
97
|
+
- Chain animations with `delay` when a timeline can sequence them.
|
|
98
|
+
- Create tweens before the DOM exists.
|
|
99
|
+
- Use infinite `repeat: -1` in HyperFrames compositions — use finite repeat counts computed from the visible duration.
|
|
100
|
+
|
|
101
|
+
## Credits And References
|
|
102
|
+
|
|
103
|
+
- HyperFrames adapter source: `packages/core/src/runtime/adapters/gsap.ts`.
|
|
104
|
+
- GSAP documentation: https://gsap.com/docs/v3/
|
|
105
|
+
- GSAP timeline pause and seek behavior: https://gsap.com/docs/v3/GSAP/Timeline/pause%28%29/
|