hyper-animator-codex 0.7.1 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +67 -4
  2. package/bin/hyper-animator-codex.mjs +1 -1
  3. package/lib/minimax-config.mjs +3 -3
  4. package/package.json +4 -1
  5. package/skills/hyper-animator-codex/SKILL.md +66 -22
  6. package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
  7. package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +280 -0
  8. package/skills/hyper-animator-codex/contracts/workflow-policy.json +97 -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 +99 -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 +32 -8
  15. package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
  16. package/skills/hyper-animator-codex/references/narration-audio-workflow.md +47 -10
  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/motion-pack/README.md +32 -0
  126. package/skills/hyper-animator-codex/references/shotcraft/motion-pack/shotcraft-motion-pack.js +178 -0
  127. package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
  128. package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
  129. package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
  130. package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
  131. package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
  132. package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
  133. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
  134. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
  135. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
  136. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
  137. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
  138. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
  139. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
  140. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
  141. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
  142. package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
  143. package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
  144. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
  145. package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
  146. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
  147. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
  148. package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
  149. package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
  150. package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
  151. package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
  152. package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
  153. package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
  154. package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
  155. package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
  156. package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
  157. package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
  158. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
  159. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
  160. package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
  161. package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
  162. package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
  163. package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
  164. package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
  165. package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
  166. package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
  167. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
  168. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
  169. package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
  170. package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
  171. package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
  172. package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
  173. package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
  174. package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
  175. package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
  176. package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
  177. package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
  178. package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
  179. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
  180. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
  181. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
  182. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
  183. package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
  184. package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
  185. package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
  186. package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
  187. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
  188. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
  189. package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
  190. package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
  191. package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
  192. package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
  193. package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
  194. package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
  195. package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
  196. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
  197. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
  198. package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
  199. package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
  200. package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
  201. package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
  202. package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
  203. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
  204. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
  205. package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
  206. package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
  207. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
  208. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
  209. package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
  210. package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
  211. package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
  212. package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
  213. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
  214. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
  215. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
  216. package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
  217. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
  218. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
  219. package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
  220. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
  221. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
  222. package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
  223. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
  224. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
  225. package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
  226. package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
  227. package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
  228. package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
  229. package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
  230. package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
  231. package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
  232. package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
  233. package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
  234. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
  235. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
  236. package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
  237. package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
  238. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
  239. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
  240. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
  241. package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
  242. package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
  243. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
  244. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
  245. package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
  246. package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
  247. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
  248. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
  249. package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
  250. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
  251. package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
  252. package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
  253. package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
  254. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
  255. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
  256. package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
  257. package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
  258. package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
  259. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
  260. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
  261. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
  262. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
  263. package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
  264. package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
  265. package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
  266. package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
  267. package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
  268. package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
  269. package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
  270. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
  271. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
  272. package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
  273. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
  274. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
  275. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
  276. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
  277. package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
  278. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
  279. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
  280. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
  281. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
  282. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
  283. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
  284. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
  285. package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
  286. package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
  287. package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
  288. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
  289. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
  290. package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
  291. package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
  292. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
  293. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
  294. package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
  295. package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
  296. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
  297. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
  298. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
  299. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
  300. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
  301. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
  302. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
  303. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
  304. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
  305. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
  306. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
  307. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
  308. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
  309. package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
  310. package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
  311. package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
  312. package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
  313. package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
  314. package/skills/hyper-animator-codex/scripts/git_checkpoint.mjs +2 -2
  315. package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
  316. package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
  317. package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
  318. package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
  319. package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +266 -0
  320. package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
  321. package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
@@ -0,0 +1,469 @@
1
+ // graze-face-tour v2 —— 源片 clickup-30.mp4 约 28.5–33s:
2
+ // 相机大倾角贴着 UI 表面游走特写,三段接力:侧栏树 → 顶部 tab 条 → 列表行。
3
+ // v2(用户意见):页面文字初始悬浮在界面上空(3D 抬高),空中时在 UI 面上
4
+ // 投模糊同形软影;随镜头推进先后落贴回界面,影子随高度收敛消失。
5
+ import React from 'react';
6
+ import { AbsoluteFill, interpolate, useCurrentFrame, Easing } from 'remotion';
7
+
8
+ const FONT = 'Helvetica, Arial, sans-serif';
9
+ const INK = '#3a3a40';
10
+ const MID = '#8b8b92';
11
+ const FAINT = '#c8c8ce';
12
+
13
+ const easeIO = Easing.bezier(0.45, 0, 0.25, 1);
14
+ const easeFall = Easing.bezier(0.5, 0.05, 0.6, 1); // 加速下落、末端软着陆
15
+
16
+ /* ---------- 悬浮 + 同形软影 ----------
17
+ * h=悬浮高度(px)。文字整体向上(屏幕上-左)抬起,
18
+ * 原位置留一份模糊压暗的同形投影;h→0 时两者重合、影子消失。 */
19
+ const FloatWrap: React.FC<{ h: number; children: React.ReactNode }> = ({ h, children }) => (
20
+ <div style={{ position: 'relative' }}>
21
+ {h > 1.5 && (
22
+ <div style={{
23
+ position: 'absolute', inset: 0,
24
+ transform: `translate(${h * 0.22}px, ${h * 0.42}px) scale(${1 + h * 0.0011})`,
25
+ filter: `blur(${3.5 + h * 0.085}px) brightness(0.32) saturate(0.4)`,
26
+ opacity: Math.min(0.38, 0.16 + h * 0.004),
27
+ pointerEvents: 'none',
28
+ }}>{children}</div>
29
+ )}
30
+ <div style={{ transform: `translate(${-h * 0.34}px, ${-h * 0.78}px)` }}>{children}</div>
31
+ </div>
32
+ );
33
+
34
+ /* 每行的悬浮高度:land = 该行贴回完成的段内时刻(0..1),之前从 H 高度加速落下 */
35
+ const liftOf = (t: number, land: number, H = 120) => {
36
+ const FALL = 0.34;
37
+ const p = Math.min(1, Math.max(0, (t - (land - FALL)) / FALL));
38
+ return (1 - easeFall(p)) * H;
39
+ };
40
+
41
+ /* ---------- 灰阶自绘 UI 素材 ---------- */
42
+
43
+ const Chip: React.FC<{ letter: string; tone: string }> = ({ letter, tone }) => (
44
+ <div style={{
45
+ width: 64, height: 64, borderRadius: 16, background: tone,
46
+ display: 'flex', alignItems: 'center', justifyContent: 'center',
47
+ fontFamily: FONT, fontWeight: 700, fontSize: 36, color: '#666',
48
+ }}>{letter}</div>
49
+ );
50
+
51
+ const Tri: React.FC<{ open?: boolean }> = ({ open }) => (
52
+ <div style={{
53
+ width: 0, height: 0,
54
+ borderLeft: open ? '16px solid transparent' : '22px solid #9a9aa0',
55
+ borderRight: open ? '16px solid transparent' : '0 solid transparent',
56
+ borderTop: open ? '22px solid #9a9aa0' : '14px solid transparent',
57
+ borderBottom: open ? '0' : '14px solid transparent',
58
+ }} />
59
+ );
60
+
61
+ const DocIcon: React.FC = () => (
62
+ <div style={{ width: 44, height: 54, border: '5px solid #9a9aa0', borderRadius: 8, position: 'relative' }}>
63
+ <div style={{ position: 'absolute', left: 7, top: 10, width: 22, height: 5, background: '#b6b6bc' }} />
64
+ <div style={{ position: 'absolute', left: 7, top: 22, width: 22, height: 5, background: '#b6b6bc' }} />
65
+ </div>
66
+ );
67
+
68
+ const FolderIcon: React.FC = () => (
69
+ <div style={{ width: 54, height: 42, background: '#8f8f95', borderRadius: 7, position: 'relative' }}>
70
+ <div style={{ position: 'absolute', left: 0, top: -10, width: 24, height: 12, background: '#8f8f95', borderRadius: '6px 6px 0 0' }} />
71
+ </div>
72
+ );
73
+
74
+ const TreeRow: React.FC<{
75
+ depth: number; label: string; icon?: 'tri' | 'triOpen' | 'doc' | 'folder' | 'dash' | 'chip';
76
+ chip?: string; count?: string; size?: number; dim?: boolean;
77
+ }> = ({ depth, label, icon, chip, count, size = 58, dim }) => (
78
+ <div style={{
79
+ display: 'flex', alignItems: 'center', gap: 30, paddingLeft: 40 + depth * 90,
80
+ height: size * 2.1, opacity: dim ? 0.35 : 1,
81
+ }}>
82
+ {icon === 'tri' && <Tri />}
83
+ {icon === 'triOpen' && <Tri open />}
84
+ {icon === 'doc' && <DocIcon />}
85
+ {icon === 'folder' && <FolderIcon />}
86
+ {icon === 'dash' && <div style={{ width: 40, height: 40, border: '6px dashed #a2a2a8', borderRadius: 10 }} />}
87
+ {chip && <Chip letter={chip} tone="#d4d4da" />}
88
+ <div style={{ fontFamily: FONT, fontSize: size, color: INK, fontWeight: 500 }}>{label}</div>
89
+ {count && <div style={{ marginLeft: 'auto', marginRight: 80, fontFamily: FONT, fontSize: size * 0.85, color: MID }}>{count}</div>}
90
+ </div>
91
+ );
92
+
93
+ const RecentCard: React.FC<{ title: string; sub: string; w?: number }> = ({ title, sub, w = 880 }) => (
94
+ <div style={{
95
+ width: w, border: `4px solid ${FAINT}`, borderRadius: 24, padding: '36px 44px',
96
+ display: 'flex', flexDirection: 'column', gap: 18, background: '#fbfbfa',
97
+ }}>
98
+ <div style={{ display: 'flex', alignItems: 'center', gap: 26 }}>
99
+ <div style={{ width: 44, height: 44, border: '6px solid #85858b', borderRadius: 8 }} />
100
+ <div style={{ fontFamily: FONT, fontSize: 52, color: INK, fontWeight: 600 }}>{title}</div>
101
+ </div>
102
+ <div style={{ fontFamily: FONT, fontSize: 42, color: MID, paddingLeft: 70 }}>{sub}</div>
103
+ </div>
104
+ );
105
+
106
+ /* 场景 A:侧栏 SPACES 树 + 右侧 Recent 卡(对标截图 1/2/4)
107
+ * v2:树行/卡片按镜头行进方向(自上而下)先后从空中落贴回界面 */
108
+ const SceneTree: React.FC<{ t?: number }> = ({ t = 1 }) => {
109
+ // 树行落地时刻:镜头由树顶滑向树底,行 index 越大越晚落
110
+ const L = (i: number, n = 14) => liftOf(t, 0.22 + (i / n) * 0.62, 130);
111
+ const rows: [number, string, 'tri' | 'triOpen' | 'doc' | 'folder' | 'dash' | undefined, string | undefined, string | undefined][] = [
112
+ [0, 'People & Teams', 'doc', undefined, undefined],
113
+ [0, 'Goals', 'doc', undefined, undefined],
114
+ [0, 'Docs', 'doc', undefined, undefined],
115
+ [0, 'More', 'dash', undefined, undefined],
116
+ [0, 'EPD', 'tri', 'E', undefined],
117
+ [0, 'Product roadmap', 'tri', 'P', undefined],
118
+ [0, 'Design', 'triOpen', 'D', undefined],
119
+ [1, 'Designer handbook', 'doc', undefined, undefined],
120
+ [1, '3.0', 'folder', undefined, undefined],
121
+ [1, 'Design system', 'folder', undefined, undefined],
122
+ [2, 'Design system', 'doc', undefined, undefined],
123
+ [2, 'Components', 'dash', undefined, '56'],
124
+ [2, 'Patterns', 'dash', undefined, '8'],
125
+ [2, 'Tokens', 'dash', undefined, '256'],
126
+ ];
127
+ return (
128
+ <div style={{ width: 2900, height: 2400, background: '#f5f5f4', display: 'flex' }}>
129
+ <div style={{ width: 1500, borderRight: `4px solid ${FAINT}`, paddingTop: 60, background: '#f2f2f1' }}>
130
+ {rows.slice(0, 4).map((r, i) => (
131
+ <FloatWrap key={r[1] + i} h={L(i)}>
132
+ <TreeRow depth={r[0]} label={r[1]} icon={r[2]} chip={r[3]} count={r[4]} />
133
+ </FloatWrap>
134
+ ))}
135
+ <div style={{ height: 90 }} />
136
+ <FloatWrap h={L(4)}>
137
+ <div style={{ paddingLeft: 48, fontFamily: FONT, fontSize: 46, letterSpacing: 6, color: MID, fontWeight: 600 }}>SPACES</div>
138
+ </FloatWrap>
139
+ <div style={{ height: 30 }} />
140
+ {rows.slice(4).map((r, i) => (
141
+ <FloatWrap key={r[1] + i} h={L(i + 4.6)}>
142
+ <TreeRow depth={r[0]} label={r[1]} icon={r[2]} chip={r[3]} count={r[4]} />
143
+ </FloatWrap>
144
+ ))}
145
+ </div>
146
+ <div style={{ flex: 1, paddingTop: 100, paddingLeft: 110 }}>
147
+ <FloatWrap h={liftOf(t, 0.3, 150)}>
148
+ <div style={{ display: 'flex', gap: 90, fontFamily: FONT, fontSize: 52 }}>
149
+ <div style={{ color: INK, fontWeight: 700 }}>Recent</div>
150
+ <div style={{ color: MID }}>Favorites</div>
151
+ </div>
152
+ </FloatWrap>
153
+ <div style={{ height: 64 }} />
154
+ <div style={{ display: 'flex', flexDirection: 'column', gap: 44 }}>
155
+ <FloatWrap h={liftOf(t, 0.42, 170)}>
156
+ <RecentCard title="Logo" sub="Brand refresh" />
157
+ </FloatWrap>
158
+ <FloatWrap h={liftOf(t, 0.55, 170)}>
159
+ <RecentCard title="Split.io Access for Oleg" sub="Team credentials" />
160
+ </FloatWrap>
161
+ </div>
162
+ <div style={{ height: 110 }} />
163
+ <FloatWrap h={liftOf(t, 0.68, 150)}>
164
+ <div style={{ display: 'flex', gap: 90, fontFamily: FONT, fontSize: 50 }}>
165
+ <div style={{ color: INK, fontWeight: 700 }}>Todo</div>
166
+ <div style={{ color: MID }}>Comments</div>
167
+ <div style={{ color: MID }}>Done</div>
168
+ </div>
169
+ </FloatWrap>
170
+ <div style={{ height: 50 }} />
171
+ <FloatWrap h={liftOf(t, 0.8, 150)}>
172
+ <div style={{ display: 'flex', gap: 40, alignItems: 'center' }}>
173
+ <div style={{
174
+ padding: '22px 46px', background: '#e3e3ec', borderRadius: 18,
175
+ fontFamily: FONT, fontSize: 46, color: INK, fontWeight: 600,
176
+ }}>≡ List</div>
177
+ <div style={{ fontFamily: FONT, fontSize: 46, color: MID }}>▦ Gallery</div>
178
+ </div>
179
+ </FloatWrap>
180
+ </div>
181
+ </div>
182
+ );
183
+ };
184
+
185
+ /* 场景 B:顶部 tab 条 + 左上侧栏导航(对标截图 6/7)
186
+ * v2:tab 条、logo、Home 行、侧栏项先后从空中贴落 */
187
+ const SceneTopNav: React.FC<{ t?: number }> = ({ t = 1 }) => (
188
+ <div style={{ width: 3000, height: 2100, background: '#f5f5f4', borderRadius: 48 }}>
189
+ <div style={{
190
+ height: 150, borderBottom: `4px solid ${FAINT}`, display: 'flex', alignItems: 'center',
191
+ gap: 120, paddingLeft: 90, fontFamily: FONT, fontSize: 54, color: INK,
192
+ }}>
193
+ {['Product analytics', 'ClickUp 3.0', 'Widget brainstorm', 'Design system'].map((tb, i) => (
194
+ <FloatWrap key={tb} h={liftOf(t, 0.2 + i * 0.1, 140)}>
195
+ <div style={{ display: 'flex', alignItems: 'center', gap: 26, fontWeight: i === 1 ? 700 : 400, opacity: i > 1 ? 0.75 : 1 }}>
196
+ <div style={{
197
+ width: 40, height: 40, borderRadius: i === 1 ? 14 : 8,
198
+ background: i === 1 ? '#7d7d84' : 'transparent',
199
+ border: i === 1 ? 'none' : '5px solid #9a9aa0',
200
+ }} />
201
+ {tb}
202
+ </div>
203
+ </FloatWrap>
204
+ ))}
205
+ </div>
206
+ <div style={{ display: 'flex' }}>
207
+ <div style={{ width: 1250, padding: '70px 70px 0' }}>
208
+ <FloatWrap h={liftOf(t, 0.34, 150)}>
209
+ <div style={{ display: 'flex', alignItems: 'center', gap: 30 }}>
210
+ <div style={{ width: 74, height: 74, borderRadius: 20, background: 'linear-gradient(135deg,#a9a9af,#6f6f76)' }} />
211
+ <div style={{ fontFamily: FONT, fontSize: 66, fontWeight: 800, color: INK }}>ClickUp</div>
212
+ <div style={{ marginLeft: 'auto', width: 130, height: 90, border: `4px solid ${FAINT}`, borderRadius: 22, background: '#fff' }} />
213
+ </div>
214
+ </FloatWrap>
215
+ <div style={{ height: 60 }} />
216
+ <FloatWrap h={liftOf(t, 0.46, 160)}>
217
+ <div style={{
218
+ display: 'flex', alignItems: 'center', gap: 34, background: '#e6e6f0',
219
+ border: '4px solid #c5c5d4', borderRadius: 24, padding: '30px 44px',
220
+ }}>
221
+ <div style={{ width: 48, height: 44, border: '6px solid #5f5f66', borderBottom: 'none', borderRadius: '10px 10px 0 0' }} />
222
+ <div style={{ fontFamily: FONT, fontSize: 56, color: '#4a4a55', fontWeight: 600 }}>Home</div>
223
+ <div style={{
224
+ marginLeft: 'auto', width: 62, height: 62, borderRadius: 31, background: '#a5a5ab',
225
+ color: '#fff', fontFamily: FONT, fontSize: 38, fontWeight: 700,
226
+ display: 'flex', alignItems: 'center', justifyContent: 'center',
227
+ }}>3</div>
228
+ </div>
229
+ </FloatWrap>
230
+ {['Inbox', 'Company', 'People & Teams', 'Goals', 'Docs'].map((tb, i) => (
231
+ <FloatWrap key={tb} h={liftOf(t, 0.55 + i * 0.08, 140)}>
232
+ <div style={{ display: 'flex', alignItems: 'center', gap: 34, height: 128, paddingLeft: 44 }}>
233
+ <div style={{ width: 44, height: 44, border: '6px solid #93939a', borderRadius: 10 }} />
234
+ <div style={{ fontFamily: FONT, fontSize: 54, color: INK }}>{tb}</div>
235
+ </div>
236
+ </FloatWrap>
237
+ ))}
238
+ </div>
239
+ <div style={{ flex: 1, borderLeft: `4px solid ${FAINT}`, padding: '70px 90px 0' }}>
240
+ <FloatWrap h={liftOf(t, 0.4, 150)}>
241
+ <div style={{ display: 'flex', alignItems: 'center', gap: 40, color: MID, fontFamily: FONT, fontSize: 52 }}>
242
+ <div>‹</div><div>›</div>
243
+ <div style={{ width: 44, height: 40, border: '6px solid #93939a', borderBottom: 'none', borderRadius: '10px 10px 0 0' }} />
244
+ <div style={{ color: INK }}>Home</div>
245
+ </div>
246
+ </FloatWrap>
247
+ <div style={{ height: 80 }} />
248
+ <FloatWrap h={liftOf(t, 0.58, 180)}>
249
+ <div style={{ fontFamily: FONT, fontSize: 130, fontWeight: 750, color: INK }}>Home</div>
250
+ </FloatWrap>
251
+ <div style={{ height: 70 }} />
252
+ <FloatWrap h={liftOf(t, 0.74, 160)}>
253
+ <div style={{
254
+ display: 'flex', alignItems: 'center', gap: 36, border: `4px solid ${FAINT}`,
255
+ borderRadius: 26, padding: '34px 46px', background: '#fff', width: 1100,
256
+ }}>
257
+ <div style={{ width: 44, height: 44, borderRadius: 22, border: '6px solid #9a9aa0' }} />
258
+ <div style={{ fontFamily: FONT, fontSize: 48, color: MID }}>Search by app, filetype…</div>
259
+ </div>
260
+ </FloatWrap>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ );
265
+
266
+ /* 场景 C:列表行(对标截图 4 右下 TODAY/TASK NAME 区)
267
+ * v2:Todo 头/TODAY 徽章/任务行自上而下先后贴落 */
268
+ const SceneListRows: React.FC<{ t?: number }> = ({ t = 1 }) => (
269
+ <div style={{ width: 2900, height: 2200, background: '#f6f6f5', paddingTop: 60 }}>
270
+ <FloatWrap h={liftOf(t, 0.22, 150)}>
271
+ <div style={{ display: 'flex', gap: 100, paddingLeft: 120, fontFamily: FONT, fontSize: 54 }}>
272
+ <div style={{ color: INK, fontWeight: 700 }}>Todo</div>
273
+ <div style={{ color: MID }}>Comments</div>
274
+ <div style={{ color: MID }}>Done</div>
275
+ <div style={{ color: MID }}>Delegated</div>
276
+ </div>
277
+ </FloatWrap>
278
+ <div style={{ height: 56 }} />
279
+ <FloatWrap h={liftOf(t, 0.32, 150)}>
280
+ <div style={{ display: 'flex', gap: 44, alignItems: 'center', paddingLeft: 120 }}>
281
+ <div style={{
282
+ padding: '24px 52px', background: '#e2e2ea', borderRadius: 20,
283
+ fontFamily: FONT, fontSize: 50, color: INK, fontWeight: 600,
284
+ }}>≡ List</div>
285
+ <div style={{ fontFamily: FONT, fontSize: 50, color: MID }}>▦ Gallery</div>
286
+ <div style={{ marginLeft: 500, display: 'flex', gap: 80, color: MID, fontFamily: FONT, fontSize: 46 }}>
287
+ <div>Filter</div><div>Group</div><div>Sort</div>
288
+ </div>
289
+ </div>
290
+ </FloatWrap>
291
+ <div style={{ height: 40, borderBottom: `4px solid ${FAINT}`, marginLeft: 120, marginRight: 120 }} />
292
+ <div style={{ height: 60 }} />
293
+ <FloatWrap h={liftOf(t, 0.44, 160)}>
294
+ <div style={{
295
+ marginLeft: 120, display: 'inline-block', padding: '20px 48px', background: '#e4e4e3',
296
+ borderRadius: 16, fontFamily: FONT, fontSize: 44, letterSpacing: 4, color: '#6f6f75', fontWeight: 600,
297
+ }}>TODAY</div>
298
+ </FloatWrap>
299
+ <div style={{ height: 60 }} />
300
+ <FloatWrap h={liftOf(t, 0.54, 150)}>
301
+ <div style={{ paddingLeft: 120, fontFamily: FONT, fontSize: 42, letterSpacing: 5, color: MID }}>TASK NAME</div>
302
+ </FloatWrap>
303
+ <div style={{ height: 30 }} />
304
+ {['New Bugs Per Week', 'Designer handbook', 'Mobile screens', 'Product roadmap'].map((tb, i) => (
305
+ <FloatWrap key={tb} h={liftOf(t, 0.62 + i * 0.09, 160)}>
306
+ <div style={{
307
+ display: 'flex', alignItems: 'center', gap: 44, height: 170, marginLeft: 120, marginRight: 120,
308
+ borderBottom: '3px solid #e6e6e4',
309
+ }}>
310
+ <div style={{ width: 40, height: 40, borderRadius: 12, background: '#88888e' }} />
311
+ <div style={{ fontFamily: FONT, fontSize: 58, color: INK, fontWeight: 550 }}>{tb}</div>
312
+ <div style={{ marginLeft: 'auto', width: 220, height: 20, background: '#e2e2e8', borderRadius: 10 }} />
313
+ <div style={{ color: MID, fontSize: 60 }}>…</div>
314
+ </div>
315
+ </FloatWrap>
316
+ ))}
317
+ </div>
318
+ );
319
+
320
+ /* ---------- 3D 摄影 ---------- */
321
+
322
+ type Cam = {
323
+ rx: number; ry: number; rz: number; scale: number;
324
+ x: [number, number]; y: [number, number];
325
+ };
326
+
327
+ const Plane: React.FC<{
328
+ cam: Cam; t: number; edge?: 'left' | 'top'; children: React.ReactNode;
329
+ }> = ({ cam, t, edge = 'left', children }) => {
330
+ const x = interpolate(t, [0, 1], cam.x, { easing: easeIO });
331
+ const y = interpolate(t, [0, 1], cam.y, { easing: easeIO });
332
+ return (
333
+ <AbsoluteFill style={{ perspective: 1050, perspectiveOrigin: '50% 46%' }}>
334
+ <div style={{
335
+ position: 'absolute', left: '50%', top: '50%', width: 0, height: 0,
336
+ transformStyle: 'preserve-3d',
337
+ transform: `scale(${cam.scale}) rotateX(${cam.rx}deg) rotateY(${cam.ry}deg) rotateZ(${cam.rz}deg)`,
338
+ }}>
339
+ <div style={{ position: 'absolute', transform: `translate3d(${x}px, ${y}px, 0)` }}>
340
+ <div style={{ position: 'relative', transform: 'translate(-50%, -50%)' }}>
341
+ {/* 屏幕边缘霓虹晕染 */}
342
+ {edge === 'left' ? (
343
+ <>
344
+ <div style={{
345
+ position: 'absolute', left: -70, top: -40, width: 110, height: '104%',
346
+ background: 'linear-gradient(185deg, #ff7ab8, #b06cff 55%, #6d4dff)',
347
+ filter: 'blur(70px)', opacity: 0.9,
348
+ }} />
349
+ <div style={{
350
+ position: 'absolute', left: -10, top: 0, width: 8, height: '100%',
351
+ background: 'linear-gradient(180deg, #ffb0d5, #b78cff)', filter: 'blur(3px)', opacity: 0.95,
352
+ }} />
353
+ </>
354
+ ) : (
355
+ <>
356
+ <div style={{
357
+ position: 'absolute', left: -40, top: -70, width: '104%', height: 110,
358
+ background: 'linear-gradient(90deg, #ff7ab8, #b06cff 55%, #6d4dff)',
359
+ filter: 'blur(70px)', opacity: 0.85,
360
+ }} />
361
+ <div style={{
362
+ position: 'absolute', left: 0, top: -10, width: '100%', height: 8,
363
+ background: 'linear-gradient(90deg, #ffb0d5, #b78cff)', filter: 'blur(3px)', opacity: 0.9,
364
+ }} />
365
+ </>
366
+ )}
367
+ {children}
368
+ {/* 远端压暗:贴面透视里远处渐暗 */}
369
+ <div style={{
370
+ position: 'absolute', inset: 0,
371
+ background: edge === 'left'
372
+ ? 'linear-gradient(105deg, rgba(0,0,10,0) 30%, rgba(0,0,10,0.35) 75%, rgba(0,0,10,0.6) 100%)'
373
+ : 'linear-gradient(175deg, rgba(0,0,10,0) 35%, rgba(0,0,10,0.3) 80%, rgba(0,0,10,0.55) 100%)',
374
+ pointerEvents: 'none',
375
+ }} />
376
+ </div>
377
+ </div>
378
+ </div>
379
+ </AbsoluteFill>
380
+ );
381
+ };
382
+
383
+ /* 背景霓虹描边矩形(暗场道具) */
384
+ const NeonRects: React.FC<{ drift: number }> = ({ drift }) => (
385
+ <AbsoluteFill style={{ overflow: 'hidden' }}>
386
+ <div style={{
387
+ position: 'absolute', left: -140 + drift * 40, top: 240, width: 620, height: 380,
388
+ border: '4px solid #c04dff', borderRadius: 34, filter: 'blur(7px)', opacity: 0.5,
389
+ }} />
390
+ <div style={{
391
+ position: 'absolute', left: 60 + drift * 25, top: 700, width: 420, height: 260,
392
+ border: '4px solid #ff4da8', borderRadius: 28, filter: 'blur(10px)', opacity: 0.4,
393
+ }} />
394
+ <div style={{
395
+ position: 'absolute', right: -180 - drift * 30, top: -80, width: 560, height: 340,
396
+ border: '4px solid #7b4dff', borderRadius: 30, filter: 'blur(12px)', opacity: 0.35,
397
+ }} />
398
+ </AbsoluteFill>
399
+ );
400
+
401
+ // 平移目标以内容坐标 (cx,cy) 给出:translate = (W/2-cx, H/2-cy)
402
+ const SEGS: { cam: Cam; edge: 'left' | 'top'; render: (t: number) => React.ReactNode }[] = [
403
+ {
404
+ // 侧栏树:从树顶(SPACES 附近)贴面滑到树底(Components/Patterns/Tokens)
405
+ cam: { rx: 12, ry: 30, rz: -6, scale: 0.95, x: [1450 - 950, 1450 - 880], y: [1200 - 1050, 1200 - 1850] },
406
+ edge: 'left', render: (t) => <SceneTree t={t} />,
407
+ },
408
+ {
409
+ // 顶栏 tab 条 → 右区 Home 大标题
410
+ cam: { rx: 20, ry: -20, rz: 6, scale: 0.95, x: [1500 - 800, 1500 - 2000], y: [1050 - 350, 1050 - 800] },
411
+ edge: 'top', render: (t) => <SceneTopNav t={t} />,
412
+ },
413
+ {
414
+ // 列表行:沿 TASK NAME 行右扫
415
+ cam: { rx: 14, ry: 28, rz: -5, scale: 1.05, x: [1450 - 900, 1450 - 680], y: [1100 - 620, 1100 - 1240] },
416
+ edge: 'left', render: (t) => <SceneListRows t={t} />,
417
+ },
418
+ ];
419
+
420
+ const SEG_LEN = 50; // 每段 50 帧,总 150
421
+ const FADE = 7;
422
+
423
+ const Stage: React.FC = () => {
424
+ const frame = useCurrentFrame();
425
+ return (
426
+ <AbsoluteFill style={{ background: '#060608' }}>
427
+ {SEGS.map((s, i) => {
428
+ const start = i * SEG_LEN;
429
+ const local = frame - start;
430
+ if (local < -FADE || local > SEG_LEN + FADE) return null;
431
+ const t = Math.min(1, Math.max(0, local / SEG_LEN));
432
+ // 相邻段交叉淡化:后段在边界前 [-FADE,0] 淡入、前段在 [SEG_LEN-FADE, SEG_LEN] 淡出,边界帧无纯黑
433
+ const opacity = interpolate(local, [-FADE, 0, SEG_LEN - FADE, SEG_LEN], [i === 0 ? 1 : 0, 1, 1, i === SEGS.length - 1 ? 1 : 0]);
434
+ return (
435
+ <AbsoluteFill key={i} style={{ opacity }}>
436
+ <NeonRects drift={t} />
437
+ <Plane cam={s.cam} t={t} edge={s.edge}>{s.render(t)}</Plane>
438
+ </AbsoluteFill>
439
+ );
440
+ })}
441
+ </AbsoluteFill>
442
+ );
443
+ };
444
+
445
+ export const GrazeFaceTour: React.FC = () => {
446
+ const frame = useCurrentFrame();
447
+ // 呼吸感的焦点带(浅景深):焦点椭圆随段落略移
448
+ const seg = Math.min(2, Math.floor(frame / SEG_LEN));
449
+ const focusX = [44, 40, 46][seg];
450
+ const focusY = [46, 40, 50][seg];
451
+ return (
452
+ <AbsoluteFill style={{ background: '#060608' }}>
453
+ <Stage />
454
+ {/* 屏幕空间浅景深:焦点带外整体模糊 */}
455
+ <AbsoluteFill style={{
456
+ filter: 'blur(16px) brightness(0.92)',
457
+ WebkitMaskImage: `radial-gradient(ellipse 58% 52% at ${focusX}% ${focusY}%, transparent 34%, rgba(0,0,0,0.85) 72%, black 92%)`,
458
+ maskImage: `radial-gradient(ellipse 58% 52% at ${focusX}% ${focusY}%, transparent 34%, rgba(0,0,0,0.85) 72%, black 92%)`,
459
+ }}>
460
+ <Stage />
461
+ </AbsoluteFill>
462
+ {/* 暗角 + 冷调压暗 */}
463
+ <AbsoluteFill style={{
464
+ background: 'radial-gradient(ellipse 90% 80% at 50% 45%, transparent 40%, rgba(2,2,6,0.55) 78%, rgba(1,1,4,0.9) 100%)',
465
+ pointerEvents: 'none',
466
+ }} />
467
+ </AbsoluteFill>
468
+ );
469
+ };
@@ -0,0 +1,166 @@
1
+ // hashtag-to-pill-materialize(bear-app 18–21.5s 重做版,按原片密帧逐帧对照)
2
+ // 原片实测节奏(25fps 逐帧):
3
+ // 1) 白底居中打字 "#music":几何无衬线(Futura 气质)、中灰墨色、红色实心光标恒亮不闪、人手节奏
4
+ // 2) 实体化 = 1 帧硬切:文字+光标 → 宽大浅灰无描边胶囊 + 灰色双八分音符图标 + "music"(字号不变,#被图标替换)
5
+ // 3) 停约 0.6s → 整体平滑缩小(→~0.55x)并左移落到页面标签位(约 0.55s,easeInOut)
6
+ // 4) 再 1 帧硬切揭示成品笔记页:奶油底、墨绿大标题 "My favorite bands"、胶囊换成鼠尾草绿、正文三行——
7
+ // 原片没有"胶囊飞入下方滑入卡片"的段落(批次 8 的飞行段为杜撰,已砍)
8
+ import React from 'react';
9
+ import { AbsoluteFill, interpolate, useCurrentFrame, Easing } from 'remotion';
10
+
11
+ const FONT = "Futura, 'Century Gothic', 'Avenir Next', 'Trebuchet MS', sans-serif";
12
+
13
+ const C = {
14
+ bgWhite: '#fcfcfb',
15
+ bgCream: '#f4f1e5',
16
+ ink: '#454543',
17
+ cursor: '#e0453f',
18
+ pillGray: '#e9e9e7',
19
+ pillTextGray: '#4b4b49',
20
+ iconGray: '#7e7e7c',
21
+ pillSage: '#d5e0cf',
22
+ iconSage: '#5c7a63',
23
+ titleGreen: '#2d5c47',
24
+ pillSageText: '#3f5e4c',
25
+ body: '#4c4b43',
26
+ };
27
+
28
+ // ---- mulberry32(仅用于打字节奏的人手抖动,确定性)----
29
+ function mulberry32(seed: number) {
30
+ let a = seed >>> 0;
31
+ return () => {
32
+ a = (a + 0x6d2b79f5) >>> 0;
33
+ let t = a;
34
+ t = Math.imul(t ^ (t >>> 15), t | 1);
35
+ t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
36
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
37
+ };
38
+ }
39
+
40
+ const TEXT = '#music';
41
+ // 打字起点 & 每字间隔(帧),4–8 帧带抖动,模拟原片真人节奏
42
+ const TYPE_START = 8;
43
+ const rand = mulberry32(20260717);
44
+ const TYPE_AT: number[] = (() => {
45
+ const at: number[] = [];
46
+ let f = TYPE_START;
47
+ for (let i = 0; i < TEXT.length; i++) {
48
+ at.push(f);
49
+ f += 4 + Math.floor(rand() * 3); // 4–6 帧(原片 ~6字/秒)
50
+ }
51
+ return at;
52
+ })();
53
+
54
+ // ---- 时间轴(30fps,共 132 帧,节奏对齐原片 18–21.5s)----
55
+ const MORPH = 48; // 1 帧硬切实体化(打完 hold ~0.5s,原片 0.45s)
56
+ const MOVE_START = 66; // 胶囊开始缩小左移(morph 后 0.6s,原片同)
57
+ const MOVE_END = 80; // 落位(0.47s,原片 ~0.45s)
58
+ const REVEAL = 83; // 1 帧硬切揭示成品页,之后静置收尾
59
+
60
+ // ---- 几何(1920x1080,等比换算自原片 1280x720 实测像素)----
61
+ const FS = 132; // 打字/胶囊文字字号(原片 glyph 等高换算)
62
+ const HERO = { x: 960, y: 540 }; // 大胶囊中心
63
+ const PILL_W = 740, PILL_H = 236; // 原片实测 493x157 @720p ×1.5
64
+ const END_SCALE = 0.554; // 落位缩放(原片 273/493)
65
+ const SLOT = { x: 361, y: 473 }; // 标签位中心(原片灰胶囊落点 (244.5,317.5)×1.5 与揭示位折中)
66
+
67
+ // 灰色双八分音符图标(原片是 beamed 双音符,非 ♪)
68
+ const NoteIcon: React.FC<{ size: number; color: string }> = ({ size, color }) => (
69
+ <svg width={size} height={size} viewBox="0 0 48 48" style={{ display: 'block' }}>
70
+ <ellipse cx="11" cy="39" rx="7.2" ry="5.6" fill={color} transform="rotate(-18 11 39)" />
71
+ <ellipse cx="35" cy="35" rx="7.2" ry="5.6" fill={color} transform="rotate(-18 35 35)" />
72
+ <rect x="15.4" y="12.5" width="3" height="27" fill={color} />
73
+ <rect x="39.4" y="8.5" width="3" height="27" fill={color} />
74
+ <polygon points="15.4,12.5 42.4,8.5 42.4,16.5 15.4,20.5" fill={color} />
75
+ </svg>
76
+ );
77
+
78
+ // 胶囊(大字号绘制,整体 transform 缩放,保证实体化前后文字原位等大)
79
+ const Pill: React.FC<{ bg: string; iconColor: string; textColor: string }> = ({ bg, iconColor, textColor }) => (
80
+ <div style={{
81
+ width: PILL_W, height: PILL_H, borderRadius: PILL_H / 2, background: bg,
82
+ display: 'flex', alignItems: 'center', paddingLeft: 96, boxSizing: 'border-box', gap: 66,
83
+ }}>
84
+ <NoteIcon size={104} color={iconColor} />
85
+ <span style={{ fontSize: FS, fontWeight: 500, color: textColor, letterSpacing: 2 }}>music</span>
86
+ </div>
87
+ );
88
+
89
+ export const HashtagToPillMaterialize: React.FC = () => {
90
+ const frame = useCurrentFrame();
91
+
92
+ // ---- 打字 ----
93
+ const typedCount = TYPE_AT.filter((t) => frame >= t).length;
94
+ const typed = TEXT.slice(0, typedCount);
95
+
96
+ // ---- 缩小左移 ----
97
+ const moveT = interpolate(frame, [MOVE_START, MOVE_END], [0, 1], {
98
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
99
+ easing: Easing.bezier(0.5, 0, 0.25, 1),
100
+ });
101
+ const px = interpolate(moveT, [0, 1], [HERO.x, SLOT.x]);
102
+ const py = interpolate(moveT, [0, 1], [HERO.y, SLOT.y]);
103
+ const ps = interpolate(moveT, [0, 1], [1, END_SCALE]);
104
+ // 实体化瞬间极轻微落定(原片近乎硬切,仅 3 帧 1.03→1,避免死板)
105
+ const settle = interpolate(frame, [MORPH, MORPH + 3], [1.03, 1], {
106
+ extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.quad),
107
+ });
108
+
109
+ const revealed = frame >= REVEAL;
110
+
111
+ return (
112
+ <AbsoluteFill style={{ background: revealed ? C.bgCream : C.bgWhite, fontFamily: FONT }}>
113
+ {/* 成品页(硬切揭示,之后全静) */}
114
+ {revealed && (
115
+ <>
116
+ <div style={{
117
+ position: 'absolute', left: 160, top: 168,
118
+ fontSize: 122, fontWeight: 700, color: C.titleGreen, letterSpacing: 0.5,
119
+ }}>
120
+ My favorite bands
121
+ </div>
122
+ <div style={{
123
+ position: 'absolute', left: 152, top: 618,
124
+ fontSize: 70, fontWeight: 500, color: C.body, lineHeight: 1.33, letterSpacing: 0.3,
125
+ }}>
126
+ I want to share a few of my favorite bands<br />
127
+ and the song that I always listen when driving<br />
128
+ to home. Welcome. Bring headphones.
129
+ </div>
130
+ </>
131
+ )}
132
+
133
+ {/* 打字层:文字 + 恒亮红光标(原片光标不闪烁),实体化帧整体消失 */}
134
+ {frame < MORPH && (
135
+ <AbsoluteFill style={{ justifyContent: 'center', alignItems: 'center' }}>
136
+ <div style={{ display: 'flex', alignItems: 'center' }}>
137
+ <span style={{ fontSize: FS, fontWeight: 500, color: C.ink, letterSpacing: 2, whiteSpace: 'pre' }}>
138
+ {typed}
139
+ </span>
140
+ <span style={{
141
+ display: 'inline-block', width: 7, height: 150,
142
+ background: C.cursor, marginLeft: 8, borderRadius: 2,
143
+ }} />
144
+ </div>
145
+ </AbsoluteFill>
146
+ )}
147
+
148
+ {/* 胶囊层:实体化 1 帧硬切出现 → hold → 缩小左移落位 → 揭示帧换鼠尾草绿 */}
149
+ {frame >= MORPH && (
150
+ <div style={{
151
+ position: 'absolute', left: 0, top: 0,
152
+ // origin 必须是 0 0:translate 先把原点送到目标中心,scale 绕该点缩放,
153
+ // 否则默认 50% 50% 会让落位时中心漂移 (1-s)*半宽
154
+ transformOrigin: '0 0',
155
+ transform: `translate(${px}px, ${py}px) scale(${ps * settle})`,
156
+ }}>
157
+ <div style={{ transform: 'translate(-50%, -50%)' }}>
158
+ {revealed
159
+ ? <Pill bg={C.pillSage} iconColor={C.iconSage} textColor={C.pillSageText} />
160
+ : <Pill bg={C.pillGray} iconColor={C.iconGray} textColor={C.pillTextGray} />}
161
+ </div>
162
+ </div>
163
+ )}
164
+ </AbsoluteFill>
165
+ );
166
+ };