hyper-animator-codex 0.7.1 → 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.
Files changed (318) hide show
  1. package/README.md +51 -3
  2. package/bin/hyper-animator-codex.mjs +1 -1
  3. package/lib/minimax-config.mjs +3 -3
  4. package/package.json +1 -1
  5. package/skills/hyper-animator-codex/SKILL.md +58 -20
  6. package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
  7. package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +214 -0
  8. package/skills/hyper-animator-codex/contracts/workflow-policy.json +85 -0
  9. package/skills/hyper-animator-codex/references/HyperFrames-AI-Generation-Patterns-codex.md +788 -0
  10. package/skills/hyper-animator-codex/references/beat-sync-workflow.md +7 -0
  11. package/skills/hyper-animator-codex/references/examples/shot-plan-dual-catalog.json +69 -0
  12. package/skills/hyper-animator-codex/references/hyperframes-agent-pseudocode.ts +1 -1
  13. package/skills/hyper-animator-codex/references/hyperframes-catalog-map.json +97 -230
  14. package/skills/hyper-animator-codex/references/hyperframes-intent-workflow.md +23 -7
  15. package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
  16. package/skills/hyper-animator-codex/references/narration-audio-workflow.md +31 -1
  17. package/skills/hyper-animator-codex/references/shotcraft/LICENSE +202 -0
  18. package/skills/hyper-animator-codex/references/shotcraft/cards/ai-stream-response/README.md +46 -0
  19. package/skills/hyper-animator-codex/references/shotcraft/cards/autolayout-gap-dial/README.md +53 -0
  20. package/skills/hyper-animator-codex/references/shotcraft/cards/beat-cut-moves/README.md +54 -0
  21. package/skills/hyper-animator-codex/references/shotcraft/cards/beat-step-list-theme-cycle/README.md +59 -0
  22. package/skills/hyper-animator-codex/references/shotcraft/cards/before-after-slider-scrub/README.md +47 -0
  23. package/skills/hyper-animator-codex/references/shotcraft/cards/bottom-push-stack-wipe/README.md +58 -0
  24. package/skills/hyper-animator-codex/references/shotcraft/cards/brand-frame-snap/README.md +51 -0
  25. package/skills/hyper-animator-codex/references/shotcraft/cards/brand-ink-open/README.md +35 -0
  26. package/skills/hyper-animator-codex/references/shotcraft/cards/bubble-swarm-takeover/README.md +62 -0
  27. package/skills/hyper-animator-codex/references/shotcraft/cards/canvas-materialize-moves/README.md +55 -0
  28. package/skills/hyper-animator-codex/references/shotcraft/cards/card-flip-reveal/README.md +50 -0
  29. package/skills/hyper-animator-codex/references/shotcraft/cards/card-flock-tumble/README.md +54 -0
  30. package/skills/hyper-animator-codex/references/shotcraft/cards/cel-flash-stomp/README.md +54 -0
  31. package/skills/hyper-animator-codex/references/shotcraft/cards/chart-live-moves/README.md +51 -0
  32. package/skills/hyper-animator-codex/references/shotcraft/cards/circle-match-iris/README.md +53 -0
  33. package/skills/hyper-animator-codex/references/shotcraft/cards/cloner-depth-echo/README.md +38 -0
  34. package/skills/hyper-animator-codex/references/shotcraft/cards/collab-cursor-moves/README.md +48 -0
  35. package/skills/hyper-animator-codex/references/shotcraft/cards/color-block-step-wipe/README.md +54 -0
  36. package/skills/hyper-animator-codex/references/shotcraft/cards/command-palette-summon/README.md +45 -0
  37. package/skills/hyper-animator-codex/references/shotcraft/cards/crane-rise-reveal/README.md +47 -0
  38. package/skills/hyper-animator-codex/references/shotcraft/cards/crash-zoom-punch/README.md +38 -0
  39. package/skills/hyper-animator-codex/references/shotcraft/cards/dataviz-landscape-open/README.md +54 -0
  40. package/skills/hyper-animator-codex/references/shotcraft/cards/deck-deal-flyin/README.md +45 -0
  41. package/skills/hyper-animator-codex/references/shotcraft/cards/depth-layer-moves/README.md +40 -0
  42. package/skills/hyper-animator-codex/references/shotcraft/cards/document-typewriter-reveal/README.md +40 -0
  43. package/skills/hyper-animator-codex/references/shotcraft/cards/draw-svg-trace/README.md +50 -0
  44. package/skills/hyper-animator-codex/references/shotcraft/cards/edit-hook-moves/README.md +38 -0
  45. package/skills/hyper-animator-codex/references/shotcraft/cards/element-body-moves/README.md +49 -0
  46. package/skills/hyper-animator-codex/references/shotcraft/cards/fui-hud-moves/README.md +44 -0
  47. package/skills/hyper-animator-codex/references/shotcraft/cards/gauge-readout-moves/README.md +45 -0
  48. package/skills/hyper-animator-codex/references/shotcraft/cards/glow-flyline-moves/README.md +51 -0
  49. package/skills/hyper-animator-codex/references/shotcraft/cards/gradient-word-sweep/README.md +49 -0
  50. package/skills/hyper-animator-codex/references/shotcraft/cards/graze-face-tour/README.md +56 -0
  51. package/skills/hyper-animator-codex/references/shotcraft/cards/hashtag-to-pill-materialize/README.md +57 -0
  52. package/skills/hyper-animator-codex/references/shotcraft/cards/hires-rasterize-3d-text/README.md +34 -0
  53. package/skills/hyper-animator-codex/references/shotcraft/cards/icon-field-colorize/README.md +53 -0
  54. package/skills/hyper-animator-codex/references/shotcraft/cards/icon-performance-moves/README.md +46 -0
  55. package/skills/hyper-animator-codex/references/shotcraft/cards/impact-feedback/README.md +50 -0
  56. package/skills/hyper-animator-codex/references/shotcraft/cards/input-trigger-moves/README.md +49 -0
  57. package/skills/hyper-animator-codex/references/shotcraft/cards/integration-hub-map/README.md +54 -0
  58. package/skills/hyper-animator-codex/references/shotcraft/cards/letterspace-materialize/README.md +52 -0
  59. package/skills/hyper-animator-codex/references/shotcraft/cards/light-play-moves/README.md +49 -0
  60. package/skills/hyper-animator-codex/references/shotcraft/cards/line-boil/README.md +52 -0
  61. package/skills/hyper-animator-codex/references/shotcraft/cards/line-carry-transition/README.md +52 -0
  62. package/skills/hyper-animator-codex/references/shotcraft/cards/list-stack-press/README.md +43 -0
  63. package/skills/hyper-animator-codex/references/shotcraft/cards/magician-card-flourish/README.md +63 -0
  64. package/skills/hyper-animator-codex/references/shotcraft/cards/marker-underline-title/README.md +48 -0
  65. package/skills/hyper-animator-codex/references/shotcraft/cards/montage-rhythm-moves/README.md +55 -0
  66. package/skills/hyper-animator-codex/references/shotcraft/cards/morph-from-primitive/README.md +51 -0
  67. package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-forerun/README.md +50 -0
  68. package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-orbit-drop/README.md +50 -0
  69. package/skills/hyper-animator-codex/references/shotcraft/cards/neon-triple-marquee/README.md +55 -0
  70. package/skills/hyper-animator-codex/references/shotcraft/cards/odometer-digit-roll/README.md +54 -0
  71. package/skills/hyper-animator-codex/references/shotcraft/cards/outro-group-photo-launch/README.md +39 -0
  72. package/skills/hyper-animator-codex/references/shotcraft/cards/overhead-camera-moves/README.md +50 -0
  73. package/skills/hyper-animator-codex/references/shotcraft/cards/page-turn-transitions/README.md +48 -0
  74. package/skills/hyper-animator-codex/references/shotcraft/cards/page-waterfall-wall/README.md +52 -0
  75. package/skills/hyper-animator-codex/references/shotcraft/cards/panel-grid-moves/README.md +52 -0
  76. package/skills/hyper-animator-codex/references/shotcraft/cards/paper-craft-moves/README.md +46 -0
  77. package/skills/hyper-animator-codex/references/shotcraft/cards/paper-plane-messenger/README.md +62 -0
  78. package/skills/hyper-animator-codex/references/shotcraft/cards/paper-title-card/README.md +36 -0
  79. package/skills/hyper-animator-codex/references/shotcraft/cards/particle-celebrate-hits/README.md +42 -0
  80. package/skills/hyper-animator-codex/references/shotcraft/cards/particle-sand-fill/README.md +39 -0
  81. package/skills/hyper-animator-codex/references/shotcraft/cards/pill-slot-cycle/README.md +57 -0
  82. package/skills/hyper-animator-codex/references/shotcraft/cards/print-texture-transitions/README.md +40 -0
  83. package/skills/hyper-animator-codex/references/shotcraft/cards/rhythm-interrupt-moves/README.md +44 -0
  84. package/skills/hyper-animator-codex/references/shotcraft/cards/riso-print-hits/README.md +54 -0
  85. package/skills/hyper-animator-codex/references/shotcraft/cards/row-embed/README.md +36 -0
  86. package/skills/hyper-animator-codex/references/shotcraft/cards/runway-ground-skim/README.md +52 -0
  87. package/skills/hyper-animator-codex/references/shotcraft/cards/sakuga-timing-shift/README.md +50 -0
  88. package/skills/hyper-animator-codex/references/shotcraft/cards/scene-locked-title/README.md +43 -0
  89. package/skills/hyper-animator-codex/references/shotcraft/cards/scroll-brake-moves/README.md +45 -0
  90. package/skills/hyper-animator-codex/references/shotcraft/cards/segmented-thumb-hero/README.md +57 -0
  91. package/skills/hyper-animator-codex/references/shotcraft/cards/shot-transitions/README.md +60 -0
  92. package/skills/hyper-animator-codex/references/shotcraft/cards/skeleton-reveal/README.md +54 -0
  93. package/skills/hyper-animator-codex/references/shotcraft/cards/slam-entrance-moves/README.md +53 -0
  94. package/skills/hyper-animator-codex/references/shotcraft/cards/smear-multiples/README.md +49 -0
  95. package/skills/hyper-animator-codex/references/shotcraft/cards/space-camera-moves/README.md +53 -0
  96. package/skills/hyper-animator-codex/references/shotcraft/cards/spectrum-morph-ui/README.md +50 -0
  97. package/skills/hyper-animator-codex/references/shotcraft/cards/speed-ramp-freeze/README.md +42 -0
  98. package/skills/hyper-animator-codex/references/shotcraft/cards/split-flap-title/README.md +52 -0
  99. package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-hero-card/README.md +39 -0
  100. package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-sweep-moves/README.md +51 -0
  101. package/skills/hyper-animator-codex/references/shotcraft/cards/steep-tilt-glide/README.md +53 -0
  102. package/skills/hyper-animator-codex/references/shotcraft/cards/stroke-segment-build/README.md +43 -0
  103. package/skills/hyper-animator-codex/references/shotcraft/cards/tear-streak-transitions/README.md +43 -0
  104. package/skills/hyper-animator-codex/references/shotcraft/cards/tension-camera-moves/README.md +55 -0
  105. package/skills/hyper-animator-codex/references/shotcraft/cards/text-as-mask/README.md +50 -0
  106. package/skills/hyper-animator-codex/references/shotcraft/cards/text-column-converge/README.md +55 -0
  107. package/skills/hyper-animator-codex/references/shotcraft/cards/theme-switch-moves/README.md +44 -0
  108. package/skills/hyper-animator-codex/references/shotcraft/cards/timeline-travel/README.md +43 -0
  109. package/skills/hyper-animator-codex/references/shotcraft/cards/title-demote-to-label/README.md +58 -0
  110. package/skills/hyper-animator-codex/references/shotcraft/cards/trailer-grammar-moves/README.md +51 -0
  111. package/skills/hyper-animator-codex/references/shotcraft/cards/transition-hidden-cut/README.md +52 -0
  112. package/skills/hyper-animator-codex/references/shotcraft/cards/transition-travel/README.md +48 -0
  113. package/skills/hyper-animator-codex/references/shotcraft/cards/type-and-filter/README.md +37 -0
  114. package/skills/hyper-animator-codex/references/shotcraft/cards/type-assembly-moves/README.md +50 -0
  115. package/skills/hyper-animator-codex/references/shotcraft/cards/type-entrance-moves/README.md +46 -0
  116. package/skills/hyper-animator-codex/references/shotcraft/cards/type-rhythm-sync/README.md +47 -0
  117. package/skills/hyper-animator-codex/references/shotcraft/cards/typewriter-moves/README.md +50 -0
  118. package/skills/hyper-animator-codex/references/shotcraft/cards/ui-strip-away-outro/README.md +63 -0
  119. package/skills/hyper-animator-codex/references/shotcraft/cards/ui-to-brand-morph/README.md +52 -0
  120. package/skills/hyper-animator-codex/references/shotcraft/cards/voice-waveform-live/README.md +52 -0
  121. package/skills/hyper-animator-codex/references/shotcraft/cards/wall-reveal-moves/README.md +53 -0
  122. package/skills/hyper-animator-codex/references/shotcraft/cards/wipe-transitions/README.md +47 -0
  123. package/skills/hyper-animator-codex/references/shotcraft/cards/word-relay-filmstrip/README.md +50 -0
  124. package/skills/hyper-animator-codex/references/shotcraft/catalog.json +3946 -0
  125. package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
  126. package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
  127. package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
  128. package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
  129. package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
  130. package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
  131. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
  132. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
  133. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
  134. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
  135. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
  136. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
  137. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
  138. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
  139. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
  140. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
  141. package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
  142. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
  143. package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
  144. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
  145. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
  146. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
  147. package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
  148. package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
  149. package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
  150. package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
  151. package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
  152. package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
  153. package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
  154. package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
  155. package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
  156. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
  157. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
  158. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
  159. package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
  160. package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
  161. package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
  162. package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
  163. package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
  164. package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
  165. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
  166. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
  167. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
  168. package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
  169. package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
  170. package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
  171. package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
  172. package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
  173. package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
  174. package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
  175. package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
  176. package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
  177. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
  178. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
  179. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
  180. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
  181. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
  182. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
  183. package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
  184. package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
  185. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
  186. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
  187. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
  188. package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
  189. package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
  190. package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
  191. package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
  192. package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
  193. package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
  194. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
  195. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
  196. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
  197. package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
  198. package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
  199. package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
  200. package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
  201. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
  202. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
  203. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
  204. package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
  205. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
  206. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
  207. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
  208. package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
  209. package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
  210. package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
  211. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
  212. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
  213. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
  214. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
  215. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
  216. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
  217. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
  218. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
  219. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
  220. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
  221. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
  222. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
  223. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
  224. package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
  225. package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
  226. package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
  227. package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
  228. package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
  229. package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
  230. package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
  231. package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
  232. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
  233. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
  234. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
  235. package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
  236. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
  237. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
  238. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
  239. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
  240. package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
  241. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
  242. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
  243. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
  244. package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
  245. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
  246. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
  247. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
  248. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
  249. package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
  250. package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
  251. package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
  252. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
  253. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
  254. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
  255. package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
  256. package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
  257. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
  258. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
  259. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
  260. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
  261. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
  262. package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
  263. package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
  264. package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
  265. package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
  266. package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
  267. package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
  268. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
  269. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
  270. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
  271. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
  272. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
  273. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
  274. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
  275. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
  276. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
  277. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
  278. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
  279. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
  280. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
  281. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
  282. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
  283. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
  284. package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
  285. package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
  286. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
  287. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
  288. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
  289. package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
  290. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
  291. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
  292. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
  293. package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
  294. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
  295. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
  296. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
  297. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
  298. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
  299. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
  300. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
  301. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
  302. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
  303. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
  304. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
  305. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
  306. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
  307. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
  308. package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
  309. package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
  310. package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
  311. package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
  312. package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
  313. package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
  314. package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
  315. package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
  316. package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +193 -0
  317. package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
  318. package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
@@ -0,0 +1,147 @@
1
+ import React from 'react';
2
+ import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
3
+ import { FakeDashboard, Card, TitleBlock, G } from '../_fixtures/Fixtures';
4
+
5
+ // hit-counter 连招计数:三张功能卡接连砸入槽位,每次命中 = 全局顿帧 2f
6
+ // + 落点伤害数字上浮渐隐 + 右上角 ×N 计数跳字(脉冲/倾斜逐次加码)。
7
+ // 组合:hitstop + damage-number-pop + combo-counter。
8
+
9
+ // —— 时间结构(动画时间 t 空间)——
10
+ // 0–19 建立 hold;卡 i 于 t = HIT-10 → HIT ease-in 砸落;HIT = 30/60/90;
11
+ // 每命中后真实帧多出 2f 顿帧,末卡效果收完后静止 hold 到 150。
12
+ const HITS_T = [30, 60, 90]; // 命中时刻(重映射后的动画时间)
13
+ const STOP = 2; // 每次顿帧帧数
14
+ // 真实命中帧 = 动画命中时刻 + 前面累计的顿帧
15
+ const HITS_REAL = HITS_T.map((h, i) => h + i * STOP);
16
+
17
+ const SLOT_W = 420;
18
+ const SLOT_H = 300;
19
+ const SLOT_Y = 430;
20
+ const SLOT_XS = [390, 890, 1390].map((cx) => cx - SLOT_W / 2);
21
+
22
+ const DMG_TEXT = ['+1.2k', '+2.4k', '+4.8k'];
23
+ const PULSE = [1.3, 1.45, 1.6]; // 计数器脉冲峰值,逐次递增
24
+ const TILT = [-2, -4, -6]; // 计数器倾斜,逐次递增并保持
25
+
26
+ export const HitCounter: React.FC = () => {
27
+ const frame = useCurrentFrame();
28
+
29
+ // —— 全局帧 remap:每个真实命中帧起冻结 2f(全画面顿帧)——
30
+ let t = frame;
31
+ for (const h of HITS_REAL) {
32
+ t -= Math.min(Math.max(frame - h, 0), STOP);
33
+ }
34
+
35
+ const count = HITS_T.filter((h) => t >= h).length; // 当前连击数
36
+
37
+ // —— 计数器(右上角 ×N)——
38
+ let counterScale = 1;
39
+ let counterRot = 0;
40
+ let counterSize = 84;
41
+ if (count > 0) {
42
+ const i = count - 1;
43
+ const since = t - HITS_T[i];
44
+ counterScale = 1 + (PULSE[i] - 1) * Math.exp(-since / 2.4); // 脉冲后指数回落
45
+ counterRot = TILT[i]; // 倾斜保持,越打越斜
46
+ counterSize = 84 + i * 14; // 字号逐次加大
47
+ }
48
+
49
+ return (
50
+ <AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
51
+ {/* 背景 dashboard 压暗,突出前景连招 */}
52
+ <div style={{ filter: 'saturate(0.9)', opacity: 0.4 }}>
53
+ <FakeDashboard variant="B" />
54
+ </div>
55
+
56
+ {/* 三个槽位虚线框(全程可见,建立期先立预期) */}
57
+ {SLOT_XS.map((x, i) => (
58
+ <div
59
+ key={`slot-${i}`}
60
+ style={{
61
+ position: 'absolute', left: x, top: SLOT_Y,
62
+ width: SLOT_W, height: SLOT_H,
63
+ border: `3px dashed ${G.bar}`, borderRadius: 16,
64
+ boxSizing: 'border-box',
65
+ }}
66
+ />
67
+ ))}
68
+
69
+ {/* 三张功能卡:各隔 30f,命中前 10f ease-in 加速砸落 */}
70
+ {HITS_T.map((hit, i) => {
71
+ const y = interpolate(t, [hit - 10, hit], [-520, SLOT_Y], {
72
+ extrapolateLeft: 'clamp',
73
+ extrapolateRight: 'clamp',
74
+ easing: Easing.in(Easing.quad),
75
+ });
76
+ if (t < hit - 10) return null;
77
+ // 触地 3f 内轻微压扁,衬托命中
78
+ const since = t - hit;
79
+ const squash = since >= 0 ? 1 - 0.06 * Math.exp(-since / 1.5) : 1;
80
+ return (
81
+ <div
82
+ key={`card-${i}`}
83
+ style={{
84
+ position: 'absolute', left: SLOT_XS[i], top: y,
85
+ transform: `scaleY(${squash})`, transformOrigin: 'bottom center',
86
+ }}
87
+ >
88
+ <Card w={SLOT_W} h={SLOT_H} seed={i + 2} style={{ boxShadow: '0 16px 48px rgba(0,0,0,0.25)' }} />
89
+ </div>
90
+ );
91
+ })}
92
+
93
+ {/* 伤害数字:命中帧起 scale 1.4→1、上浮 60px、12f 渐隐 */}
94
+ {HITS_T.map((hit, i) => {
95
+ const s = t - hit;
96
+ if (s < 0 || s > 14) return null;
97
+ const scale = interpolate(s, [0, 5], [1.4, 1], {
98
+ extrapolateRight: 'clamp',
99
+ easing: Easing.out(Easing.quad),
100
+ });
101
+ const rise = interpolate(s, [0, 12], [0, -60], {
102
+ extrapolateRight: 'clamp',
103
+ easing: Easing.out(Easing.quad),
104
+ });
105
+ const opacity = interpolate(s, [0, 4, 12], [1, 1, 0], {
106
+ extrapolateRight: 'clamp',
107
+ });
108
+ return (
109
+ <div
110
+ key={`dmg-${i}`}
111
+ style={{
112
+ position: 'absolute',
113
+ left: SLOT_XS[i] + SLOT_W / 2, top: SLOT_Y - 40 + rise,
114
+ transform: `translateX(-50%) scale(${scale})`,
115
+ transformOrigin: 'center bottom',
116
+ opacity,
117
+ }}
118
+ >
119
+ <TitleBlock text={DMG_TEXT[i]} size={72} />
120
+ </div>
121
+ );
122
+ })}
123
+
124
+ {/* 右上角连击计数器:跳字 + 递增脉冲 + 递增倾斜 */}
125
+ <div
126
+ style={{
127
+ position: 'absolute', right: 70, top: 50,
128
+ transform: `scale(${counterScale}) rotate(${counterRot}deg)`,
129
+ transformOrigin: 'center center',
130
+ opacity: count === 0 ? 0.25 : 1,
131
+ }}
132
+ >
133
+ <div
134
+ style={{
135
+ background: G.ink, color: '#fff', borderRadius: 18,
136
+ padding: '10px 34px 16px',
137
+ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800,
138
+ fontSize: counterSize, letterSpacing: -2, lineHeight: 1.1,
139
+ boxShadow: '0 8px 28px rgba(0,0,0,0.3)',
140
+ }}
141
+ >
142
+ {`×${count}`}
143
+ </div>
144
+ </div>
145
+ </AbsoluteFill>
146
+ );
147
+ };
@@ -0,0 +1,154 @@
1
+ // cursor-performance-punch-in —— 光标拟人表演 + 点击跟随推近
2
+ // 放大光标沿贝塞尔曲线从左下滑入(末端甩腕过冲)→ 悬停按钮微亮响应 →
3
+ // 点击:按钮下陷 + 涟漪扩散 + 整画布以点击点为原点推近 1→1.4 → 停 → 缓退回。
4
+ // 推近"有去有回"区别 crash-zoom。收尾真静止 ≥35f。全灰阶。
5
+ import React from 'react';
6
+ import { useCurrentFrame, interpolate, Easing } from 'remotion';
7
+ import { FakeDashboard, G } from '../_fixtures/Fixtures';
8
+
9
+ // 时间轴(30fps,共 150f)
10
+ const T = {
11
+ cursorInEnd: 30, // 0–30f 光标贝塞尔滑入(f24 过冲峰值,f24–30 拐回落定)
12
+ click: 40, // 30–40f 悬停响应 10f;f40 点击
13
+ punchEnd: 52, // 40–52f 推近 1→1.4(out-cubic)
14
+ holdEnd: 72, // 52–72f 停 20f
15
+ backEnd: 90, // 72–90f 缓退回 1.0(inOut-cubic)
16
+ total: 150, // 90–150f 真静止 60f
17
+ };
18
+
19
+ // 按钮与点击点(画布坐标)
20
+ const BTN = { x: 1560, y: 130, w: 200, h: 64 };
21
+ const CLICK = { x: 1665, y: 168 };
22
+
23
+ // 光标贝塞尔路径:左下滑入,先沉后扬,曲线有性格
24
+ const P0 = { x: 180, y: 1000 };
25
+ const P1 = { x: 820, y: 1075 };
26
+ const P2 = { x: 1795, y: 560 };
27
+ const P3 = { x: CLICK.x, y: CLICK.y };
28
+ const bez = (t: number) => {
29
+ const u = 1 - t;
30
+ return {
31
+ x: u * u * u * P0.x + 3 * u * u * t * P1.x + 3 * u * t * t * P2.x + t * t * t * P3.x,
32
+ y: u * u * u * P0.y + 3 * u * u * t * P1.y + 3 * u * t * t * P2.y + t * t * t * P3.y,
33
+ };
34
+ };
35
+
36
+ const Cursor: React.FC<{ x: number; y: number }> = ({ x, y }) => (
37
+ <svg
38
+ width={48}
39
+ height={48}
40
+ viewBox="0 0 28 28"
41
+ style={{
42
+ position: 'absolute',
43
+ left: x - 3.4,
44
+ top: y - 1.7,
45
+ filter: 'drop-shadow(0 4px 7px rgba(0,0,0,0.4))',
46
+ }}
47
+ >
48
+ <path
49
+ d="M2 1 L2 23 L8 17.5 L11.5 25 L15.5 23.2 L12 15.8 L20 15 Z"
50
+ fill="#ffffff"
51
+ stroke="#2f2f2f"
52
+ strokeWidth={1.6}
53
+ strokeLinejoin="round"
54
+ />
55
+ </svg>
56
+ );
57
+
58
+ export const CursorPerformancePunchIn: React.FC = () => {
59
+ const frame = useCurrentFrame();
60
+
61
+ // —— 光标:路径参数 t,f24 过冲到 1.05(沿切线甩过按钮),f24–30 拐回 1.0 ——
62
+ const t =
63
+ frame < 24
64
+ ? interpolate(frame, [0, 24], [0, 1.05], {
65
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
66
+ easing: Easing.out(Easing.cubic),
67
+ })
68
+ : interpolate(frame, [24, T.cursorInEnd], [1.05, 1], {
69
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
70
+ easing: Easing.inOut(Easing.quad),
71
+ });
72
+ const cur = bez(t);
73
+ // 点击帧光标随按钮微沉 3px(f40–42 下,f42–46 回)
74
+ const dip = interpolate(frame, [T.click, T.click + 2, T.click + 6], [0, 3, 0], {
75
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
76
+ });
77
+
78
+ // —— 悬停响应:f30–34 按钮提亮(深底提亮可见)+ 微放大 ——
79
+ const lift = interpolate(frame, [T.cursorInEnd, T.cursorInEnd + 4], [0, 1], {
80
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
81
+ });
82
+ const c = Math.round(47 + 38 * lift); // #2f2f2f → #555553 近似
83
+ const hoverScale = 1 + 0.05 * lift;
84
+
85
+ // —— 点击下陷:f40–42 scale→0.94,f42–46 弹回 ——
86
+ const press = interpolate(frame, [T.click, T.click + 2, T.click + 6], [1, 0.94, 1], {
87
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
88
+ });
89
+
90
+ // —— 推近有去有回:40–52f 1→1.4(out-cubic);72–90f 1.4→1(inOut)——
91
+ const zoom =
92
+ frame < T.holdEnd
93
+ ? interpolate(frame, [T.click, T.punchEnd], [1, 1.4], {
94
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
95
+ easing: Easing.out(Easing.cubic),
96
+ })
97
+ : interpolate(frame, [T.holdEnd, T.backEnd], [1.4, 1], {
98
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
99
+ easing: Easing.inOut(Easing.cubic),
100
+ });
101
+
102
+ // —— 涟漪:扩散 out-cubic(40–62f,直径 60→380),消散线性(40–66f)帧时间解耦 ——
103
+ const rippleAlive = frame >= T.click && frame < T.click + 26;
104
+ const rippleD = interpolate(frame, [T.click, T.click + 22], [60, 380], {
105
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
106
+ easing: Easing.out(Easing.cubic),
107
+ });
108
+ const rippleOp = interpolate(frame, [T.click, T.click + 26], [0.9, 0], {
109
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
110
+ });
111
+ const rippleBw = interpolate(frame, [T.click, T.click + 22], [9, 3], {
112
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
113
+ });
114
+
115
+ return (
116
+ <div style={{ width: 1920, height: 1080, background: G.bg, overflow: 'hidden', position: 'relative' }}>
117
+ {/* 整画布以点击点为原点推近 */}
118
+ <div style={{
119
+ position: 'absolute', inset: 0,
120
+ transform: `scale(${zoom})`,
121
+ transformOrigin: `${CLICK.x}px ${CLICK.y}px`,
122
+ }}>
123
+ <FakeDashboard variant="A" />
124
+
125
+ {/* 右上自绘 Deploy 按钮(叠在页面上) */}
126
+ <div style={{
127
+ position: 'absolute', left: BTN.x, top: BTN.y, width: BTN.w, height: BTN.h,
128
+ borderRadius: 14, background: `rgb(${c},${c},${c - 2})`,
129
+ boxShadow: '0 6px 18px rgba(0,0,0,0.28)',
130
+ display: 'flex', alignItems: 'center', justifyContent: 'center',
131
+ transform: `scale(${hoverScale * press})`,
132
+ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 700,
133
+ fontSize: 27, color: '#ffffff', letterSpacing: 0.5,
134
+ }}>
135
+ Deploy
136
+ </div>
137
+
138
+ {/* 涟漪圆环:条件挂载,f66 后摘除 */}
139
+ {rippleAlive && (
140
+ <div style={{
141
+ position: 'absolute',
142
+ left: CLICK.x - rippleD / 2, top: CLICK.y - rippleD / 2,
143
+ width: rippleD, height: rippleD, borderRadius: '50%',
144
+ border: `${rippleBw}px solid ${G.ink}`,
145
+ opacity: rippleOp,
146
+ }} />
147
+ )}
148
+
149
+ {/* 放大光标(随画布一起被推近,钉在按钮上) */}
150
+ <Cursor x={cur.x} y={cur.y + dip} />
151
+ </div>
152
+ </div>
153
+ );
154
+ };
@@ -0,0 +1,217 @@
1
+ // keycap-smash-cut|键帽引信+猛切句号(keycap-press-trigger × smash-cut)
2
+ // 0–25f 浅底中央 3D 键帽(⌘⏎)悬浮呼吸 → 25–28f 砰按下(3f 下沉 14px +
3
+ // 底座 12→3px 压扁 + 键面变暗)+ 底部亮环(扩散 out-cubic / 消散线性解耦)
4
+ // → 按下即引爆轰鸣段 28–58f:5 张卡 + 1 面板从四面八方高速飞入冲镜
5
+ // (ease-in 全程加速 + scale 1.5→3 冲脸 + 速度门控 blur),背景整体
6
+ // ease-in 推近 1→1.3 + 滚动 1.5°——切点前一刻动势最猛 → 58f 一帧猛切:
7
+ // FakeDashboard variant="A" 整齐静止全景,键帽已缩成小元素稳稳嵌在
8
+ // 顶栏角落(引信呼应),死寂 82f(>50f)。总 140f。
9
+ import React from 'react';
10
+ import { useCurrentFrame, interpolate, Easing } from 'remotion';
11
+ import { G, Card, FakeDashboard } from '../_fixtures/Fixtures';
12
+
13
+ const T = {
14
+ press: 25, // 按下起始(呼吸周期 25f,此帧位移恰好归零)
15
+ pressEnd: 28, // 3f 压到底,同帧引爆轰鸣段
16
+ ringGrowEnd: 46, // 亮环扩散结束(out-cubic)
17
+ ringFadeEnd: 52, // 亮环消散结束(线性,帧时间与扩散解耦)
18
+ cut: 58, // 猛切帧:>=58 全静止
19
+ total: 140, // 死寂 82f
20
+ };
21
+
22
+ // —— 键帽(复用 keycap 规格:多层 box-shadow 造厚度)——
23
+ const Keycap: React.FC<{ size: number; thick: number; bright: number; label?: string }> = ({
24
+ size, thick, bright, label = '⌘⏎',
25
+ }) => (
26
+ <div style={{
27
+ width: size, height: size, borderRadius: size * 0.117,
28
+ background: 'linear-gradient(165deg, #ffffff 0%, #f2f2f0 45%, #e2e2e0 100%)',
29
+ border: `2px solid ${G.border}`, boxSizing: 'border-box',
30
+ boxShadow: [
31
+ `0 ${thick}px 0 #6e6e6c`,
32
+ `0 ${thick + 4}px 2px #565654`,
33
+ `0 ${thick * 2 + 10}px ${thick * 2 + 14}px rgba(0,0,0,0.28)`,
34
+ 'inset 0 3px 0 rgba(255,255,255,0.9)',
35
+ 'inset 0 -6px 10px rgba(0,0,0,0.07)',
36
+ ].join(', '),
37
+ filter: `brightness(${bright})`,
38
+ display: 'flex', alignItems: 'center', justifyContent: 'center',
39
+ }}>
40
+ <div style={{
41
+ fontSize: size * 0.3, fontWeight: 700, color: G.ink,
42
+ fontFamily: 'Helvetica, Arial, sans-serif',
43
+ }}>
44
+ {label}
45
+ </div>
46
+ </div>
47
+ );
48
+
49
+ // —— 轰鸣段飞入物:5 张卡 + 1 面板,四面八方冲镜 ——
50
+ type Fly = {
51
+ from: [number, number];
52
+ to: [number, number];
53
+ rot: [number, number];
54
+ seed: number;
55
+ w: number;
56
+ h: number;
57
+ panel?: boolean;
58
+ };
59
+
60
+ const FLIES: Fly[] = [
61
+ { from: [-1400, -140], to: [1400, 80], rot: [-6, 5], seed: 1, w: 440, h: 290 },
62
+ { from: [1400, 200], to: [-1400, -120], rot: [7, -4], seed: 2, w: 400, h: 260 },
63
+ { from: [-260, -900], to: [180, 900], rot: [-3, 8], seed: 3, w: 460, h: 300 },
64
+ { from: [-1300, 820], to: [1300, -760], rot: [5, -7], seed: 4, w: 420, h: 280 },
65
+ { from: [1350, -800], to: [-1350, 840], rot: [-8, 4], seed: 5, w: 480, h: 310 },
66
+ // 第 6 位:面板(更大更重,斜穿)
67
+ { from: [1500, 700], to: [-1500, -600], rot: [4, -6], seed: 6, w: 700, h: 430, panel: true },
68
+ ];
69
+
70
+ // 卡 i 的第 k 轮:start = 28 + i*3 + k*16,时长 15 / 11(第二轮更快=整体加速)。
71
+ // i=3 k=1 的 53–64f 在切点 58f 被硬切截断——绝不减速迎接切点。
72
+ const passWindow = (i: number, k: number): [number, number] => {
73
+ const start = T.pressEnd + i * 3 + k * 16;
74
+ const dur = k === 0 ? 15 : 11;
75
+ return [start, start + dur];
76
+ };
77
+
78
+ // 假面板飞入物:命令面板式灰阶块
79
+ const FlyPanel: React.FC<{ w: number; h: number }> = ({ w, h }) => (
80
+ <div style={{
81
+ width: w, height: h, background: G.card, border: `2px solid ${G.border}`,
82
+ borderRadius: 20, padding: 26, boxSizing: 'border-box',
83
+ display: 'flex', flexDirection: 'column', gap: 16,
84
+ boxShadow: '0 16px 44px rgba(0,0,0,0.28)',
85
+ }}>
86
+ <div style={{ height: 52, border: `2px solid ${G.line}`, borderRadius: 12, background: G.panel }} />
87
+ {Array.from({ length: 3 }).map((_, i) => (
88
+ <div key={i} style={{ flex: 1, display: 'flex', alignItems: 'center', gap: 16 }}>
89
+ <div style={{ width: 28, height: 28, borderRadius: 8, background: G.mid }} />
90
+ <div style={{ height: 12, width: `${50 + ((i * 27) % 30)}%`, background: G.line, borderRadius: 6 }} />
91
+ </div>
92
+ ))}
93
+ </div>
94
+ );
95
+
96
+ const FlyItem: React.FC<{ fly: Fly; i: number; frame: number }> = ({ fly, i, frame }) => {
97
+ let active: [number, number] | null = null;
98
+ for (let k = 0; k < 2; k++) {
99
+ const [s, e] = passWindow(i, k);
100
+ if (frame >= s && frame < e) { active = [s, e]; break; }
101
+ }
102
+ if (!active) return null;
103
+ const [s, e] = active;
104
+ // ease-in:全程加速,越近终点越快
105
+ const p = interpolate(frame, [s, e], [0, 1], {
106
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
107
+ easing: Easing.in(Easing.quad),
108
+ });
109
+ const x = fly.from[0] + (fly.to[0] - fly.from[0]) * p;
110
+ const y = fly.from[1] + (fly.to[1] - fly.from[1]) * p;
111
+ const rot = fly.rot[0] + (fly.rot[1] - fly.rot[0]) * p;
112
+ const scale = 1.5 + 1.5 * p; // 冲脸
113
+ const blur = 1 + 4 * p; // 速度门控方向糊感(ease-in 下速度 ∝ p)
114
+ return (
115
+ <div style={{
116
+ position: 'absolute', left: 960 - fly.w / 2, top: 540 - fly.h / 2,
117
+ transform: `translate(${x}px, ${y}px) rotate(${rot}deg) scale(${scale})`,
118
+ filter: `blur(${blur}px)`,
119
+ }}>
120
+ {fly.panel
121
+ ? <FlyPanel w={fly.w} h={fly.h} />
122
+ : <Card w={fly.w} h={fly.h} seed={fly.seed}
123
+ style={{ boxShadow: '0 12px 40px rgba(0,0,0,0.25)' }} />}
124
+ </div>
125
+ );
126
+ };
127
+
128
+ export const KeycapSmashCut: React.FC = () => {
129
+ const frame = useCurrentFrame();
130
+
131
+ // —— 死寂段:58f 起 variant A 整齐静止全景 + 键帽小元素嵌顶栏角落,
132
+ // 无任何随帧变化的属性 ——
133
+ if (frame >= T.cut) {
134
+ return (
135
+ <div style={{ width: 1920, height: 1080, position: 'relative' }}>
136
+ <FakeDashboard variant="A" />
137
+ {/* 键帽句号:稳稳嵌在顶栏(标题条右侧空档),呼应引信 */}
138
+ <div style={{ position: 'absolute', left: 464, top: 12 }}>
139
+ <Keycap size={44} thick={4} bright={1} />
140
+ </div>
141
+ </div>
142
+ );
143
+ }
144
+
145
+ // —— 引信段键帽运动 ——
146
+ // 呼吸:0–25f 一个完整正弦周期(±5px),f25 位移归零接按下
147
+ const breathY = frame < T.press ? -5 * Math.sin((2 * Math.PI * frame) / T.press) : 0;
148
+ // 按下:3f 下沉 14px,之后保持压死
149
+ const pressY = interpolate(frame, [T.press, T.pressEnd], [0, 14], {
150
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
151
+ });
152
+ // 底座厚度 12→3px 压扁(灵魂),轰鸣段保持压扁
153
+ const thick = interpolate(frame, [T.press, T.pressEnd], [12, 3], {
154
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
155
+ });
156
+ const bright = interpolate(frame, [T.press, T.pressEnd], [1, 0.9], {
157
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
158
+ });
159
+
160
+ // —— 亮环:扩散 out-cubic 90→640px,消散线性,帧时间解耦,摘罩=条件挂载 ——
161
+ const ringOn = frame >= T.press && frame < T.ringFadeEnd;
162
+ const ringD = interpolate(frame, [T.press, T.ringGrowEnd], [90, 640], {
163
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
164
+ easing: Easing.out(Easing.cubic),
165
+ });
166
+ const ringA = interpolate(frame, [T.press, T.ringFadeEnd], [0.9, 0], {
167
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
168
+ });
169
+ const ringBorder = interpolate(frame, [T.press, T.ringGrowEnd], [14, 3], {
170
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
171
+ easing: Easing.out(Easing.cubic),
172
+ });
173
+
174
+ // —— 轰鸣段背景动势:整体 ease-in 推近 + 滚动,切点前仍在加速 ——
175
+ const bgScale = interpolate(frame, [T.pressEnd, T.cut], [1, 1.3], {
176
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
177
+ easing: Easing.in(Easing.quad),
178
+ });
179
+ const bgRot = interpolate(frame, [T.pressEnd, T.cut], [0, 1.5], {
180
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
181
+ easing: Easing.in(Easing.quad),
182
+ });
183
+
184
+ return (
185
+ <div style={{
186
+ width: 1920, height: 1080, background: G.bg,
187
+ position: 'relative', overflow: 'hidden',
188
+ }}>
189
+ {/* 背景层(浅底 + 键帽 + 亮环),轰鸣段整体加速推近 */}
190
+ <div style={{
191
+ width: 1920, height: 1080, position: 'absolute',
192
+ transform: `scale(${bgScale}) rotate(${bgRot}deg)`,
193
+ transformOrigin: '50% 50%', background: G.bg,
194
+ }}>
195
+ {ringOn && (
196
+ <div style={{
197
+ position: 'absolute', left: 960 - ringD / 2, top: 540 + 120 + pressY - ringD / 2,
198
+ width: ringD, height: ringD, borderRadius: '50%',
199
+ border: `${ringBorder}px solid #4a4a48`, opacity: ringA,
200
+ boxSizing: 'border-box',
201
+ }} />
202
+ )}
203
+ <div style={{
204
+ position: 'absolute', left: 960 - 120, top: 540 - 120,
205
+ transform: `translateY(${breathY + pressY}px)`,
206
+ }}>
207
+ <Keycap size={240} thick={thick} bright={bright} />
208
+ </div>
209
+ </div>
210
+
211
+ {/* 轰鸣段飞入物 */}
212
+ {frame >= T.pressEnd && FLIES.map((fly, i) => (
213
+ <FlyItem key={i} fly={fly} i={i} frame={frame} />
214
+ ))}
215
+ </div>
216
+ );
217
+ };