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,99 @@
1
+ // before-after-slider-scrub —— 前后对比拉杆
2
+ // FakeDashboard 两版叠放:before = 低对比灰蒙版("处理前"),after = 正常清晰版。
3
+ // 竖分割杆带圆手柄:从左端 8% 快甩到 70%(overshoot 至 76% 回弹),
4
+ // 再慢速回扫到 40% 停住。杆经过处 after 揭出(clip-path inset 跟随杆 x)。
5
+ // 先快甩后慢扫速度对比是节奏关键。f=110 后全静止(40f)。
6
+ import React from 'react';
7
+ import { useCurrentFrame, interpolate, Easing } from 'remotion';
8
+ import { G, FakeDashboard } from '../_fixtures/Fixtures';
9
+
10
+ const CL = { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' } as const;
11
+
12
+ // 时间轴(杆位置以画面宽度百分比表示)
13
+ const T0 = 14; // 前 14f 初始静置,杆停在 8%
14
+ const FLING = 26; // 快甩:14→26(12f 冲到 76%)
15
+ const BOUNCE = 38; // 回弹:26→38 落到 70%
16
+ const HOLD = 56; // 停顿看清
17
+ const SCRUB = 104; // 慢扫:56→104(48f 回到 40%)——速度约为快甩的 1/5
18
+
19
+ const posAt = (f: number): number => {
20
+ if (f < FLING)
21
+ return interpolate(f, [T0, FLING], [8, 76], { easing: Easing.out(Easing.cubic), ...CL });
22
+ if (f < BOUNCE)
23
+ return interpolate(f, [FLING, BOUNCE], [76, 70], { easing: Easing.inOut(Easing.cubic), ...CL });
24
+ if (f < HOLD) return 70;
25
+ return interpolate(f, [HOLD, SCRUB], [70, 40], { easing: Easing.inOut(Easing.quad), ...CL });
26
+ };
27
+
28
+ export const BeforeAfterSliderScrub: React.FC = () => {
29
+ const frame = useCurrentFrame();
30
+ const p = posAt(frame); // 杆位置 %
31
+ const x = (p / 100) * 1920;
32
+
33
+ // 手柄挤压:速度差分驱动(快甩期手柄微拉伸,静止归 1)
34
+ const v = Math.abs(posAt(frame) - posAt(frame - 1)); // %/frame
35
+ const squish = 1 + Math.min(v / 8, 1) * 0.18;
36
+
37
+ return (
38
+ <div style={{ width: 1920, height: 1080, position: 'relative', overflow: 'hidden', background: G.bg }}>
39
+ {/* before:低对比灰蒙版模拟"处理前" */}
40
+ <div style={{ position: 'absolute', inset: 0, filter: 'contrast(0.55) brightness(1.06) grayscale(1)' }}>
41
+ <FakeDashboard variant="A" />
42
+ </div>
43
+ <div style={{ position: 'absolute', inset: 0, background: 'rgba(160,160,158,0.35)' }} />
44
+
45
+ {/* after:正常清晰版,杆左侧揭出 */}
46
+ <div style={{ position: 'absolute', inset: 0, clipPath: `inset(0 ${1920 - x}px 0 0)` }}>
47
+ <FakeDashboard variant="A" />
48
+ </div>
49
+
50
+ {/* 分割杆 + 圆手柄 */}
51
+ <div
52
+ style={{
53
+ position: 'absolute',
54
+ left: x - 3,
55
+ top: 0,
56
+ width: 6,
57
+ height: 1080,
58
+ background: '#ffffff',
59
+ boxShadow: '0 0 14px rgba(0,0,0,0.35)',
60
+ }}
61
+ />
62
+ <div
63
+ style={{
64
+ position: 'absolute',
65
+ left: x - 44,
66
+ top: 540 - 44,
67
+ width: 88,
68
+ height: 88,
69
+ borderRadius: 44,
70
+ background: '#ffffff',
71
+ border: `3px solid ${G.border}`,
72
+ boxShadow: '0 6px 24px rgba(0,0,0,0.3)',
73
+ transform: `scaleX(${squish})`,
74
+ display: 'flex',
75
+ alignItems: 'center',
76
+ justifyContent: 'center',
77
+ gap: 10,
78
+ boxSizing: 'border-box',
79
+ }}
80
+ >
81
+ {/* 左右箭头示意(灰阶三角) */}
82
+ <div style={{ width: 0, height: 0, borderTop: '10px solid transparent', borderBottom: '10px solid transparent', borderRight: `14px solid ${G.mid}` }} />
83
+ <div style={{ width: 0, height: 0, borderTop: '10px solid transparent', borderBottom: '10px solid transparent', borderLeft: `14px solid ${G.mid}` }} />
84
+ </div>
85
+
86
+ {/* 角标:BEFORE / AFTER 灰块标签 */}
87
+ <div style={{ position: 'absolute', left: 260, top: 100, padding: '10px 22px', borderRadius: 10, background: 'rgba(47,47,47,0.85)', display: 'flex', gap: 8 }}>
88
+ {Array.from({ length: 5 }).map((_, i) => (
89
+ <div key={i} style={{ width: 16, height: 20, borderRadius: 4, background: '#e6e6e4' }} />
90
+ ))}
91
+ </div>
92
+ <div style={{ position: 'absolute', right: 60, top: 100, padding: '10px 22px', borderRadius: 10, background: 'rgba(240,240,238,0.9)', border: `2px solid ${G.border}`, display: 'flex', gap: 8 }}>
93
+ {Array.from({ length: 5 }).map((_, i) => (
94
+ <div key={i} style={{ width: 16, height: 20, borderRadius: 4, background: G.ink }} />
95
+ ))}
96
+ </div>
97
+ </div>
98
+ );
99
+ };
@@ -0,0 +1,79 @@
1
+ // bottom-push-stack-wipe —— slack-promo 22–27s
2
+ // 换章手法:新场景连底色整屏从底边向上推入,把旧场景顶出画外,
3
+ // 连推三章(三种饱和底色,每章中央钉一张灰阶窗口卡随底色走)。
4
+ // 推入用重 ease-out(快进慢停)。
5
+ import React from 'react';
6
+ import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
7
+ import { Card, G } from '../_fixtures/Fixtures';
8
+
9
+ const H = 1080;
10
+
11
+ // 章节定义:底色 + 卡片种子。第 0 章是起始灰阶场景。
12
+ const CHAPTERS = [
13
+ { color: G.bg, label: 0 },
14
+ { color: '#2bac76', label: 1 }, // 绿
15
+ { color: '#36c5f0', label: 2 }, // 蓝
16
+ { color: '#e01e5a', label: 3 }, // 粉红
17
+ ];
18
+
19
+ // 每章推入的起始帧;约 32 帧完成一次推入,随后 hold
20
+ const PUSH_STARTS = [18, 55, 92];
21
+ const PUSH_DUR = 30;
22
+
23
+ const heavyEaseOut = Easing.bezier(0.12, 0.9, 0.2, 1); // 快进慢停
24
+
25
+ const ChapterScene: React.FC<{ chapter: number }> = ({ chapter }) => {
26
+ const c = CHAPTERS[chapter];
27
+ return (
28
+ <AbsoluteFill style={{ background: c.color, justifyContent: 'center', alignItems: 'center' }}>
29
+ {/* 底色上的淡装饰条,让"底色也在动"更可读 */}
30
+ {chapter > 0 && (
31
+ <>
32
+ <div style={{ position: 'absolute', top: 90, left: 120, width: 500, height: 26, borderRadius: 13, background: 'rgba(255,255,255,0.28)' }} />
33
+ <div style={{ position: 'absolute', bottom: 110, right: 140, width: 340, height: 26, borderRadius: 13, background: 'rgba(255,255,255,0.22)' }} />
34
+ <div style={{ position: 'absolute', top: 160, right: 220, width: 90, height: 90, borderRadius: '50%', background: 'rgba(255,255,255,0.18)' }} />
35
+ </>
36
+ )}
37
+ {/* 中央钉住的灰阶窗口卡 */}
38
+ <div style={{ boxShadow: '0 30px 80px rgba(0,0,0,0.28)', borderRadius: 18 }}>
39
+ <div style={{ width: 860, background: '#f2f2f0', borderRadius: '18px 18px 0 0', height: 52, display: 'flex', alignItems: 'center', gap: 10, padding: '0 22px', boxSizing: 'border-box', border: `2px solid ${G.border}`, borderBottom: 'none' }}>
40
+ {['#e0605a', '#e8b93e', '#67bb5a'].map((dot, i) => (
41
+ <div key={i} style={{ width: 16, height: 16, borderRadius: 8, background: dot }} />
42
+ ))}
43
+ <div style={{ marginLeft: 18, height: 14, width: 220, background: G.bar, borderRadius: 7 }} />
44
+ </div>
45
+ <Card w={860} h={430} seed={chapter + 2} style={{ borderRadius: '0 0 18px 18px', padding: 34 }} />
46
+ </div>
47
+ </AbsoluteFill>
48
+ );
49
+ };
50
+
51
+ export const BottomPushStackWipe: React.FC = () => {
52
+ const frame = useCurrentFrame();
53
+ // 每章的推入进度
54
+ const progress = PUSH_STARTS.map((s) =>
55
+ interpolate(frame, [s, s + PUSH_DUR], [0, 1], {
56
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: heavyEaseOut,
57
+ })
58
+ );
59
+ return (
60
+ <AbsoluteFill style={{ overflow: 'hidden', background: G.bg }}>
61
+ {CHAPTERS.map((_, i) => {
62
+ // 第 i 章的位移 = 自己被推入的进度 + 被后续章顶出的进度
63
+ const pushedIn = i === 0 ? 1 : progress[i - 1]; // 自己进入
64
+ const pushedOut = i < CHAPTERS.length - 1 ? progress[i] : 0; // 被下一章顶出
65
+ const y = (1 - pushedIn) * H - pushedOut * H;
66
+ if (y <= -H || y >= H) return null;
67
+ return (
68
+ <AbsoluteFill key={i} style={{ transform: `translateY(${y}px)` }}>
69
+ <ChapterScene chapter={i} />
70
+ {/* 推入时上缘接缝阴影,强化"顶出"的物理感 */}
71
+ {i > 0 && (
72
+ <div style={{ position: 'absolute', top: -40, left: 0, right: 0, height: 40, background: 'linear-gradient(to top, rgba(0,0,0,0.30), rgba(0,0,0,0))', opacity: pushedIn < 1 ? 1 : 0 }} />
73
+ )}
74
+ </AbsoluteFill>
75
+ );
76
+ })}
77
+ </AbsoluteFill>
78
+ );
79
+ };
@@ -0,0 +1,110 @@
1
+ // brand-frame-snap —— figma-devmode 0:28–0:32 (brand-frame-snap) + 0:43–0:47 (frame-color-flip)
2
+ // 一圈粗品牌色画框先于内容出现包住全屏 → 灰阶"录屏窗口"在框内落位 →
3
+ // 停一拍 → 画框整圈蓝→绿同帧硬翻色,窗口内容同帧换布局。
4
+ // 一个 borderColor 完成章节导航/状态提示/品牌露出。
5
+ import React from 'react';
6
+ import { useCurrentFrame, spring, interpolate } from 'remotion';
7
+ import { G, FakeDashboard } from '../_fixtures/Fixtures';
8
+
9
+ const FPS = 30;
10
+ const FIGMA_BLUE = '#3E7BFA';
11
+ const DEV_GREEN = '#1BC47D';
12
+ const FLIP_FRAME = 78; // 同帧硬翻色时刻
13
+
14
+ const clamp01 = (t: number) => Math.min(1, Math.max(0, t));
15
+ const easeOut = (t: number) => 1 - Math.pow(1 - t, 3);
16
+
17
+ export const BrandFrameSnap: React.FC = () => {
18
+ const f = useCurrentFrame();
19
+ const mode: 'design' | 'dev' = f < FLIP_FRAME ? 'design' : 'dev';
20
+ const frameColor = mode === 'design' ? FIGMA_BLUE : DEV_GREEN;
21
+
22
+ // 1) 画框先登场:厚度从 0 长到 44px(ease-out,前 18 帧)
23
+ const frameGrow = easeOut(clamp01(f / 18));
24
+ const frameW = 44 * frameGrow;
25
+
26
+ // 2) 窗口在框内落位:从下方 + 略缩,弹簧弹入(帧 14 起)
27
+ const drop = spring({ frame: f - 14, fps: FPS, config: { damping: 16, stiffness: 110, mass: 1 } });
28
+ const winY = interpolate(drop, [0, 1], [560, 0]);
29
+ const winS = interpolate(drop, [0, 1], [0.82, 1]);
30
+ const winO = interpolate(drop, [0, 0.25], [0, 1], { extrapolateRight: 'clamp' });
31
+
32
+ // 3) 翻色瞬间给 2 帧白闪脉冲 + 画框轻微厚度弹跳,强化"换挡"
33
+ const sinceFlip = f - FLIP_FRAME;
34
+ const flash = sinceFlip >= 0 && sinceFlip < 3 ? 0.55 - sinceFlip * 0.18 : 0;
35
+ const snapPulse = sinceFlip >= 0 ? Math.exp(-sinceFlip * 0.22) * Math.cos(sinceFlip * 0.9) * 10 : 0;
36
+
37
+ // 模式标签
38
+ const label = mode === 'design' ? 'DESIGN' : 'DEV MODE';
39
+
40
+ return (
41
+ <div style={{ width: 1920, height: 1080, background: '#161618', position: 'relative', overflow: 'hidden' }}>
42
+ {/* 框内内容区 */}
43
+ <div style={{
44
+ position: 'absolute', inset: frameW + snapPulse, background: G.bg,
45
+ overflow: 'hidden', borderRadius: 8,
46
+ }}>
47
+ {/* 录屏窗口(带标题栏的窗口卡)落位 */}
48
+ <div style={{
49
+ position: 'absolute', left: '50%', top: '50%',
50
+ width: 1560, height: 830,
51
+ transform: `translate(-50%, -50%) translateY(${winY}px) scale(${winS})`,
52
+ opacity: winO,
53
+ borderRadius: 16, overflow: 'hidden',
54
+ boxShadow: '0 24px 70px rgba(0,0,0,0.28)',
55
+ border: `2px solid ${G.border}`, background: G.panel,
56
+ }}>
57
+ {/* 窗口标题栏 */}
58
+ <div style={{
59
+ height: 52, background: '#e9e9e7', borderBottom: `2px solid ${G.line}`,
60
+ display: 'flex', alignItems: 'center', gap: 10, padding: '0 22px', boxSizing: 'border-box',
61
+ }}>
62
+ {[0, 1, 2].map((i) => (
63
+ <div key={i} style={{ width: 16, height: 16, borderRadius: 8, background: G.bar }} />
64
+ ))}
65
+ <div style={{ marginLeft: 18, height: 12, width: 260, background: G.line, borderRadius: 6 }} />
66
+ {/* 模式徽标:随画框同帧换色换字 */}
67
+ <div style={{
68
+ marginLeft: 'auto', background: frameColor, color: '#fff',
69
+ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800, fontSize: 15,
70
+ letterSpacing: 1.5, padding: '6px 16px', borderRadius: 8,
71
+ opacity: winO,
72
+ }}>
73
+ {label}
74
+ </div>
75
+ </div>
76
+ {/* 窗口内容:翻色同帧换布局 A→B */}
77
+ <div style={{ transform: 'scale(0.81)', transformOrigin: '0 0', width: 1920, height: 1080 }}>
78
+ <FakeDashboard variant={mode === 'design' ? 'A' : 'B'} />
79
+ </div>
80
+ </div>
81
+ </div>
82
+
83
+ {/* 品牌色画框:用 4 条实体边而非 border,翻色是纯 background 同帧硬切 */}
84
+ {([
85
+ { left: 0, top: 0, right: 0, height: frameW + snapPulse },
86
+ { left: 0, bottom: 0, right: 0, height: frameW + snapPulse },
87
+ { left: 0, top: 0, bottom: 0, width: frameW + snapPulse },
88
+ { right: 0, top: 0, bottom: 0, width: frameW + snapPulse },
89
+ ] as React.CSSProperties[]).map((pos, i) => (
90
+ <div key={i} style={{ position: 'absolute', background: frameColor, ...pos }} />
91
+ ))}
92
+
93
+ {/* 画框上的模式角标(左上,嵌在框带里) */}
94
+ <div style={{
95
+ position: 'absolute', left: 70, top: 0, height: frameW + snapPulse,
96
+ display: 'flex', alignItems: 'center',
97
+ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800,
98
+ fontSize: 22, letterSpacing: 3, color: '#ffffff',
99
+ opacity: frameGrow,
100
+ }}>
101
+ {label}
102
+ </div>
103
+
104
+ {/* 翻色白闪脉冲 */}
105
+ {flash > 0 && (
106
+ <div style={{ position: 'absolute', inset: 0, background: '#ffffff', opacity: flash }} />
107
+ )}
108
+ </div>
109
+ );
110
+ };
@@ -0,0 +1,189 @@
1
+ // bubble-swarm-takeover —— loom-ai 9–12s
2
+ // 无剪切转场:珠光气泡群从画外飘入、越来越大遮满整屏,页面同时被"洗白",
3
+ // 遮蔽峰值处藏场景切换,气泡散开后已是新场景。混入 i18n 文字胶囊变体元素。
4
+ import React from 'react';
5
+ import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
6
+ import { FakeDashboard } from '../_fixtures/Fixtures';
7
+
8
+ const mulberry32 = (a: number) => () => {
9
+ let t = (a += 0x6d2b79f5);
10
+ t = Math.imul(t ^ (t >>> 15), t | 1);
11
+ t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
12
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
13
+ };
14
+
15
+ const PEAK = 75; // 遮蔽峰值帧(藏切点)
16
+ const W = 1920;
17
+ const H = 1080;
18
+ const CX = W / 2;
19
+ const CY = H / 2;
20
+
21
+ // 珠光色相微差(粉/紫/蓝/青)
22
+ const TINTS = [
23
+ ['rgba(226,208,255,0.55)', 'rgba(255,200,235,0.45)'],
24
+ ['rgba(190,225,255,0.55)', 'rgba(215,200,255,0.45)'],
25
+ ['rgba(255,215,235,0.5)', 'rgba(200,235,255,0.45)'],
26
+ ['rgba(205,240,250,0.5)', 'rgba(235,210,255,0.45)'],
27
+ ];
28
+
29
+ type BubbleSpec = {
30
+ startX: number; startY: number; targetX: number; targetY: number;
31
+ r: number; t0: number; blur: number; tint: number;
32
+ wobblePhase: number; wobbleAmp: number; z: number;
33
+ };
34
+
35
+ const makeBubbles = (): BubbleSpec[] => {
36
+ const specs: BubbleSpec[] = [];
37
+ // 34 颗常规气泡(三层景深)
38
+ for (let i = 0; i < 34; i++) {
39
+ const rng = mulberry32(1000 + i * 97);
40
+ const edge = Math.floor(rng() * 4);
41
+ const along = rng();
42
+ let startX = 0, startY = 0;
43
+ if (edge === 0) { startX = along * W; startY = -320; }
44
+ if (edge === 1) { startX = W + 320; startY = along * H; }
45
+ if (edge === 2) { startX = along * W; startY = H + 320; }
46
+ if (edge === 3) { startX = -320; startY = along * H; }
47
+ const layer = i % 3; // 0 远 1 中 2 近
48
+ const r = layer === 0 ? 45 + rng() * 55 : layer === 1 ? 100 + rng() * 90 : 210 + rng() * 150;
49
+ specs.push({
50
+ startX, startY,
51
+ targetX: 140 + rng() * (W - 280),
52
+ targetY: 100 + rng() * (H - 200),
53
+ r,
54
+ t0: 8 + rng() * 42,
55
+ blur: layer === 0 ? 7 : layer === 1 ? 0.5 : 9,
56
+ tint: Math.floor(rng() * TINTS.length),
57
+ wobblePhase: rng() * Math.PI * 2,
58
+ wobbleAmp: 10 + rng() * 22,
59
+ z: layer,
60
+ });
61
+ }
62
+ // 6 颗巨型气泡,峰值时铺满屏(网格落点保证覆盖)
63
+ const grid = [
64
+ [340, 300], [960, 240], [1580, 330],
65
+ [320, 800], [980, 860], [1600, 780],
66
+ ];
67
+ grid.forEach(([gx, gy], i) => {
68
+ const rng = mulberry32(7000 + i * 131);
69
+ const edge = i % 4;
70
+ let startX = 0, startY = 0;
71
+ if (edge === 0) { startX = gx; startY = -600; }
72
+ if (edge === 1) { startX = W + 600; startY = gy; }
73
+ if (edge === 2) { startX = gx; startY = H + 600; }
74
+ if (edge === 3) { startX = -600; startY = gy; }
75
+ specs.push({
76
+ startX, startY, targetX: gx, targetY: gy,
77
+ r: 430 + rng() * 140,
78
+ t0: 22 + rng() * 14,
79
+ blur: 3, tint: i % TINTS.length,
80
+ wobblePhase: rng() * Math.PI * 2, wobbleAmp: 8,
81
+ z: 2,
82
+ });
83
+ });
84
+ return specs;
85
+ };
86
+
87
+ const BUBBLES = makeBubbles();
88
+
89
+ const CAPSULES = [
90
+ { text: 'Hallo!', idx: 5 },
91
+ { text: '¡Hola!', idx: 14 },
92
+ { text: 'Ciao!', idx: 23 },
93
+ ];
94
+
95
+ const Bubble: React.FC<{ spec: BubbleSpec; frame: number }> = ({ spec, frame }) => {
96
+ const pIn = interpolate(frame, [spec.t0, PEAK], [0, 1], {
97
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
98
+ easing: Easing.out(Easing.cubic),
99
+ });
100
+ // 峰值后向外散开(加速离场)
101
+ const disperse = interpolate(frame, [PEAK + 2, 118], [0, 1], {
102
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
103
+ easing: Easing.in(Easing.quad),
104
+ });
105
+ const wob = Math.sin(frame * 0.09 + spec.wobblePhase) * spec.wobbleAmp * pIn;
106
+ let x = spec.startX + (spec.targetX - spec.startX) * pIn + wob;
107
+ let y = spec.startY + (spec.targetY - spec.startY) * pIn + wob * 0.6;
108
+ const dx = spec.targetX - CX, dy = spec.targetY - CY;
109
+ const dl = Math.max(Math.hypot(dx, dy), 60);
110
+ x += (dx / dl) * disperse * 1700;
111
+ y += (dy / dl) * disperse * 1700;
112
+ const scale = interpolate(frame, [spec.t0, PEAK], [0.22, 1], {
113
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
114
+ easing: Easing.out(Easing.quad),
115
+ }) * (1 - disperse * 0.35);
116
+ const opacity =
117
+ interpolate(frame, [spec.t0, spec.t0 + 7], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' }) *
118
+ interpolate(disperse, [0.55, 1], [1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
119
+ if (opacity <= 0.01) return null;
120
+ const [c1, c2] = TINTS[spec.tint];
121
+ const d = spec.r * 2 * scale;
122
+ return (
123
+ <div style={{
124
+ position: 'absolute', left: x - spec.r * scale, top: y - spec.r * scale,
125
+ width: d, height: d, borderRadius: '50%', opacity,
126
+ filter: `blur(${spec.blur}px)`,
127
+ background: `radial-gradient(circle at 34% 28%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.45) 22%, ${c1} 52%, ${c2} 76%, rgba(255,255,255,0.65) 96%)`,
128
+ boxShadow: 'inset 0 0 40px rgba(255,255,255,0.55), 0 0 30px rgba(255,255,255,0.25)',
129
+ }} />
130
+ );
131
+ };
132
+
133
+ export const BubbleSwarmTakeover: React.FC = () => {
134
+ const frame = useCurrentFrame();
135
+ // 页面"洗白":靠近峰值时整体亮度提升
136
+ const whiteout = interpolate(frame, [42, 68, 82, 104], [0, 0.92, 0.92, 0], {
137
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
138
+ easing: Easing.inOut(Easing.quad),
139
+ });
140
+ const breathe = 1 + 0.02 * Math.sin(frame * 0.045);
141
+ return (
142
+ <AbsoluteFill style={{ background: '#ececea', overflow: 'hidden' }}>
143
+ <AbsoluteFill style={{ transform: `scale(${breathe})` }}>
144
+ {frame < PEAK ? <FakeDashboard variant="A" /> : <FakeDashboard variant="B" />}
145
+ </AbsoluteFill>
146
+ {/* 洗白层压在页面之上、气泡之下 */}
147
+ <AbsoluteFill style={{ background: '#ffffff', opacity: whiteout }} />
148
+ {/* 远/中层气泡 */}
149
+ {BUBBLES.filter((b) => b.z < 2).map((b, i) => (
150
+ <Bubble key={i} spec={b} frame={frame} />
151
+ ))}
152
+ {/* i18n 文字胶囊混在中层气泡里漂 */}
153
+ {CAPSULES.map((c, i) => {
154
+ const host = BUBBLES[c.idx];
155
+ const pIn = interpolate(frame, [host.t0 + 4, PEAK], [0, 1], {
156
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic),
157
+ });
158
+ const disperse = interpolate(frame, [PEAK + 2, 116], [0, 1], {
159
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.in(Easing.quad),
160
+ });
161
+ const wob = Math.sin(frame * 0.08 + host.wobblePhase + 1.3) * 18;
162
+ let x = host.startX + (host.targetX - host.startX) * pIn + 60 + wob;
163
+ let y = host.startY + (host.targetY - host.startY) * pIn - host.r * 0.9;
164
+ const dx = host.targetX - CX, dy = host.targetY - CY;
165
+ const dl = Math.max(Math.hypot(dx, dy), 60);
166
+ x += (dx / dl) * disperse * 1700;
167
+ y += (dy / dl) * disperse * 1700;
168
+ const op = pIn * interpolate(disperse, [0.5, 1], [1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
169
+ const sc = 0.5 + 0.5 * pIn;
170
+ return (
171
+ <div key={i} style={{
172
+ position: 'absolute', left: x, top: y, opacity: op,
173
+ transform: `scale(${sc}) rotate(${wob * 0.25}deg)`,
174
+ padding: '18px 40px', borderRadius: 60,
175
+ background: 'linear-gradient(135deg, rgba(255,255,255,0.95), rgba(235,220,255,0.9))',
176
+ border: '2px solid rgba(255,255,255,0.9)',
177
+ boxShadow: '0 8px 32px rgba(150,120,220,0.25)',
178
+ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800,
179
+ fontSize: 46, color: '#5b4a86', whiteSpace: 'nowrap',
180
+ }}>{c.text}</div>
181
+ );
182
+ })}
183
+ {/* 前景大气泡(焦外) */}
184
+ {BUBBLES.filter((b) => b.z === 2).map((b, i) => (
185
+ <Bubble key={i} spec={b} frame={frame} />
186
+ ))}
187
+ </AbsoluteFill>
188
+ );
189
+ };
@@ -0,0 +1,172 @@
1
+ // diagram-cascade-build —— miro-promo 104–116s
2
+ // prompt 行打字 → 图表节点自上而下逐层级联弹出(根→2 子→4 孙),
3
+ // 连线跟随节点生长(SVG path 描线),成树后整体呼吸一拍。
4
+ import React from 'react';
5
+ import { AbsoluteFill, useCurrentFrame, interpolate, spring, useVideoConfig, Easing } from 'remotion';
6
+ import { G } from '../_fixtures/Fixtures';
7
+
8
+ const PROMPT = 'Generate an entity-relationship diagram';
9
+ const TYPE_START = 6;
10
+ const TYPE_CPS = 1.1; // 字符/帧
11
+
12
+ // 树布局(画布坐标,节点中心)
13
+ const NODE_W = 300;
14
+ const NODE_H = 110;
15
+ const NODES = [
16
+ // level 0
17
+ { id: 0, x: 960, y: 330, level: 0, parent: -1 },
18
+ // level 1
19
+ { id: 1, x: 620, y: 570, level: 1, parent: 0 },
20
+ { id: 2, x: 1300, y: 570, level: 1, parent: 0 },
21
+ // level 2
22
+ { id: 3, x: 400, y: 820, level: 2, parent: 1 },
23
+ { id: 4, x: 810, y: 820, level: 2, parent: 1 },
24
+ { id: 5, x: 1110, y: 820, level: 2, parent: 2 },
25
+ { id: 6, x: 1520, y: 820, level: 2, parent: 2 },
26
+ ];
27
+
28
+ const CASCADE_START = 52; // 根节点弹出时刻
29
+ const LEVEL_GAP = 20; // 层间隔
30
+ const SIBLING_STAGGER = 6;
31
+
32
+ const nodeStart = (n: (typeof NODES)[number]) => {
33
+ if (n.level === 0) return CASCADE_START;
34
+ const siblingIdx = NODES.filter((m) => m.level === n.level && m.id < n.id).length;
35
+ return CASCADE_START + n.level * LEVEL_GAP + siblingIdx * SIBLING_STAGGER;
36
+ };
37
+
38
+ // 折角连线 path:父底边中点 → 垂直下探 → 水平 → 垂直进子顶边
39
+ const edgePath = (p: (typeof NODES)[number], c: (typeof NODES)[number]) => {
40
+ const x1 = p.x;
41
+ const y1 = p.y + NODE_H / 2;
42
+ const x2 = c.x;
43
+ const y2 = c.y - NODE_H / 2;
44
+ const my = (y1 + y2) / 2;
45
+ return `M ${x1} ${y1} L ${x1} ${my} L ${x2} ${my} L ${x2} ${y2}`;
46
+ };
47
+
48
+ const edgeLen = (p: (typeof NODES)[number], c: (typeof NODES)[number]) => {
49
+ const y1 = p.y + NODE_H / 2;
50
+ const y2 = c.y - NODE_H / 2;
51
+ return Math.abs(y2 - y1) + Math.abs(c.x - p.x);
52
+ };
53
+
54
+ export const DiagramCascadeBuild: React.FC = () => {
55
+ const frame = useCurrentFrame();
56
+ const { fps } = useVideoConfig();
57
+
58
+ const typed = Math.min(PROMPT.length, Math.max(0, Math.floor((frame - TYPE_START) * TYPE_CPS)));
59
+ const caretOn = Math.floor(frame / 8) % 2 === 0;
60
+ const promptDone = typed >= PROMPT.length;
61
+
62
+ // 成树后整体呼吸一拍
63
+ const lastStart = nodeStart(NODES[NODES.length - 1]);
64
+ const breathe = interpolate(frame, [lastStart + 22, lastStart + 34, lastStart + 50], [1, 1.035, 1], {
65
+ extrapolateLeft: 'clamp',
66
+ extrapolateRight: 'clamp',
67
+ easing: Easing.inOut(Easing.sin),
68
+ });
69
+
70
+ return (
71
+ <AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
72
+ <AbsoluteFill
73
+ style={{
74
+ backgroundImage: `radial-gradient(${G.line} 3px, transparent 3px)`,
75
+ backgroundSize: '52px 52px',
76
+ }}
77
+ />
78
+
79
+ {/* prompt 条 */}
80
+ <div
81
+ style={{
82
+ position: 'absolute',
83
+ left: 460,
84
+ top: 88,
85
+ width: 1000,
86
+ height: 84,
87
+ background: G.card,
88
+ border: `3px solid ${promptDone ? G.ink : G.border}`,
89
+ borderRadius: 42,
90
+ display: 'flex',
91
+ alignItems: 'center',
92
+ padding: '0 36px',
93
+ boxSizing: 'border-box',
94
+ boxShadow: '0 6px 24px rgba(0,0,0,0.08)',
95
+ fontFamily: 'Helvetica, Arial, sans-serif',
96
+ fontSize: 30,
97
+ fontWeight: 600,
98
+ color: G.ink,
99
+ }}
100
+ >
101
+ <div style={{ width: 30, height: 30, borderRadius: 15, background: G.mid, marginRight: 20, flexShrink: 0 }} />
102
+ <span>
103
+ {PROMPT.slice(0, typed)}
104
+ <span style={{ opacity: caretOn ? 1 : 0, fontWeight: 400 }}>|</span>
105
+ </span>
106
+ </div>
107
+
108
+ {/* 树(呼吸缩放以树心为原点) */}
109
+ <div style={{ position: 'absolute', inset: 0, transform: `scale(${breathe})`, transformOrigin: '960px 620px' }}>
110
+ {/* 连线层 */}
111
+ <svg width={1920} height={1080} style={{ position: 'absolute', inset: 0 }}>
112
+ {NODES.filter((n) => n.parent >= 0).map((n) => {
113
+ const p = NODES[n.parent];
114
+ const start = nodeStart(n) - 8; // 线比子节点先长
115
+ const len = edgeLen(p, n);
116
+ const grow = interpolate(frame, [start, start + 16], [0, 1], {
117
+ extrapolateLeft: 'clamp',
118
+ extrapolateRight: 'clamp',
119
+ easing: Easing.out(Easing.cubic),
120
+ });
121
+ if (grow <= 0) return null;
122
+ return (
123
+ <path
124
+ key={n.id}
125
+ d={edgePath(p, n)}
126
+ stroke={G.mid}
127
+ strokeWidth={5}
128
+ fill="none"
129
+ strokeLinejoin="round"
130
+ strokeDasharray={len}
131
+ strokeDashoffset={len * (1 - grow)}
132
+ />
133
+ );
134
+ })}
135
+ </svg>
136
+
137
+ {/* 节点层 */}
138
+ {NODES.map((n) => {
139
+ const start = nodeStart(n);
140
+ const pop = spring({ frame: frame - start, fps, config: { damping: 11, stiffness: 170 } });
141
+ if (frame < start) return null;
142
+ return (
143
+ <div
144
+ key={n.id}
145
+ style={{
146
+ position: 'absolute',
147
+ left: n.x - NODE_W / 2,
148
+ top: n.y - NODE_H / 2,
149
+ width: NODE_W,
150
+ height: NODE_H,
151
+ background: n.level === 0 ? G.side : G.card,
152
+ border: `3px solid ${n.level === 0 ? G.side : G.border}`,
153
+ borderRadius: 16,
154
+ boxSizing: 'border-box',
155
+ boxShadow: '0 6px 20px rgba(0,0,0,0.10)',
156
+ transform: `scale(${pop})`,
157
+ display: 'flex',
158
+ flexDirection: 'column',
159
+ justifyContent: 'center',
160
+ gap: 10,
161
+ padding: '0 24px',
162
+ }}
163
+ >
164
+ <div style={{ height: 16, width: `${44 + (n.id * 17) % 34}%`, background: n.level === 0 ? '#9a9a98' : G.bar, borderRadius: 8 }} />
165
+ <div style={{ height: 10, width: `${70 - (n.id * 13) % 26}%`, background: n.level === 0 ? G.sideBar : G.line, borderRadius: 5 }} />
166
+ </div>
167
+ );
168
+ })}
169
+ </div>
170
+ </AbsoluteFill>
171
+ );
172
+ };