hyper-animator-codex 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -7
- package/bin/hyper-animator-codex.mjs +31 -9
- package/bin/postinstall.mjs +19 -0
- package/lib/install-options.mjs +3 -0
- package/lib/install-skill.mjs +84 -2
- package/lib/minimax-config.mjs +3 -3
- package/package.json +3 -2
- package/skills/hyper-animator-codex/SKILL.md +58 -20
- package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
- package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +214 -0
- package/skills/hyper-animator-codex/contracts/workflow-policy.json +85 -0
- package/skills/hyper-animator-codex/references/HyperFrames-AI-Generation-Patterns-codex.md +788 -0
- package/skills/hyper-animator-codex/references/beat-sync-workflow.md +7 -0
- package/skills/hyper-animator-codex/references/examples/shot-plan-dual-catalog.json +69 -0
- package/skills/hyper-animator-codex/references/hyperframes-agent-pseudocode.ts +1 -1
- package/skills/hyper-animator-codex/references/hyperframes-catalog-map.json +97 -230
- package/skills/hyper-animator-codex/references/hyperframes-intent-workflow.md +23 -7
- package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
- package/skills/hyper-animator-codex/references/narration-audio-workflow.md +31 -1
- package/skills/hyper-animator-codex/references/shotcraft/LICENSE +202 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ai-stream-response/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/autolayout-gap-dial/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-cut-moves/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-step-list-theme-cycle/README.md +59 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/before-after-slider-scrub/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bottom-push-stack-wipe/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-frame-snap/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-ink-open/README.md +35 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bubble-swarm-takeover/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/canvas-materialize-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flip-reveal/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flock-tumble/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cel-flash-stomp/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/chart-live-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/circle-match-iris/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cloner-depth-echo/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/collab-cursor-moves/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/color-block-step-wipe/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/command-palette-summon/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crane-rise-reveal/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crash-zoom-punch/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/dataviz-landscape-open/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/deck-deal-flyin/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/depth-layer-moves/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/document-typewriter-reveal/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/draw-svg-trace/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/edit-hook-moves/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/element-body-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/fui-hud-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gauge-readout-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/glow-flyline-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gradient-word-sweep/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/graze-face-tour/README.md +56 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hashtag-to-pill-materialize/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hires-rasterize-3d-text/README.md +34 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-field-colorize/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-performance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/impact-feedback/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/input-trigger-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/integration-hub-map/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/letterspace-materialize/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/light-play-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-boil/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-carry-transition/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/list-stack-press/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/magician-card-flourish/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/marker-underline-title/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/montage-rhythm-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/morph-from-primitive/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-forerun/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-orbit-drop/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-triple-marquee/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/odometer-digit-roll/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/outro-group-photo-launch/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/overhead-camera-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-turn-transitions/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-waterfall-wall/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/panel-grid-moves/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-craft-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-plane-messenger/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-title-card/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-celebrate-hits/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-sand-fill/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/pill-slot-cycle/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/print-texture-transitions/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/rhythm-interrupt-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/riso-print-hits/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/row-embed/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/runway-ground-skim/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/sakuga-timing-shift/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scene-locked-title/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scroll-brake-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/segmented-thumb-hero/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/shot-transitions/README.md +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/skeleton-reveal/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/slam-entrance-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/smear-multiples/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/space-camera-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spectrum-morph-ui/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/speed-ramp-freeze/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/split-flap-title/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-hero-card/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-sweep-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/steep-tilt-glide/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/stroke-segment-build/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tear-streak-transitions/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tension-camera-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-as-mask/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-column-converge/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/theme-switch-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/timeline-travel/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/title-demote-to-label/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/trailer-grammar-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-hidden-cut/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-travel/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-and-filter/README.md +37 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-assembly-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-entrance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-rhythm-sync/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/typewriter-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-strip-away-outro/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-to-brand-morph/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/voice-waveform-live/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wall-reveal-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wipe-transitions/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/word-relay-filmstrip/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/catalog.json +3946 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
- package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
- package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
- package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
- package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
- package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
- package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
- package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
- package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
- package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +193 -0
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// glow-orb-ambient|暗场光斑呼吸
|
|
2
|
+
// 近黑底上三团大光斑(radial-gradient 亮灰 + blur100)用 seed hash 驱动
|
|
3
|
+
// 多正弦叠加做有机漂移;中央深色描边卡的边缘辉光随最近光斑距离呼吸。
|
|
4
|
+
// 0–20f 光斑淡入,中段正常速度漂移,90–120f 缓动收敛到静止,末 30f 真静止。
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { AbsoluteFill, interpolate, useCurrentFrame, Easing } from 'remotion';
|
|
7
|
+
|
|
8
|
+
// 库内标准伪随机(帧确定)
|
|
9
|
+
const h = (n: number) => {
|
|
10
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
11
|
+
return s - Math.floor(s);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const W = 1920;
|
|
15
|
+
const H = 1080;
|
|
16
|
+
const CX = W / 2;
|
|
17
|
+
const CY = H / 2;
|
|
18
|
+
|
|
19
|
+
type Orb = {
|
|
20
|
+
size: number; // 直径 500–700
|
|
21
|
+
peak: number; // 亮度峰值
|
|
22
|
+
bx: number; by: number; // 基准中心
|
|
23
|
+
p1: number; p2: number; // 两个正弦周期 90–140f
|
|
24
|
+
ax1: number; ax2: number; ay1: number; ay2: number; // 振幅(合计 ≥240px)
|
|
25
|
+
seed: number;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const ORBS: Orb[] = [
|
|
29
|
+
{ size: 680, peak: 0.32, bx: 600, by: 400, p1: 96, p2: 134, ax1: 170, ax2: 115, ay1: 160, ay2: 120, seed: 1 },
|
|
30
|
+
{ size: 580, peak: 0.22, bx: 1360, by: 560, p1: 110, p2: 92, ax1: 160, ax2: 120, ay1: 175, ay2: 105, seed: 2 },
|
|
31
|
+
{ size: 500, peak: 0.18, bx: 940, by: 860, p1: 128, p2: 98, ax1: 150, ax2: 125, ay1: 145, ay2: 118, seed: 3 },
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
const TAU = Math.PI * 2;
|
|
35
|
+
|
|
36
|
+
const orbPos = (o: Orb, t: number) => {
|
|
37
|
+
const f1 = h(o.seed * 7 + 1) * TAU;
|
|
38
|
+
const f2 = h(o.seed * 7 + 2) * TAU;
|
|
39
|
+
const f3 = h(o.seed * 7 + 3) * TAU;
|
|
40
|
+
const f4 = h(o.seed * 7 + 4) * TAU;
|
|
41
|
+
const x = o.bx + o.ax1 * Math.sin((TAU * t) / o.p1 + f1) + o.ax2 * Math.sin((TAU * t) / o.p2 + f2);
|
|
42
|
+
const y = o.by + o.ay1 * Math.sin((TAU * t) / o.p2 + f3) + o.ay2 * Math.sin((TAU * t) / o.p1 + f4);
|
|
43
|
+
return { x, y };
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const GlowOrbAmbient: React.FC = () => {
|
|
47
|
+
const f = useCurrentFrame();
|
|
48
|
+
|
|
49
|
+
// 有效时间:0–90f 匀速,90–120f 用 out-sine 减速收敛(起始斜率≈0.94,近似连续),
|
|
50
|
+
// f≥120 clamp 恒定 => 末 30f 所有位置/阴影完全静止。
|
|
51
|
+
const t =
|
|
52
|
+
f <= 90
|
|
53
|
+
? f
|
|
54
|
+
: 90 +
|
|
55
|
+
interpolate(f, [90, 120], [0, 18], {
|
|
56
|
+
easing: Easing.out(Easing.sin),
|
|
57
|
+
extrapolateLeft: 'clamp',
|
|
58
|
+
extrapolateRight: 'clamp',
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// 淡入 0–20f(在末 30f 之前早已结束)
|
|
62
|
+
const fadeIn = interpolate(f, [0, 20], [0, 1], {
|
|
63
|
+
easing: Easing.out(Easing.cubic),
|
|
64
|
+
extrapolateLeft: 'clamp',
|
|
65
|
+
extrapolateRight: 'clamp',
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const positions = ORBS.map((o) => orbPos(o, t));
|
|
69
|
+
|
|
70
|
+
// 卡缘呼吸:最近光斑距离 -> 辉光强度(按光斑峰值加权取最大)
|
|
71
|
+
let glow = 0;
|
|
72
|
+
ORBS.forEach((o, i) => {
|
|
73
|
+
const d = Math.hypot(positions[i].x - CX, positions[i].y - CY);
|
|
74
|
+
const p = interpolate(d, [180, 720], [1, 0], {
|
|
75
|
+
extrapolateLeft: 'clamp',
|
|
76
|
+
extrapolateRight: 'clamp',
|
|
77
|
+
});
|
|
78
|
+
glow = Math.max(glow, p * (o.peak / 0.32));
|
|
79
|
+
});
|
|
80
|
+
const shadowBlur = 28 * glow;
|
|
81
|
+
const shadowSpread = 10 * glow;
|
|
82
|
+
const shadowAlpha = 0.25 * glow;
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<AbsoluteFill style={{ background: '#1d1d1b', overflow: 'hidden' }}>
|
|
86
|
+
{ORBS.map((o, i) => (
|
|
87
|
+
<div
|
|
88
|
+
key={i}
|
|
89
|
+
style={{
|
|
90
|
+
position: 'absolute',
|
|
91
|
+
left: positions[i].x - o.size / 2,
|
|
92
|
+
top: positions[i].y - o.size / 2,
|
|
93
|
+
width: o.size,
|
|
94
|
+
height: o.size,
|
|
95
|
+
borderRadius: '50%',
|
|
96
|
+
background: `radial-gradient(circle, rgba(232,232,228,${o.peak}) 0%, rgba(232,232,228,${o.peak * 0.5}) 42%, rgba(232,232,228,0) 70%)`,
|
|
97
|
+
filter: 'blur(100px)',
|
|
98
|
+
opacity: fadeIn,
|
|
99
|
+
}}
|
|
100
|
+
/>
|
|
101
|
+
))}
|
|
102
|
+
{/* 中央深色描边卡 */}
|
|
103
|
+
<div
|
|
104
|
+
style={{
|
|
105
|
+
position: 'absolute',
|
|
106
|
+
left: CX - 280,
|
|
107
|
+
top: CY - 165,
|
|
108
|
+
width: 560,
|
|
109
|
+
height: 330,
|
|
110
|
+
boxSizing: 'border-box',
|
|
111
|
+
background: '#262624',
|
|
112
|
+
border: '1.5px solid #6a6a68',
|
|
113
|
+
borderRadius: 16,
|
|
114
|
+
boxShadow: `0 0 ${shadowBlur}px ${shadowSpread}px rgba(255,255,255,${shadowAlpha})`,
|
|
115
|
+
padding: 32,
|
|
116
|
+
display: 'flex',
|
|
117
|
+
flexDirection: 'column',
|
|
118
|
+
gap: 16,
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
<div style={{ height: 18, width: '55%', background: '#4a4a48', borderRadius: 9 }} />
|
|
122
|
+
<div style={{ height: 11, width: '82%', background: '#3a3a38', borderRadius: 6 }} />
|
|
123
|
+
<div style={{ height: 11, width: '68%', background: '#3a3a38', borderRadius: 6 }} />
|
|
124
|
+
<div style={{ marginTop: 'auto', display: 'flex', gap: 10, alignItems: 'center' }}>
|
|
125
|
+
<div style={{ width: 28, height: 28, borderRadius: 14, background: '#4a4a48' }} />
|
|
126
|
+
<div style={{ height: 11, width: 90, background: '#3a3a38', borderRadius: 6 }} />
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</AbsoluteFill>
|
|
130
|
+
);
|
|
131
|
+
};
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
// orb-flyline-relay|光斑飞线接力
|
|
2
|
+
// 组合变异 = glow-orb-ambient + flyline-arc。
|
|
3
|
+
// 近黑底(#1d1d1b)+ 两团 blur(100px) 灰亮光斑多正弦漂移当氛围层;
|
|
4
|
+
// 三张深色描边卡三角布局、初始半暗(0.55)。飞线 A→B 落点帧:卡 B 亮起
|
|
5
|
+
// (opacity→1 + 描边亮白脉冲) 且邻近光斑同帧涨亮一拍(组合共振证明点);
|
|
6
|
+
// 线二 B→C 接力,C 亮起收束。光斑 95–120f out-sine 减速收敛,
|
|
7
|
+
// 全部动画 f120 前结束,末 35f 真静止。
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { AbsoluteFill, interpolate, useCurrentFrame, Easing } from 'remotion';
|
|
10
|
+
|
|
11
|
+
// 库内标准伪随机(帧确定)
|
|
12
|
+
const h = (n: number) => {
|
|
13
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
14
|
+
return s - Math.floor(s);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const TAU = Math.PI * 2;
|
|
18
|
+
|
|
19
|
+
type Pt = { x: number; y: number };
|
|
20
|
+
|
|
21
|
+
// 手写 cubic bezier 采样
|
|
22
|
+
const bez = (p0: Pt, p1: Pt, p2: Pt, p3: Pt, t: number): Pt => {
|
|
23
|
+
const u = 1 - t;
|
|
24
|
+
return {
|
|
25
|
+
x: u * u * u * p0.x + 3 * u * u * t * p1.x + 3 * u * t * t * p2.x + t * t * t * p3.x,
|
|
26
|
+
y: u * u * u * p0.y + 3 * u * u * t * p1.y + 3 * u * t * t * p2.y + t * t * t * p3.y,
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const N = 100;
|
|
31
|
+
|
|
32
|
+
// ===== 布局:三张 420×250 深色卡呈三角 =====
|
|
33
|
+
const CARD_W = 420;
|
|
34
|
+
const CARD_H = 250;
|
|
35
|
+
const CARDS = {
|
|
36
|
+
A: { x: 230, y: 170 }, // 左上(center 440, 295)
|
|
37
|
+
B: { x: 1270, y: 300 }, // 右中(center 1480, 425)
|
|
38
|
+
C: { x: 700, y: 740 }, // 下中(center 910, 865)
|
|
39
|
+
};
|
|
40
|
+
const center = (c: { x: number; y: number }) => ({ x: c.x + CARD_W / 2, y: c.y + CARD_H / 2 });
|
|
41
|
+
|
|
42
|
+
// ===== 光斑(氛围层)=====
|
|
43
|
+
type Orb = {
|
|
44
|
+
size: number; peak: number;
|
|
45
|
+
bx: number; by: number;
|
|
46
|
+
p1: number; p2: number;
|
|
47
|
+
ax1: number; ax2: number; ay1: number; ay2: number;
|
|
48
|
+
seed: number;
|
|
49
|
+
surgeAt: number; // 与哪个落点帧共振
|
|
50
|
+
};
|
|
51
|
+
const ORBS: Orb[] = [
|
|
52
|
+
// 邻近卡 B —— 线1落点(f42)同帧涨亮
|
|
53
|
+
{ size: 720, peak: 0.26, bx: 1500, by: 330, p1: 104, p2: 138, ax1: 130, ax2: 95, ay1: 120, ay2: 92, seed: 1, surgeAt: 42 },
|
|
54
|
+
// 邻近卡 C —— 线2落点(f76)同帧涨亮
|
|
55
|
+
{ size: 640, peak: 0.2, bx: 900, by: 830, p1: 122, p2: 94, ax1: 125, ax2: 88, ay1: 128, ay2: 90, seed: 2, surgeAt: 76 },
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
const orbPos = (o: Orb, t: number) => {
|
|
59
|
+
const f1 = h(o.seed * 7 + 1) * TAU;
|
|
60
|
+
const f2 = h(o.seed * 7 + 2) * TAU;
|
|
61
|
+
const f3 = h(o.seed * 7 + 3) * TAU;
|
|
62
|
+
const f4 = h(o.seed * 7 + 4) * TAU;
|
|
63
|
+
const x = o.bx + o.ax1 * Math.sin((TAU * t) / o.p1 + f1) + o.ax2 * Math.sin((TAU * t) / o.p2 + f2);
|
|
64
|
+
const y = o.by + o.ay1 * Math.sin((TAU * t) / o.p2 + f3) + o.ay2 * Math.sin((TAU * t) / o.p1 + f4);
|
|
65
|
+
return { x, y };
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
// 涨亮一拍:起升 5f out-cubic,消散 15f 线性 → 落点帧 +20f 内结束
|
|
69
|
+
const surge = (frame: number, at: number) => {
|
|
70
|
+
if (frame < at || frame > at + 20) return 0;
|
|
71
|
+
return frame <= at + 5
|
|
72
|
+
? interpolate(frame, [at, at + 5], [0, 1], {
|
|
73
|
+
easing: Easing.out(Easing.cubic),
|
|
74
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
75
|
+
})
|
|
76
|
+
: interpolate(frame, [at + 5, at + 20], [1, 0], {
|
|
77
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// ===== 发光飞线:亮头领跑 + 渐隐尾,到达后整线线性消散并摘罩 =====
|
|
82
|
+
const Flyline: React.FC<{
|
|
83
|
+
frame: number;
|
|
84
|
+
start: number; // 生长起始帧
|
|
85
|
+
p0: Pt; p1: Pt; p2: Pt; p3: Pt;
|
|
86
|
+
}> = ({ frame, start, p0, p1, p2, p3 }) => {
|
|
87
|
+
const DUR = 24; // 生长
|
|
88
|
+
const HOLD = 4; // 到达后停一拍
|
|
89
|
+
const FADE = 14; // 消散(线性,帧时间解耦)
|
|
90
|
+
if (frame < start || frame >= start + DUR + HOLD + FADE) return null; // 条件挂载=摘罩
|
|
91
|
+
|
|
92
|
+
const e = interpolate(frame, [start, start + DUR], [0, 1], {
|
|
93
|
+
easing: Easing.out(Easing.cubic),
|
|
94
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
95
|
+
});
|
|
96
|
+
const growing = frame < start + DUR;
|
|
97
|
+
const fade = interpolate(frame, [start + DUR + HOLD, start + DUR + HOLD + FADE], [1, 0], {
|
|
98
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
const pts: Pt[] = [];
|
|
102
|
+
const nDrawn = Math.max(2, Math.ceil(e * N) + 1);
|
|
103
|
+
for (let i = 0; i < nDrawn; i++) {
|
|
104
|
+
const t = Math.min(i / N, e);
|
|
105
|
+
pts.push(bez(p0, p1, p2, p3, t));
|
|
106
|
+
}
|
|
107
|
+
const head = bez(p0, p1, p2, p3, e);
|
|
108
|
+
pts[pts.length - 1] = head;
|
|
109
|
+
|
|
110
|
+
const poly = pts.map((p) => `${p.x.toFixed(1)},${p.y.toFixed(1)}`).join(' ');
|
|
111
|
+
|
|
112
|
+
// 亮头暗尾:段 opacity 随离头距离衰减(渐隐尾)
|
|
113
|
+
const segs = [];
|
|
114
|
+
for (let i = 0; i < pts.length - 1; i++) {
|
|
115
|
+
const tSeg = Math.min(i / N, e) / Math.max(e, 0.001); // 0 尾 → 1 头
|
|
116
|
+
const grad = 0.12 + 0.88 * tSeg * tSeg;
|
|
117
|
+
segs.push(
|
|
118
|
+
<line
|
|
119
|
+
key={i}
|
|
120
|
+
x1={pts[i].x} y1={pts[i].y} x2={pts[i + 1].x} y2={pts[i + 1].y}
|
|
121
|
+
stroke="#f4f4f0" strokeWidth={5} strokeLinecap="round"
|
|
122
|
+
strokeOpacity={grad * fade}
|
|
123
|
+
/>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return (
|
|
128
|
+
<g>
|
|
129
|
+
{/* 宽幅低透明白 = 辉光衬底(暗底上可见) */}
|
|
130
|
+
<polyline
|
|
131
|
+
points={poly} fill="none" stroke="#e8e8e4"
|
|
132
|
+
strokeWidth={14} strokeLinecap="round" strokeLinejoin="round"
|
|
133
|
+
strokeOpacity={0.18 * fade}
|
|
134
|
+
/>
|
|
135
|
+
{segs}
|
|
136
|
+
{/* 亮点头领跑:仅生长期挂载 */}
|
|
137
|
+
{growing && (
|
|
138
|
+
<g>
|
|
139
|
+
<circle cx={head.x} cy={head.y} r={34} fill="url(#orbHeadHalo)" />
|
|
140
|
+
<circle cx={head.x} cy={head.y} r={8} fill="#ffffff" />
|
|
141
|
+
</g>
|
|
142
|
+
)}
|
|
143
|
+
</g>
|
|
144
|
+
);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// ===== 深色描边卡:半暗 → 落点帧亮起 + 描边亮白脉冲 =====
|
|
148
|
+
const DarkCard: React.FC<{
|
|
149
|
+
frame: number;
|
|
150
|
+
litAt: number; // 亮起帧(Infinity = 一直半暗;A 用 8 表示开场自亮)
|
|
151
|
+
x: number; y: number; seed: number;
|
|
152
|
+
}> = ({ frame, litAt, x, y, seed }) => {
|
|
153
|
+
const lit = interpolate(frame, [litAt, litAt + 8], [0, 1], {
|
|
154
|
+
easing: Easing.out(Easing.cubic),
|
|
155
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
156
|
+
});
|
|
157
|
+
const op = 0.55 + 0.45 * lit;
|
|
158
|
+
// 描边亮白脉冲:起升 6f out-cubic → 消散 16f 线性,残余 0.3 常量
|
|
159
|
+
const pulse =
|
|
160
|
+
frame < litAt
|
|
161
|
+
? 0
|
|
162
|
+
: frame <= litAt + 6
|
|
163
|
+
? interpolate(frame, [litAt, litAt + 6], [0, 1], {
|
|
164
|
+
easing: Easing.out(Easing.cubic),
|
|
165
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
166
|
+
})
|
|
167
|
+
: interpolate(frame, [litAt + 6, litAt + 22], [1, 0.3], {
|
|
168
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
169
|
+
});
|
|
170
|
+
const borderCol = `rgba(${Math.round(90 + 165 * pulse)},${Math.round(90 + 165 * pulse)},${Math.round(88 + 164 * pulse)},1)`;
|
|
171
|
+
const glow = pulse > 0 ? `0 0 ${24 * pulse}px ${6 * pulse}px rgba(255,255,255,${(0.3 * pulse).toFixed(3)})` : 'none';
|
|
172
|
+
const titleW = 45 + ((seed * 37) % 40);
|
|
173
|
+
return (
|
|
174
|
+
<div
|
|
175
|
+
style={{
|
|
176
|
+
position: 'absolute', left: x, top: y, width: CARD_W, height: CARD_H,
|
|
177
|
+
boxSizing: 'border-box', background: '#262624',
|
|
178
|
+
border: `1.5px solid ${borderCol}`, borderRadius: 14,
|
|
179
|
+
boxShadow: glow, opacity: op,
|
|
180
|
+
padding: 24, display: 'flex', flexDirection: 'column', gap: 12,
|
|
181
|
+
}}
|
|
182
|
+
>
|
|
183
|
+
<div style={{ height: 15, width: `${titleW}%`, background: '#4a4a48', borderRadius: 8 }} />
|
|
184
|
+
<div style={{ height: 10, width: '80%', background: '#383836', borderRadius: 5 }} />
|
|
185
|
+
<div style={{ height: 10, width: '62%', background: '#383836', borderRadius: 5 }} />
|
|
186
|
+
<div style={{ marginTop: 'auto', display: 'flex', gap: 9, alignItems: 'center' }}>
|
|
187
|
+
<div style={{ width: 24, height: 24, borderRadius: 12, background: '#4a4a48' }} />
|
|
188
|
+
<div style={{ height: 10, width: 78, background: '#383836', borderRadius: 5 }} />
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export const OrbFlylineRelay: React.FC = () => {
|
|
195
|
+
const frame = useCurrentFrame();
|
|
196
|
+
|
|
197
|
+
// 光斑有效时间:0–95f 匀速漂移,95–120f out-sine 减速收敛,f≥120 恒定 → 末 35f 真静止
|
|
198
|
+
const t =
|
|
199
|
+
frame <= 95
|
|
200
|
+
? frame
|
|
201
|
+
: 95 +
|
|
202
|
+
interpolate(frame, [95, 120], [0, 15], {
|
|
203
|
+
easing: Easing.out(Easing.sin),
|
|
204
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
// 光斑淡入 0–18f
|
|
208
|
+
const fadeIn = interpolate(frame, [0, 18], [0, 1], {
|
|
209
|
+
easing: Easing.out(Easing.cubic),
|
|
210
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
// 时间轴:卡A f8 自亮(发起) → 线1 f18–42 A→B → f42 卡B亮+光斑1涨 →
|
|
214
|
+
// 线2 f52–76 B→C → f76 卡C亮+光斑2涨 → 全部动画 f98 前结束,光斑 f120 冻结
|
|
215
|
+
const cA = center(CARDS.A);
|
|
216
|
+
const cB = center(CARDS.B);
|
|
217
|
+
const cC = center(CARDS.C);
|
|
218
|
+
const L1 = { p0: cA, p1: { x: 820, y: 90 }, p2: { x: 1300, y: 180 }, p3: cB };
|
|
219
|
+
const L2 = { p0: cB, p1: { x: 1620, y: 820 }, p2: { x: 1240, y: 1000 }, p3: cC };
|
|
220
|
+
|
|
221
|
+
return (
|
|
222
|
+
<AbsoluteFill style={{ background: '#1d1d1b', overflow: 'hidden' }}>
|
|
223
|
+
{/* 氛围层:两团大 blur 光斑,落点帧同帧涨亮(组合共振) */}
|
|
224
|
+
{ORBS.map((o, i) => {
|
|
225
|
+
const pos = orbPos(o, t);
|
|
226
|
+
const s = surge(frame, o.surgeAt);
|
|
227
|
+
const a = Math.min(0.85, o.peak * (1 + 1.6 * s));
|
|
228
|
+
return (
|
|
229
|
+
<div
|
|
230
|
+
key={i}
|
|
231
|
+
style={{
|
|
232
|
+
position: 'absolute',
|
|
233
|
+
left: pos.x - o.size / 2,
|
|
234
|
+
top: pos.y - o.size / 2,
|
|
235
|
+
width: o.size,
|
|
236
|
+
height: o.size,
|
|
237
|
+
borderRadius: '50%',
|
|
238
|
+
background: `radial-gradient(circle, rgba(234,234,230,${a.toFixed(3)}) 0%, rgba(234,234,230,${(a * 0.5).toFixed(3)}) 42%, rgba(234,234,230,0) 70%)`,
|
|
239
|
+
filter: 'blur(100px)',
|
|
240
|
+
opacity: fadeIn,
|
|
241
|
+
}}
|
|
242
|
+
/>
|
|
243
|
+
);
|
|
244
|
+
})}
|
|
245
|
+
|
|
246
|
+
{/* 三张深色描边卡:A 开场自亮发起,B/C 随落点亮起 */}
|
|
247
|
+
<DarkCard frame={frame} litAt={8} x={CARDS.A.x} y={CARDS.A.y} seed={1} />
|
|
248
|
+
<DarkCard frame={frame} litAt={42} x={CARDS.B.x} y={CARDS.B.y} seed={2} />
|
|
249
|
+
<DarkCard frame={frame} litAt={76} x={CARDS.C.x} y={CARDS.C.y} seed={3} />
|
|
250
|
+
|
|
251
|
+
{/* 飞线接力层 */}
|
|
252
|
+
<svg
|
|
253
|
+
width={1920} height={1080} viewBox="0 0 1920 1080"
|
|
254
|
+
style={{ position: 'absolute', top: 0, left: 0, pointerEvents: 'none' }}
|
|
255
|
+
>
|
|
256
|
+
<defs>
|
|
257
|
+
<radialGradient id="orbHeadHalo">
|
|
258
|
+
<stop offset="0%" stopColor="rgba(255,255,255,0.55)" />
|
|
259
|
+
<stop offset="55%" stopColor="rgba(255,255,255,0.22)" />
|
|
260
|
+
<stop offset="100%" stopColor="rgba(255,255,255,0)" />
|
|
261
|
+
</radialGradient>
|
|
262
|
+
</defs>
|
|
263
|
+
<Flyline frame={frame} start={18} {...L1} />
|
|
264
|
+
<Flyline frame={frame} start={52} {...L2} />
|
|
265
|
+
</svg>
|
|
266
|
+
</AbsoluteFill>
|
|
267
|
+
);
|
|
268
|
+
};
|