dsh-drawai 0.4.2 → 0.4.3

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 (366) hide show
  1. package/README.md +4 -3
  2. package/lib/index.js +7777 -7719
  3. package/lib/motion/asset-pack.js +394 -394
  4. package/lib/motion/assets.js +291 -291
  5. package/lib/motion/demo-assets-lock.js +10 -10
  6. package/lib/motion/mgstyles/vendor/README.md +28 -28
  7. package/lib/motion/mgstyles/vendor/modules/d3/LICENSE +13 -13
  8. package/lib/motion/mgstyles/vendor/modules/d3/dist/d3.min.js +2 -2
  9. package/lib/motion/mgstyles/vendor/modules/opentype.js/LICENSE +20 -20
  10. package/lib/motion/mgstyles/vendor/modules/opentype.js/dist/opentype.mjs +14460 -14460
  11. package/lib/motion/mgstyles/vendor/modules/simplex-noise/LICENSE +21 -21
  12. package/lib/motion/mgstyles/vendor/modules/simplex-noise/dist/esm/simplex-noise.js +465 -465
  13. package/lib/motion/mgstyles/vendor/modules/topojson-client/LICENSE +13 -13
  14. package/lib/motion/mgstyles/vendor/modules/topojson-client/dist/topojson-client.min.js +2 -2
  15. package/lib/motion/render.js +179 -179
  16. package/lib/motion/shotcraft/upstream/SKILL.md +286 -286
  17. package/lib/motion/shotcraft/upstream/assets/lib/Caption.tsx +54 -54
  18. package/lib/motion/shotcraft/upstream/assets/lib/ClipCard.tsx +200 -200
  19. package/lib/motion/shotcraft/upstream/assets/lib/DigitRoll.tsx +45 -45
  20. package/lib/motion/shotcraft/upstream/assets/lib/FlashCut.tsx +20 -20
  21. package/lib/motion/shotcraft/upstream/assets/lib/FlatPanel.tsx +65 -65
  22. package/lib/motion/shotcraft/upstream/assets/lib/PageCam.tsx +151 -151
  23. package/lib/motion/shotcraft/upstream/assets/lib/VerticalTicker.tsx +129 -129
  24. package/lib/motion/shotcraft/upstream/assets/lib/helpers/camera.tsx +75 -75
  25. package/lib/motion/shotcraft/upstream/assets/lib/helpers/motion.ts +40 -40
  26. package/lib/motion/shotcraft/upstream/assets/lib/helpers/rand.ts +11 -11
  27. package/lib/motion/shotcraft/upstream/assets/lib/helpers/shake.ts +10 -10
  28. package/lib/motion/shotcraft/upstream/assets/scripts/build-readme-cover.mjs +49 -49
  29. package/lib/motion/shotcraft/upstream/assets/scripts/capture-template.mjs +210 -210
  30. package/lib/motion/shotcraft/upstream/assets/scripts/sfx-source.py +423 -423
  31. package/lib/motion/shotcraft/upstream/assets/scripts/smoke-render-demos.py +170 -170
  32. package/lib/motion/shotcraft/upstream/assets/scripts/test_sfx_source.py +157 -157
  33. package/lib/motion/shotcraft/upstream/demos/README.md +120 -120
  34. package/lib/motion/shotcraft/upstream/demos/_fixtures/Brand.tsx +112 -112
  35. package/lib/motion/shotcraft/upstream/demos/_fixtures/Fixtures.tsx +647 -647
  36. package/lib/motion/shotcraft/upstream/demos/_fixtures/Look.tsx +316 -316
  37. package/lib/motion/shotcraft/upstream/demos/_fixtures/Motion.tsx +82 -82
  38. package/lib/motion/shotcraft/upstream/demos/_fixtures/PageCam2D.tsx +115 -115
  39. package/lib/motion/shotcraft/upstream/demos/_fixtures/Polish.tsx +243 -243
  40. package/lib/motion/shotcraft/upstream/demos/_textures/live-layout.json +388 -388
  41. package/lib/motion/shotcraft/upstream/demos/camera/basic-3d-scene/Basic3DScene.tsx +250 -250
  42. package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashImpactReal.tsx +305 -305
  43. package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashZoomReal.tsx +246 -246
  44. package/lib/motion/shotcraft/upstream/demos/camera/cursor-flyover/CursorFlyover.tsx +390 -390
  45. package/lib/motion/shotcraft/upstream/demos/camera/depth-layer-moves/MultiplaneReal.tsx +138 -138
  46. package/lib/motion/shotcraft/upstream/demos/camera/graze-face-tour/GrazeFaceTour.tsx +542 -542
  47. package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/OverheadTabletopDrop.tsx +315 -315
  48. package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/TiltReveal.tsx +299 -299
  49. package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/DroneDiveLanding.tsx +173 -173
  50. package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/ExplodedView.tsx +348 -348
  51. package/lib/motion/shotcraft/upstream/demos/camera/steep-tilt-glide/SteepTiltGlide.tsx +366 -366
  52. package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/BulletTimeFreezeOrbit.tsx +279 -279
  53. package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/PullBackIsolation.tsx +184 -184
  54. package/lib/motion/shotcraft/upstream/demos/camera/terminal-3d/Terminal3D.tsx +390 -390
  55. package/lib/motion/shotcraft/upstream/demos/data/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +155 -155
  56. package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/AxisRescaleShockV2.tsx +303 -303
  57. package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/OscilloscopeStreamV2.tsx +290 -290
  58. package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/UnitDotSwarmRegroupV2.tsx +278 -278
  59. package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/NeedleSweepSelftest.tsx +307 -307
  60. package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/TapeScrollFixedPointer.tsx +215 -215
  61. package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/BrakeReticleLock.tsx +299 -299
  62. package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/ChangelogScrollBrake.tsx +232 -232
  63. package/lib/motion/shotcraft/upstream/demos/data/timeline-travel/TimelineTravel.tsx +290 -290
  64. package/lib/motion/shotcraft/upstream/demos/effects/assemble-then-type-flyin/AssembleThenTypeFlyin.tsx +273 -273
  65. package/lib/motion/shotcraft/upstream/demos/effects/aurora-bloom-bg-flip/AuroraBloomBgFlip.tsx +167 -167
  66. package/lib/motion/shotcraft/upstream/demos/effects/brand-frame-snap/BrandFrameSnap.tsx +536 -536
  67. package/lib/motion/shotcraft/upstream/demos/effects/fui-hud-moves/ReticleLockOn.tsx +164 -164
  68. package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/FlylineArc.tsx +175 -175
  69. package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/GlowOrbAmbient.tsx +197 -197
  70. package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/OrbFlylineRelay.tsx +241 -241
  71. package/lib/motion/shotcraft/upstream/demos/effects/icon-performance-moves/AttentionBounce.tsx +279 -279
  72. package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/AnimeImpact.tsx +230 -230
  73. package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/HitCounter.tsx +345 -345
  74. package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SheenSweepRetry.tsx +275 -275
  75. package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SpotlightSweepReveal.tsx +229 -229
  76. package/lib/motion/shotcraft/upstream/demos/effects/radial-ripple-phone-chips/RadialRipplePhoneChips.tsx +312 -312
  77. package/lib/motion/shotcraft/upstream/demos/effects/riso-print-hits/RisoMisregistrationHit.tsx +222 -222
  78. package/lib/motion/shotcraft/upstream/demos/effects/scan-bracket-sweep/ScanBracketSweep.tsx +295 -295
  79. package/lib/motion/shotcraft/upstream/demos/effects/scanline-annotate-focus/ScanlineAnnotateFocus.tsx +329 -329
  80. package/lib/motion/shotcraft/upstream/demos/effects/scanline-assemble-flyin/ScanlineAssembleFlyin.tsx +315 -315
  81. package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ImpactBurstKit.tsx +264 -264
  82. package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/KanadaPerspectiveSnap.tsx +260 -260
  83. package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ScoreSlam.tsx +263 -263
  84. package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/CornerSpotlightReveal.tsx +123 -123
  85. package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +187 -187
  86. package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/SlideSpotlightPan.tsx +175 -175
  87. package/lib/motion/shotcraft/upstream/demos/interaction/autolayout-gap-dial/AutolayoutGapDial.tsx +305 -305
  88. package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/DiagramCascadeBuild.tsx +350 -350
  89. package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +352 -352
  90. package/lib/motion/shotcraft/upstream/demos/interaction/chip-grid-single-select-blackout/ChipGridSingleSelectBlackout.tsx +218 -218
  91. package/lib/motion/shotcraft/upstream/demos/interaction/collab-cursor-moves/CursorCastEnsemble.tsx +297 -297
  92. package/lib/motion/shotcraft/upstream/demos/interaction/glass-pill-dictation-typing/GlassPillDictationTyping.tsx +157 -157
  93. package/lib/motion/shotcraft/upstream/demos/interaction/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +218 -218
  94. package/lib/motion/shotcraft/upstream/demos/interaction/picker-carousel-feature-cycle/PickerCarouselFeatureCycle.tsx +202 -202
  95. package/lib/motion/shotcraft/upstream/demos/interaction/segmented-thumb-hero/SegmentedThumbHero.tsx +265 -265
  96. package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/PaletteThemeRipple.tsx +457 -457
  97. package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/ThemeSweepToggle.tsx +446 -446
  98. package/lib/motion/shotcraft/upstream/demos/interaction/type-and-filter/TypeAndFilter.tsx +249 -249
  99. package/lib/motion/shotcraft/upstream/demos/interaction/voice-waveform-live/VoiceWaveformLive.tsx +278 -278
  100. package/lib/motion/shotcraft/upstream/demos/opening/crane-rise-reveal/CraneRiseReveal.tsx +332 -332
  101. package/lib/motion/shotcraft/upstream/demos/opening/dataviz-landscape-open/DatavizLandscapeOpen.tsx +358 -358
  102. package/lib/motion/shotcraft/upstream/demos/opening/fracture/Fracture.tsx +201 -201
  103. package/lib/motion/shotcraft/upstream/demos/opening/icon-field-colorize/IconFieldColorize.tsx +200 -200
  104. package/lib/motion/shotcraft/upstream/demos/opening/letterspace-materialize/LetterspaceMaterialize.tsx +208 -208
  105. package/lib/motion/shotcraft/upstream/demos/opening/magician-card-flourish/MagicianCardFlourish.tsx +341 -341
  106. package/lib/motion/shotcraft/upstream/demos/opening/orbit-ring-title-open/OrbitRingTitleOpen.tsx +389 -389
  107. package/lib/motion/shotcraft/upstream/demos/opening/spotlight-hero-card/SpotlightHeroCard.tsx +293 -293
  108. package/lib/motion/shotcraft/upstream/demos/opening/stroke-segment-build/StrokeSegmentBuild.tsx +183 -183
  109. package/lib/motion/shotcraft/upstream/demos/opening/text-as-mask/TextAsMask.tsx +245 -245
  110. package/lib/motion/shotcraft/upstream/demos/outro/grain-dissolve/GrainDissolve.tsx +222 -222
  111. package/lib/motion/shotcraft/upstream/demos/outro/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx +223 -223
  112. package/lib/motion/shotcraft/upstream/demos/outro/neon-triple-marquee/NeonTripleMarquee.tsx +217 -217
  113. package/lib/motion/shotcraft/upstream/demos/outro/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx +343 -343
  114. package/lib/motion/shotcraft/upstream/demos/outro/ui-strip-away-outro/UiStripAwayOutro.tsx +357 -357
  115. package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/IconFlipBloomLogo.tsx +187 -187
  116. package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/InputMorphsIntoLogo.tsx +333 -333
  117. package/lib/motion/shotcraft/upstream/demos/rhythm/beat-cut-moves/PaparazziFlash.tsx +274 -274
  118. package/lib/motion/shotcraft/upstream/demos/rhythm/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +270 -270
  119. package/lib/motion/shotcraft/upstream/demos/rhythm/panel-grid-moves/ComicPanelSplit.tsx +430 -430
  120. package/lib/motion/shotcraft/upstream/demos/rhythm/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx +252 -252
  121. package/lib/motion/shotcraft/upstream/demos/rhythm/rhythm-interrupt-moves/JumpCutPunchIn.tsx +106 -106
  122. package/lib/motion/shotcraft/upstream/demos/rhythm/sakuga-timing-shift/SakugaTimingShift.tsx +288 -288
  123. package/lib/motion/shotcraft/upstream/demos/rhythm/speed-ramp-freeze/FreezeAnnotateReal.tsx +362 -362
  124. package/lib/motion/shotcraft/upstream/demos/rhythm/trailer-grammar-moves/TrailerBumper.tsx +168 -168
  125. package/lib/motion/shotcraft/upstream/demos/transition/bottom-push-stack-wipe/BottomPushStackWipe.tsx +310 -310
  126. package/lib/motion/shotcraft/upstream/demos/transition/card-flip-reveal/CardFlipReveal.tsx +261 -261
  127. package/lib/motion/shotcraft/upstream/demos/transition/card-flock-tumble/CardFlockTumble.tsx +459 -459
  128. package/lib/motion/shotcraft/upstream/demos/transition/circle-match-iris/CircleMatchIris.tsx +294 -294
  129. package/lib/motion/shotcraft/upstream/demos/transition/gradient-transition/GradientTransition.tsx +161 -161
  130. package/lib/motion/shotcraft/upstream/demos/transition/line-carry-transition/LineCarryTransition.tsx +248 -248
  131. package/lib/motion/shotcraft/upstream/demos/transition/mosaic-reframe/MosaicReframe.tsx +359 -359
  132. package/lib/motion/shotcraft/upstream/demos/transition/page-turn-transitions/BarnDoorSplit.tsx +227 -227
  133. package/lib/motion/shotcraft/upstream/demos/transition/print-texture-transitions/InkBleedReveal.tsx +162 -162
  134. package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/PortalWipeV2.tsx +248 -248
  135. package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/WhipBrakeReal.tsx +186 -186
  136. package/lib/motion/shotcraft/upstream/demos/transition/tear-streak-transitions/GlitchDisplace.tsx +355 -355
  137. package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/InvisibleCut.tsx +272 -272
  138. package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/LightLeakBurn.tsx +262 -262
  139. package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/VersusSlam.tsx +217 -217
  140. package/lib/motion/shotcraft/upstream/demos/transition/transition-travel/LetterformZoom.tsx +285 -285
  141. package/lib/motion/shotcraft/upstream/demos/transition/white-flash-logo-simplify-cut/WhiteFlashLogoSimplifyCut.tsx +205 -205
  142. package/lib/motion/shotcraft/upstream/demos/transition/wipe-transitions/BlindsSlice.tsx +178 -178
  143. package/lib/motion/shotcraft/upstream/demos/typography/blur-slide/BlurSlide.tsx +147 -147
  144. package/lib/motion/shotcraft/upstream/demos/typography/brace-expand/BraceExpand.tsx +143 -143
  145. package/lib/motion/shotcraft/upstream/demos/typography/brand-ink-open/BrandInkOpen.tsx +134 -134
  146. package/lib/motion/shotcraft/upstream/demos/typography/countdown-arc-scatter/CountdownArcScatter.tsx +217 -217
  147. package/lib/motion/shotcraft/upstream/demos/typography/flying-words/FlyingWords.tsx +198 -198
  148. package/lib/motion/shotcraft/upstream/demos/typography/glitch-cycle/GlitchCycle.tsx +221 -221
  149. package/lib/motion/shotcraft/upstream/demos/typography/gradient-word-sweep/GradientWordSweep.tsx +312 -312
  150. package/lib/motion/shotcraft/upstream/demos/typography/lead-word-zoom-assemble/LeadWordZoomAssemble.tsx +261 -261
  151. package/lib/motion/shotcraft/upstream/demos/typography/marker-underline-title/MarkerUnderlineTitle.tsx +121 -121
  152. package/lib/motion/shotcraft/upstream/demos/typography/outline-word-fill/OutlineWordFill.tsx +153 -153
  153. package/lib/motion/shotcraft/upstream/demos/typography/paper-title-card/PaperTitleCard.tsx +179 -179
  154. package/lib/motion/shotcraft/upstream/demos/typography/pill-chip-slot-cycle-handled/PillChipSlotCycleHandled.tsx +140 -140
  155. package/lib/motion/shotcraft/upstream/demos/typography/pill-slot-cycle/PillSlotCycle.tsx +309 -309
  156. package/lib/motion/shotcraft/upstream/demos/typography/text-column-converge/TextColumnConverge.tsx +191 -191
  157. package/lib/motion/shotcraft/upstream/demos/typography/title-demote-to-label/TitleDemoteToLabel.tsx +292 -292
  158. package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/LetterformDriftAssembly.tsx +135 -135
  159. package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/SplitTextStagger.tsx +124 -124
  160. package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/TextOnPath.tsx +255 -255
  161. package/lib/motion/shotcraft/upstream/demos/typography/type-entrance-moves/LetterDropPhysics.tsx +173 -173
  162. package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/FontWeightPump.tsx +225 -225
  163. package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/KaraokeFillSync.tsx +141 -141
  164. package/lib/motion/shotcraft/upstream/demos/typography/typewriter-moves/TypewriterErrorRetype.tsx +137 -137
  165. package/lib/motion/shotcraft/upstream/demos/typography/vertical-word-roll-blur-cycle/VerticalWordRollBlurCycle.tsx +147 -147
  166. package/lib/motion/shotcraft/upstream/demos/typography/word-relay-filmstrip/WordRelayFilmstrip.tsx +409 -409
  167. package/lib/motion/shotcraft/upstream/demos/typography/word-relay-geometry/WordRelayGeometry.tsx +280 -280
  168. package/lib/motion/shotcraft/upstream/demos/ui-entrance/avatar-bracket-carousel/AvatarBracketCarousel.tsx +271 -271
  169. package/lib/motion/shotcraft/upstream/demos/ui-entrance/bezier-source-converge-merge/BezierSourceConvergeMerge.tsx +385 -385
  170. package/lib/motion/shotcraft/upstream/demos/ui-entrance/card-stack/CardStack.tsx +312 -312
  171. package/lib/motion/shotcraft/upstream/demos/ui-entrance/carousel-3d/Carousel3D.tsx +303 -303
  172. package/lib/motion/shotcraft/upstream/demos/ui-entrance/clipcard-looping/ClipCardLooping.tsx +77 -77
  173. package/lib/motion/shotcraft/upstream/demos/ui-entrance/cloner-depth-echo/ClonerDepthEcho.tsx +311 -311
  174. package/lib/motion/shotcraft/upstream/demos/ui-entrance/deck-deal-flyin/DeckDealFlyin.tsx +307 -307
  175. package/lib/motion/shotcraft/upstream/demos/ui-entrance/doc-park-left-pill-deal/DocParkLeftPillDeal.tsx +349 -349
  176. package/lib/motion/shotcraft/upstream/demos/ui-entrance/document-typewriter-reveal/DocumentTypewriterReveal.tsx +255 -255
  177. package/lib/motion/shotcraft/upstream/demos/ui-entrance/draw-svg-trace/DrawSvgTrace.tsx +244 -244
  178. package/lib/motion/shotcraft/upstream/demos/ui-entrance/element-body-moves/ContactShadowLift.tsx +217 -217
  179. package/lib/motion/shotcraft/upstream/demos/ui-entrance/integration-hub-map/IntegrationHubMap.tsx +652 -652
  180. package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-reveal/ListReveal.tsx +153 -153
  181. package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-stack-press/ListStackPress.tsx +238 -238
  182. package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-forerun/NeonFrameForerun.tsx +324 -324
  183. package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +354 -354
  184. package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/PageWaterfallWall.tsx +101 -101
  185. package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/VerticalTicker.tsx +129 -129
  186. package/lib/motion/shotcraft/upstream/demos/ui-entrance/product-card-progressive-assemble/ProductCardProgressiveAssemble.tsx +297 -297
  187. package/lib/motion/shotcraft/upstream/demos/ui-entrance/radial-wave/RadialWave.tsx +57 -57
  188. package/lib/motion/shotcraft/upstream/demos/ui-entrance/research-card-stack-scroll/ResearchCardStackScroll.tsx +155 -155
  189. package/lib/motion/shotcraft/upstream/demos/ui-entrance/row-embed/RowEmbed.tsx +175 -175
  190. package/lib/motion/shotcraft/upstream/demos/ui-entrance/value-stagger-gradient/ValueStaggerGradient.tsx +153 -153
  191. package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/BentoLightUp.tsx +146 -146
  192. package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/WireframeDrawOn.tsx +226 -226
  193. package/lib/motion/shotcraft/upstream/gallery/api/library.json +1 -1
  194. package/lib/motion/shotcraft/upstream/references/aesthetic-rules.md +193 -193
  195. package/lib/motion/shotcraft/upstream/references/final-review.md +121 -121
  196. package/lib/motion/shotcraft/upstream/references/guided-free-creation.md +199 -199
  197. package/lib/motion/shotcraft/upstream/references/jianying-export.md +183 -183
  198. package/lib/motion/shotcraft/upstream/references/music-beat-sync.md +257 -257
  199. package/lib/motion/shotcraft/upstream/references/pipeline.md +382 -382
  200. package/lib/motion/shotcraft/upstream/references/publish-upload-post.md +111 -111
  201. package/lib/motion/shotcraft/upstream/references/sequences/promo-energy-arc.md +50 -50
  202. package/lib/motion/shotcraft/upstream/references/sfx-sourcing.md +95 -95
  203. package/lib/motion/shotcraft/upstream/references/shots/camera/basic-3d-scene.md +41 -41
  204. package/lib/motion/shotcraft/upstream/references/shots/camera/crash-zoom-punch.md +52 -52
  205. package/lib/motion/shotcraft/upstream/references/shots/camera/cursor-flyover.md +39 -39
  206. package/lib/motion/shotcraft/upstream/references/shots/camera/depth-layer-moves.md +39 -39
  207. package/lib/motion/shotcraft/upstream/references/shots/camera/graze-face-tour.md +57 -57
  208. package/lib/motion/shotcraft/upstream/references/shots/camera/overhead-camera-moves.md +51 -51
  209. package/lib/motion/shotcraft/upstream/references/shots/camera/space-camera-moves.md +46 -46
  210. package/lib/motion/shotcraft/upstream/references/shots/camera/steep-tilt-glide.md +52 -52
  211. package/lib/motion/shotcraft/upstream/references/shots/camera/tension-camera-moves.md +43 -43
  212. package/lib/motion/shotcraft/upstream/references/shots/camera/terminal-3d.md +42 -42
  213. package/lib/motion/shotcraft/upstream/references/shots/data/before-after-slider-scrub.md +48 -48
  214. package/lib/motion/shotcraft/upstream/references/shots/data/chart-live-moves.md +52 -52
  215. package/lib/motion/shotcraft/upstream/references/shots/data/gauge-readout-moves.md +45 -45
  216. package/lib/motion/shotcraft/upstream/references/shots/data/scroll-brake-moves.md +46 -46
  217. package/lib/motion/shotcraft/upstream/references/shots/data/timeline-travel.md +44 -44
  218. package/lib/motion/shotcraft/upstream/references/shots/effects/assemble-then-type-flyin.md +63 -63
  219. package/lib/motion/shotcraft/upstream/references/shots/effects/aurora-bloom-bg-flip.md +54 -54
  220. package/lib/motion/shotcraft/upstream/references/shots/effects/brand-frame-snap.md +58 -58
  221. package/lib/motion/shotcraft/upstream/references/shots/effects/fui-hud-moves.md +35 -35
  222. package/lib/motion/shotcraft/upstream/references/shots/effects/glow-flyline-moves.md +53 -53
  223. package/lib/motion/shotcraft/upstream/references/shots/effects/icon-performance-moves.md +42 -42
  224. package/lib/motion/shotcraft/upstream/references/shots/effects/impact-feedback.md +50 -50
  225. package/lib/motion/shotcraft/upstream/references/shots/effects/light-play-moves.md +46 -46
  226. package/lib/motion/shotcraft/upstream/references/shots/effects/radial-ripple-phone-chips.md +56 -56
  227. package/lib/motion/shotcraft/upstream/references/shots/effects/riso-print-hits.md +49 -49
  228. package/lib/motion/shotcraft/upstream/references/shots/effects/scan-bracket-sweep.md +50 -50
  229. package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-annotate-focus.md +53 -53
  230. package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-assemble-flyin.md +53 -53
  231. package/lib/motion/shotcraft/upstream/references/shots/effects/slam-entrance-moves.md +55 -55
  232. package/lib/motion/shotcraft/upstream/references/shots/effects/spotlight-sweep-moves.md +52 -52
  233. package/lib/motion/shotcraft/upstream/references/shots/interaction/autolayout-gap-dial.md +60 -60
  234. package/lib/motion/shotcraft/upstream/references/shots/interaction/canvas-materialize-moves.md +57 -57
  235. package/lib/motion/shotcraft/upstream/references/shots/interaction/chip-grid-single-select-blackout.md +51 -51
  236. package/lib/motion/shotcraft/upstream/references/shots/interaction/collab-cursor-moves.md +41 -41
  237. package/lib/motion/shotcraft/upstream/references/shots/interaction/glass-pill-dictation-typing.md +53 -53
  238. package/lib/motion/shotcraft/upstream/references/shots/interaction/hashtag-to-pill-materialize.md +60 -60
  239. package/lib/motion/shotcraft/upstream/references/shots/interaction/picker-carousel-feature-cycle.md +55 -55
  240. package/lib/motion/shotcraft/upstream/references/shots/interaction/segmented-thumb-hero.md +57 -57
  241. package/lib/motion/shotcraft/upstream/references/shots/interaction/theme-switch-moves.md +47 -47
  242. package/lib/motion/shotcraft/upstream/references/shots/interaction/type-and-filter.md +37 -37
  243. package/lib/motion/shotcraft/upstream/references/shots/interaction/voice-waveform-live.md +54 -54
  244. package/lib/motion/shotcraft/upstream/references/shots/opening/brand-ink-open.md +36 -36
  245. package/lib/motion/shotcraft/upstream/references/shots/opening/crane-rise-reveal.md +56 -56
  246. package/lib/motion/shotcraft/upstream/references/shots/opening/dataviz-landscape-open.md +56 -56
  247. package/lib/motion/shotcraft/upstream/references/shots/opening/fracture.md +40 -40
  248. package/lib/motion/shotcraft/upstream/references/shots/opening/icon-field-colorize.md +60 -60
  249. package/lib/motion/shotcraft/upstream/references/shots/opening/letterspace-materialize.md +57 -57
  250. package/lib/motion/shotcraft/upstream/references/shots/opening/magician-card-flourish.md +73 -73
  251. package/lib/motion/shotcraft/upstream/references/shots/opening/orbit-ring-title-open.md +87 -87
  252. package/lib/motion/shotcraft/upstream/references/shots/opening/spotlight-hero-card.md +55 -55
  253. package/lib/motion/shotcraft/upstream/references/shots/opening/stroke-segment-build.md +50 -50
  254. package/lib/motion/shotcraft/upstream/references/shots/opening/text-as-mask.md +59 -59
  255. package/lib/motion/shotcraft/upstream/references/shots/outro/grain-dissolve.md +38 -38
  256. package/lib/motion/shotcraft/upstream/references/shots/outro/logo-shrink-wordmark-lockup.md +38 -38
  257. package/lib/motion/shotcraft/upstream/references/shots/outro/neon-triple-marquee.md +59 -59
  258. package/lib/motion/shotcraft/upstream/references/shots/outro/outro-group-photo-launch.md +39 -39
  259. package/lib/motion/shotcraft/upstream/references/shots/outro/ui-strip-away-outro.md +61 -61
  260. package/lib/motion/shotcraft/upstream/references/shots/outro/ui-to-brand-morph.md +52 -52
  261. package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-cut-moves.md +50 -50
  262. package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-step-list-theme-cycle.md +66 -66
  263. package/lib/motion/shotcraft/upstream/references/shots/rhythm/panel-grid-moves.md +43 -43
  264. package/lib/motion/shotcraft/upstream/references/shots/rhythm/quad-split-parallel-scenes.md +38 -38
  265. package/lib/motion/shotcraft/upstream/references/shots/rhythm/rhythm-interrupt-moves.md +38 -38
  266. package/lib/motion/shotcraft/upstream/references/shots/rhythm/sakuga-timing-shift.md +56 -56
  267. package/lib/motion/shotcraft/upstream/references/shots/rhythm/speed-ramp-freeze.md +44 -44
  268. package/lib/motion/shotcraft/upstream/references/shots/rhythm/trailer-grammar-moves.md +38 -38
  269. package/lib/motion/shotcraft/upstream/references/shots/transition/bottom-push-stack-wipe.md +63 -63
  270. package/lib/motion/shotcraft/upstream/references/shots/transition/card-flip-reveal.md +57 -57
  271. package/lib/motion/shotcraft/upstream/references/shots/transition/card-flock-tumble.md +63 -63
  272. package/lib/motion/shotcraft/upstream/references/shots/transition/circle-match-iris.md +58 -58
  273. package/lib/motion/shotcraft/upstream/references/shots/transition/gradient-transition.md +45 -45
  274. package/lib/motion/shotcraft/upstream/references/shots/transition/line-carry-transition.md +55 -55
  275. package/lib/motion/shotcraft/upstream/references/shots/transition/mosaic-reframe.md +49 -49
  276. package/lib/motion/shotcraft/upstream/references/shots/transition/page-turn-transitions.md +42 -42
  277. package/lib/motion/shotcraft/upstream/references/shots/transition/print-texture-transitions.md +42 -42
  278. package/lib/motion/shotcraft/upstream/references/shots/transition/shot-transitions.md +45 -45
  279. package/lib/motion/shotcraft/upstream/references/shots/transition/tear-streak-transitions.md +48 -48
  280. package/lib/motion/shotcraft/upstream/references/shots/transition/transition-hidden-cut.md +55 -55
  281. package/lib/motion/shotcraft/upstream/references/shots/transition/transition-travel.md +43 -43
  282. package/lib/motion/shotcraft/upstream/references/shots/transition/white-flash-logo-simplify-cut.md +41 -41
  283. package/lib/motion/shotcraft/upstream/references/shots/transition/wipe-transitions.md +42 -42
  284. package/lib/motion/shotcraft/upstream/references/shots/typography/blur-slide.md +59 -59
  285. package/lib/motion/shotcraft/upstream/references/shots/typography/brace-expand.md +55 -55
  286. package/lib/motion/shotcraft/upstream/references/shots/typography/countdown-arc-scatter.md +65 -65
  287. package/lib/motion/shotcraft/upstream/references/shots/typography/document-typewriter-reveal.md +42 -42
  288. package/lib/motion/shotcraft/upstream/references/shots/typography/flying-words.md +64 -64
  289. package/lib/motion/shotcraft/upstream/references/shots/typography/glitch-cycle.md +64 -64
  290. package/lib/motion/shotcraft/upstream/references/shots/typography/gradient-word-sweep.md +54 -54
  291. package/lib/motion/shotcraft/upstream/references/shots/typography/lead-word-zoom-assemble.md +91 -91
  292. package/lib/motion/shotcraft/upstream/references/shots/typography/marker-underline-title.md +51 -51
  293. package/lib/motion/shotcraft/upstream/references/shots/typography/outline-word-fill.md +66 -66
  294. package/lib/motion/shotcraft/upstream/references/shots/typography/paper-title-card.md +38 -38
  295. package/lib/motion/shotcraft/upstream/references/shots/typography/pill-chip-slot-cycle-handled.md +66 -66
  296. package/lib/motion/shotcraft/upstream/references/shots/typography/pill-slot-cycle.md +58 -58
  297. package/lib/motion/shotcraft/upstream/references/shots/typography/text-column-converge.md +61 -61
  298. package/lib/motion/shotcraft/upstream/references/shots/typography/title-demote-to-label.md +64 -64
  299. package/lib/motion/shotcraft/upstream/references/shots/typography/type-assembly-moves.md +45 -45
  300. package/lib/motion/shotcraft/upstream/references/shots/typography/type-entrance-moves.md +41 -41
  301. package/lib/motion/shotcraft/upstream/references/shots/typography/type-rhythm-sync.md +51 -51
  302. package/lib/motion/shotcraft/upstream/references/shots/typography/typewriter-moves.md +42 -42
  303. package/lib/motion/shotcraft/upstream/references/shots/typography/vertical-word-roll-blur-cycle.md +63 -63
  304. package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-filmstrip.md +57 -57
  305. package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-geometry.md +75 -75
  306. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/avatar-bracket-carousel.md +59 -59
  307. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/bezier-source-converge-merge.md +67 -67
  308. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/card-stack.md +60 -60
  309. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/carousel-3d.md +66 -66
  310. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/cloner-depth-echo.md +40 -40
  311. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/deck-deal-flyin.md +45 -45
  312. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/doc-park-left-pill-deal.md +62 -62
  313. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/draw-svg-trace.md +55 -55
  314. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/element-body-moves.md +37 -37
  315. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/integration-hub-map.md +55 -55
  316. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-reveal.md +50 -50
  317. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-stack-press.md +43 -43
  318. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-forerun.md +55 -55
  319. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-orbit-drop.md +51 -51
  320. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/page-waterfall-wall.md +51 -51
  321. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/product-card-progressive-assemble.md +56 -56
  322. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/radial-wave.md +49 -49
  323. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/research-card-stack-scroll.md +57 -57
  324. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/row-embed.md +36 -36
  325. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/value-stagger-gradient.md +64 -64
  326. package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/wall-reveal-moves.md +47 -47
  327. package/lib/motion/shotcraft/upstream/references/sound-design.md +170 -170
  328. package/lib/motion/shotcraft/upstream/references/workbench.md +157 -157
  329. package/lib/motion/shotcraft/upstream/template/TEMPLATE.md +103 -103
  330. package/lib/motion/shotcraft/upstream/template/THEMES.md +44 -44
  331. package/lib/motion/shotcraft/upstream/template/package.json +20 -20
  332. package/lib/motion/shotcraft/upstream/template/remotion.config.ts +6 -6
  333. package/lib/motion/shotcraft/upstream/template/src/Root.tsx +17 -17
  334. package/lib/motion/shotcraft/upstream/template/src/aifl/Caption.tsx +65 -65
  335. package/lib/motion/shotcraft/upstream/template/src/aifl/DigitRoll.tsx +48 -48
  336. package/lib/motion/shotcraft/upstream/template/src/aifl/FlashCut.tsx +24 -24
  337. package/lib/motion/shotcraft/upstream/template/src/aifl/Main.tsx +192 -192
  338. package/lib/motion/shotcraft/upstream/template/src/aifl/PaperTitleCard.tsx +111 -111
  339. package/lib/motion/shotcraft/upstream/template/src/aifl/live/PageCam.tsx +150 -150
  340. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneDetail.tsx +158 -158
  341. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneFlyIn.tsx +468 -468
  342. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOpen.tsx +552 -552
  343. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOutroLive.tsx +411 -411
  344. package/lib/motion/shotcraft/upstream/template/src/aifl/live/ScenePapers.tsx +200 -200
  345. package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneWbr.tsx +324 -324
  346. package/lib/motion/shotcraft/upstream/template/src/aifl/live-layout.json +388 -388
  347. package/lib/motion/shotcraft/upstream/template/src/index.ts +4 -4
  348. package/lib/motion/shotcraft/upstream/template/src/themes/ThemedFilm.tsx +7 -7
  349. package/lib/motion/shotcraft/upstream/template/src/themes/manifest.tsx +68 -68
  350. package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.json +1 -1
  351. package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.ts +24 -24
  352. package/lib/motion/shotcraft/upstream/template/src/themes/palettes.json +74 -74
  353. package/lib/motion/shotcraft/upstream/template/src/themes/visual-theme.tsx +91 -91
  354. package/lib/motion/shotcraft/upstream/template/src/workbench.ts +213 -213
  355. package/lib/motion/shotcraft/upstream/template/tsconfig.json +15 -15
  356. package/lib/motion/style-frames.js +306 -306
  357. package/lib/motion/sync.js +214 -214
  358. package/lib/motion-project.js +105 -105
  359. package/lib/motion-render-worker.js +174 -174
  360. package/lib/routing/router.js +222 -222
  361. package/lib/routing/vendor/README.md +96 -96
  362. package/lib/routing/vendor/libavoid-routing.js +753 -753
  363. package/lib/routing/vendor/libavoid.min.js +59 -59
  364. package/lib/video-trace-pool.js +128 -128
  365. package/package.json +1 -1
  366. package/LICENSE +0 -4175
@@ -1,147 +1,147 @@
1
- // blur-slide — Blur Slide 逐词入场(第二轮重设计:编辑排版海报)
2
- // 手法不变:标题逐词入场,y 位移 + blur + opacity 三通道共用同一个进度 p、同一条缓动同步收敛
3
- // ——词是"从虚焦里浮出来",不是"滑进来顺便淡一下";副标题在标题收完前错峰跟进,重叠读作一句话。
4
- //
5
- // 设计决定
6
- // - look:paper(暖白纸 · 墨 · 朱红)。编辑排版语境:杂志刊头 + 大衬线标题 + 无衬线副标,
7
- // 左对齐在 168px 安全边距的网格上,右侧留白给标题的尾巴呼吸。
8
- // - 层级:刊头 24px 全大写(纹理级)→ 栏目眉题 30px 朱红全大写 → 主标题 170px 衬线两行 →
9
- // 副标题 46px 无衬线。主副字号差 3.7 倍,字重 400 衬线对 400 无衬线靠字体家族区分。
10
- // - 强调色只给一个词:第二行的斜体 "cinematic." 是朱红,它最后落定、入场窗更长(主角)。
11
- // - 文案:主 5 词 "Make every launch / feel cinematic."、副 9 词(video-shotcraft 的宣传句);刊头是 video-shotcraft 字标。
12
- //
13
- // 时间表(30fps,120f)
14
- // 0–24 刊头与发丝线已在画面(首帧不空),发丝线从左向右画出(snappy 24f)
15
- // 4–22 栏目眉题 blur-slide 入场(与手法同族,做"预备")
16
- // 10–40 主标题第一行 3 词,词间 4f,每词 22f
17
- // 26–58 第二行:先停 6f 换气,"feel" 22f、"cinematic." 30f(最后落定,字距同 p 收紧)
18
- // 34–80 副标题 9 词,词间 2.4f、每词 20f、位移/模糊更小——层级靠幅度不靠时长;与主标题重叠 24f
19
- // 72–98 刊脚发丝线从右向左画出 + 页码淡入(hold 段的余波,版面闭合成完整一页)
20
- // 80–119 落定 hold 40f:整组极缓推近 1→1.03(smooth,起止零速度)+ 纸面主光极缓呼吸
21
- // 曲线:三通道共用 EASE.out(quint-out 级),起手快、尾巴长,词"浮"上来而不是"弹"上来。
22
- import React from 'react';
23
- import { useCurrentFrame } from 'remotion';
24
- import { LOOKS, SERIF, Stage, alpha } from '../../_fixtures/Look';
25
- import { EASE, FONT, ramp } from '../../_fixtures/Polish';
26
- import { ShotcraftWordmark } from '../../_fixtures/Brand';
27
-
28
- export const BLUR_SLIDE_DURATION = 120; // 4000ms @30fps
29
-
30
- const L = LOOKS.paper;
31
- const LEFT = 168; // 左侧安全边距 / 网格起点
32
-
33
- // 单词:start 起始帧、dur 入场时长、dy 位移(px)、blur 最大模糊(px)。
34
- // opacity / translateY / blur(及可选字距)全部绑同一个 p —— 本卡的核心,不可拆成多条缓动。
35
- type Word = { text: string; start: number; dur: number; style?: React.CSSProperties; track?: [number, number] };
36
-
37
- const Words: React.FC<{ words: Word[]; dy: number; blur: number; gap: string; style: React.CSSProperties }> = ({ words, dy, blur, gap, style }) => {
38
- const frame = useCurrentFrame();
39
- return (
40
- <div style={{ display: 'flex', alignItems: 'baseline', gap, whiteSpace: 'nowrap', ...style }}>
41
- {words.map((w, i) => {
42
- const p = ramp(frame, w.start, w.dur, EASE.out);
43
- return (
44
- <span
45
- key={i}
46
- style={{
47
- display: 'inline-block',
48
- opacity: p,
49
- transform: `translateY(${((1 - p) * dy).toFixed(2)}px)`,
50
- filter: p >= 0.999 ? undefined : `blur(${((1 - p) * blur).toFixed(2)}px)`,
51
- letterSpacing: w.track ? `${(w.track[0] + (w.track[1] - w.track[0]) * p).toFixed(4)}em` : undefined,
52
- ...w.style,
53
- }}
54
- >
55
- {w.text}
56
- </span>
57
- );
58
- })}
59
- </div>
60
- );
61
- };
62
-
63
- // 主标题:第一行 3 词等距 4f;第二行先停 6f 换气,主角词入场窗更长、字距同 p 由松到紧
64
- const H1_A: Word[] = ['Make', 'every', 'launch'].map((text, i) => ({ text, start: 10 + i * 4, dur: 22 }));
65
- const H1_B: Word[] = [
66
- { text: 'feel', start: 26, dur: 22 },
67
- {
68
- text: 'cinematic.', start: 30, dur: 30, track: [0.03, -0.025],
69
- style: { fontStyle: 'italic', color: L.accent },
70
- },
71
- ];
72
- // 副标题:9 词,词间 2.4f(词数多于原稿,gap 按卡片规则压密)
73
- const H2: Word[] = 'Shot recipes and camera moves, crafted by your agent.'.split(' ').map((text, i) => ({ text, start: 34 + i * 2.4, dur: 20 }));
74
-
75
- export const BlurSlide: React.FC = () => {
76
- const frame = useCurrentFrame();
77
- // 整组极缓推近:以文字块左缘为原点,全程 smooth,尾段速度归零
78
- const push = 1 + 0.03 * ramp(frame, 0, 119, EASE.smooth);
79
- // 刊头发丝线:从左向右画出
80
- const rule = ramp(frame, 0, 24, EASE.snappy);
81
- // 栏目眉题:同族 blur-slide,单元 = 整行
82
- const kick = ramp(frame, 4, 18, EASE.out);
83
- // 后景刊号:从虚焦里慢慢显影(比标题慢得多,只做空间层次)
84
- const folio = ramp(frame, 0, 48, EASE.out);
85
- // 刊脚:副标题收尾时(72f)起画,26f snappy
86
- const foot = ramp(frame, 72, 26, EASE.snappy);
87
- const headline: React.CSSProperties = {
88
- fontFamily: SERIF, fontSize: 170, fontWeight: 400, lineHeight: 1, letterSpacing: '-0.035em', color: L.ink,
89
- };
90
- return (
91
- <Stage look={L} keyLight={{ x: 0.3, y: 0.18 }} fill={null} breathe={0.6} grain={0.06} vignette={0.1}>
92
- {/* 纸面右下一抹朱红余温(极淡),让暖白不是死平 */}
93
- <div style={{ position: 'absolute', inset: 0, background: `radial-gradient(ellipse 40% 50% at 96% 100%, ${alpha(L.accent, 0.06)}, ${alpha(L.accent, 0)} 70%)` }} />
94
-
95
- {/* 后景:刊号大数字(5% 墨色),比文字层推得更慢且反向漂移 → 前后景视差 */}
96
- <div
97
- style={{
98
- position: 'absolute', right: 120, top: 150, fontFamily: SERIF, fontSize: 760, fontWeight: 400, lineHeight: 1, letterSpacing: '-0.06em',
99
- color: alpha(L.ink, 0.045 * folio), filter: folio >= 0.999 ? undefined : `blur(${((1 - folio) * 24).toFixed(2)}px)`,
100
- transform: `translateX(${(-24 * ramp(frame, 0, 119, EASE.smooth)).toFixed(2)}px)`,
101
- }}
102
- >
103
- 07
104
- </div>
105
- {/* 刊头:纹理级小字(不需要读),首帧即在;不随文字推近(页面家具是固定的) */}
106
- <div style={{ position: 'absolute', left: LEFT, right: LEFT, top: 92, display: 'flex', justifyContent: 'space-between', alignItems: 'center', fontFamily: FONT.sans, fontSize: 24, fontWeight: 600, letterSpacing: '0.2em', color: L.ink2, opacity: 0.4 + 0.6 * rule }}>
107
- {/* 刊头字标:video-shotcraft(全小写,字标不加 caps 字距) */}
108
- <ShotcraftWordmark size={24} markScale={1.5} gap={12} tone="light" color={L.ink2} />
109
- <span style={{ color: L.ink3 }}>N° 07 — OCTOBER 2026</span>
110
- </div>
111
- <div style={{ position: 'absolute', left: LEFT, top: 140, width: 1920 - LEFT * 2, height: 1.5, background: alpha(L.ink, 0.22), transform: `scaleX(${rule.toFixed(4)})`, transformOrigin: '0 50%' }} />
112
-
113
- {/* 刊脚:副标题落定后从右向左画出一条发丝线 + 页码,给 hold 段一个收尾动作并把版面框成完整一页 */}
114
- <div style={{ position: 'absolute', left: LEFT, top: 972, width: 1920 - LEFT * 2, height: 1.5, background: alpha(L.ink, 0.18), transform: `scaleX(${foot.toFixed(4)})`, transformOrigin: '100% 50%' }} />
115
- <div style={{ position: 'absolute', right: LEFT, top: 994, fontFamily: FONT.sans, fontSize: 24, fontWeight: 600, letterSpacing: '0.2em', color: L.ink3, opacity: foot }}>
116
- PAGE 07
117
- </div>
118
-
119
- <div style={{ position: 'absolute', inset: 0, transform: `scale(${push.toFixed(5)})`, transformOrigin: `${LEFT}px 560px` }}>
120
- {/* 栏目眉题 */}
121
- <div
122
- style={{
123
- position: 'absolute', left: LEFT, top: 318, display: 'flex', alignItems: 'center', gap: 18,
124
- fontFamily: FONT.sans, fontSize: 30, fontWeight: 650, letterSpacing: '0.16em', color: L.accent,
125
- opacity: kick, transform: `translateY(${((1 - kick) * 18).toFixed(2)}px)`, filter: kick >= 0.999 ? undefined : `blur(${((1 - kick) * 6).toFixed(2)}px)`,
126
- }}
127
- >
128
- <span style={{ width: 14, height: 14, background: L.accent, display: 'inline-block' }} />
129
- RELEASE NOTES
130
- </div>
131
-
132
- {/* 主标题两行:衬线 170px,负字距 */}
133
- <Words words={H1_A} dy={64} blur={18} gap="0.24em" style={{ ...headline, position: 'absolute', left: LEFT - 6, top: 384 }} />
134
- <Words words={H1_B} dy={64} blur={18} gap="0.24em" style={{ ...headline, position: 'absolute', left: LEFT - 6, top: 556 }} />
135
-
136
- {/* 副标题:无衬线 46px,位移与模糊都比主标题小一档 */}
137
- <Words
138
- words={H2}
139
- dy={26}
140
- blur={9}
141
- gap="0.26em"
142
- style={{ position: 'absolute', left: LEFT, top: 800, fontFamily: FONT.sans, fontSize: 46, fontWeight: 400, letterSpacing: '-0.012em', color: L.ink2, lineHeight: 1.2 }}
143
- />
144
- </div>
145
- </Stage>
146
- );
147
- };
1
+ // blur-slide — Blur Slide 逐词入场(第二轮重设计:编辑排版海报)
2
+ // 手法不变:标题逐词入场,y 位移 + blur + opacity 三通道共用同一个进度 p、同一条缓动同步收敛
3
+ // ——词是"从虚焦里浮出来",不是"滑进来顺便淡一下";副标题在标题收完前错峰跟进,重叠读作一句话。
4
+ //
5
+ // 设计决定
6
+ // - look:paper(暖白纸 · 墨 · 朱红)。编辑排版语境:杂志刊头 + 大衬线标题 + 无衬线副标,
7
+ // 左对齐在 168px 安全边距的网格上,右侧留白给标题的尾巴呼吸。
8
+ // - 层级:刊头 24px 全大写(纹理级)→ 栏目眉题 30px 朱红全大写 → 主标题 170px 衬线两行 →
9
+ // 副标题 46px 无衬线。主副字号差 3.7 倍,字重 400 衬线对 400 无衬线靠字体家族区分。
10
+ // - 强调色只给一个词:第二行的斜体 "cinematic." 是朱红,它最后落定、入场窗更长(主角)。
11
+ // - 文案:主 5 词 "Make every launch / feel cinematic."、副 9 词(video-shotcraft 的宣传句);刊头是 video-shotcraft 字标。
12
+ //
13
+ // 时间表(30fps,120f)
14
+ // 0–24 刊头与发丝线已在画面(首帧不空),发丝线从左向右画出(snappy 24f)
15
+ // 4–22 栏目眉题 blur-slide 入场(与手法同族,做"预备")
16
+ // 10–40 主标题第一行 3 词,词间 4f,每词 22f
17
+ // 26–58 第二行:先停 6f 换气,"feel" 22f、"cinematic." 30f(最后落定,字距同 p 收紧)
18
+ // 34–80 副标题 9 词,词间 2.4f、每词 20f、位移/模糊更小——层级靠幅度不靠时长;与主标题重叠 24f
19
+ // 72–98 刊脚发丝线从右向左画出 + 页码淡入(hold 段的余波,版面闭合成完整一页)
20
+ // 80–119 落定 hold 40f:整组极缓推近 1→1.03(smooth,起止零速度)+ 纸面主光极缓呼吸
21
+ // 曲线:三通道共用 EASE.out(quint-out 级),起手快、尾巴长,词"浮"上来而不是"弹"上来。
22
+ import React from 'react';
23
+ import { useCurrentFrame } from 'remotion';
24
+ import { LOOKS, SERIF, Stage, alpha } from '../../_fixtures/Look';
25
+ import { EASE, FONT, ramp } from '../../_fixtures/Polish';
26
+ import { ShotcraftWordmark } from '../../_fixtures/Brand';
27
+
28
+ export const BLUR_SLIDE_DURATION = 120; // 4000ms @30fps
29
+
30
+ const L = LOOKS.paper;
31
+ const LEFT = 168; // 左侧安全边距 / 网格起点
32
+
33
+ // 单词:start 起始帧、dur 入场时长、dy 位移(px)、blur 最大模糊(px)。
34
+ // opacity / translateY / blur(及可选字距)全部绑同一个 p —— 本卡的核心,不可拆成多条缓动。
35
+ type Word = { text: string; start: number; dur: number; style?: React.CSSProperties; track?: [number, number] };
36
+
37
+ const Words: React.FC<{ words: Word[]; dy: number; blur: number; gap: string; style: React.CSSProperties }> = ({ words, dy, blur, gap, style }) => {
38
+ const frame = useCurrentFrame();
39
+ return (
40
+ <div style={{ display: 'flex', alignItems: 'baseline', gap, whiteSpace: 'nowrap', ...style }}>
41
+ {words.map((w, i) => {
42
+ const p = ramp(frame, w.start, w.dur, EASE.out);
43
+ return (
44
+ <span
45
+ key={i}
46
+ style={{
47
+ display: 'inline-block',
48
+ opacity: p,
49
+ transform: `translateY(${((1 - p) * dy).toFixed(2)}px)`,
50
+ filter: p >= 0.999 ? undefined : `blur(${((1 - p) * blur).toFixed(2)}px)`,
51
+ letterSpacing: w.track ? `${(w.track[0] + (w.track[1] - w.track[0]) * p).toFixed(4)}em` : undefined,
52
+ ...w.style,
53
+ }}
54
+ >
55
+ {w.text}
56
+ </span>
57
+ );
58
+ })}
59
+ </div>
60
+ );
61
+ };
62
+
63
+ // 主标题:第一行 3 词等距 4f;第二行先停 6f 换气,主角词入场窗更长、字距同 p 由松到紧
64
+ const H1_A: Word[] = ['Make', 'every', 'launch'].map((text, i) => ({ text, start: 10 + i * 4, dur: 22 }));
65
+ const H1_B: Word[] = [
66
+ { text: 'feel', start: 26, dur: 22 },
67
+ {
68
+ text: 'cinematic.', start: 30, dur: 30, track: [0.03, -0.025],
69
+ style: { fontStyle: 'italic', color: L.accent },
70
+ },
71
+ ];
72
+ // 副标题:9 词,词间 2.4f(词数多于原稿,gap 按卡片规则压密)
73
+ const H2: Word[] = 'Shot recipes and camera moves, crafted by your agent.'.split(' ').map((text, i) => ({ text, start: 34 + i * 2.4, dur: 20 }));
74
+
75
+ export const BlurSlide: React.FC = () => {
76
+ const frame = useCurrentFrame();
77
+ // 整组极缓推近:以文字块左缘为原点,全程 smooth,尾段速度归零
78
+ const push = 1 + 0.03 * ramp(frame, 0, 119, EASE.smooth);
79
+ // 刊头发丝线:从左向右画出
80
+ const rule = ramp(frame, 0, 24, EASE.snappy);
81
+ // 栏目眉题:同族 blur-slide,单元 = 整行
82
+ const kick = ramp(frame, 4, 18, EASE.out);
83
+ // 后景刊号:从虚焦里慢慢显影(比标题慢得多,只做空间层次)
84
+ const folio = ramp(frame, 0, 48, EASE.out);
85
+ // 刊脚:副标题收尾时(72f)起画,26f snappy
86
+ const foot = ramp(frame, 72, 26, EASE.snappy);
87
+ const headline: React.CSSProperties = {
88
+ fontFamily: SERIF, fontSize: 170, fontWeight: 400, lineHeight: 1, letterSpacing: '-0.035em', color: L.ink,
89
+ };
90
+ return (
91
+ <Stage look={L} keyLight={{ x: 0.3, y: 0.18 }} fill={null} breathe={0.6} grain={0.06} vignette={0.1}>
92
+ {/* 纸面右下一抹朱红余温(极淡),让暖白不是死平 */}
93
+ <div style={{ position: 'absolute', inset: 0, background: `radial-gradient(ellipse 40% 50% at 96% 100%, ${alpha(L.accent, 0.06)}, ${alpha(L.accent, 0)} 70%)` }} />
94
+
95
+ {/* 后景:刊号大数字(5% 墨色),比文字层推得更慢且反向漂移 → 前后景视差 */}
96
+ <div
97
+ style={{
98
+ position: 'absolute', right: 120, top: 150, fontFamily: SERIF, fontSize: 760, fontWeight: 400, lineHeight: 1, letterSpacing: '-0.06em',
99
+ color: alpha(L.ink, 0.045 * folio), filter: folio >= 0.999 ? undefined : `blur(${((1 - folio) * 24).toFixed(2)}px)`,
100
+ transform: `translateX(${(-24 * ramp(frame, 0, 119, EASE.smooth)).toFixed(2)}px)`,
101
+ }}
102
+ >
103
+ 07
104
+ </div>
105
+ {/* 刊头:纹理级小字(不需要读),首帧即在;不随文字推近(页面家具是固定的) */}
106
+ <div style={{ position: 'absolute', left: LEFT, right: LEFT, top: 92, display: 'flex', justifyContent: 'space-between', alignItems: 'center', fontFamily: FONT.sans, fontSize: 24, fontWeight: 600, letterSpacing: '0.2em', color: L.ink2, opacity: 0.4 + 0.6 * rule }}>
107
+ {/* 刊头字标:video-shotcraft(全小写,字标不加 caps 字距) */}
108
+ <ShotcraftWordmark size={24} markScale={1.5} gap={12} tone="light" color={L.ink2} />
109
+ <span style={{ color: L.ink3 }}>N° 07 — OCTOBER 2026</span>
110
+ </div>
111
+ <div style={{ position: 'absolute', left: LEFT, top: 140, width: 1920 - LEFT * 2, height: 1.5, background: alpha(L.ink, 0.22), transform: `scaleX(${rule.toFixed(4)})`, transformOrigin: '0 50%' }} />
112
+
113
+ {/* 刊脚:副标题落定后从右向左画出一条发丝线 + 页码,给 hold 段一个收尾动作并把版面框成完整一页 */}
114
+ <div style={{ position: 'absolute', left: LEFT, top: 972, width: 1920 - LEFT * 2, height: 1.5, background: alpha(L.ink, 0.18), transform: `scaleX(${foot.toFixed(4)})`, transformOrigin: '100% 50%' }} />
115
+ <div style={{ position: 'absolute', right: LEFT, top: 994, fontFamily: FONT.sans, fontSize: 24, fontWeight: 600, letterSpacing: '0.2em', color: L.ink3, opacity: foot }}>
116
+ PAGE 07
117
+ </div>
118
+
119
+ <div style={{ position: 'absolute', inset: 0, transform: `scale(${push.toFixed(5)})`, transformOrigin: `${LEFT}px 560px` }}>
120
+ {/* 栏目眉题 */}
121
+ <div
122
+ style={{
123
+ position: 'absolute', left: LEFT, top: 318, display: 'flex', alignItems: 'center', gap: 18,
124
+ fontFamily: FONT.sans, fontSize: 30, fontWeight: 650, letterSpacing: '0.16em', color: L.accent,
125
+ opacity: kick, transform: `translateY(${((1 - kick) * 18).toFixed(2)}px)`, filter: kick >= 0.999 ? undefined : `blur(${((1 - kick) * 6).toFixed(2)}px)`,
126
+ }}
127
+ >
128
+ <span style={{ width: 14, height: 14, background: L.accent, display: 'inline-block' }} />
129
+ RELEASE NOTES
130
+ </div>
131
+
132
+ {/* 主标题两行:衬线 170px,负字距 */}
133
+ <Words words={H1_A} dy={64} blur={18} gap="0.24em" style={{ ...headline, position: 'absolute', left: LEFT - 6, top: 384 }} />
134
+ <Words words={H1_B} dy={64} blur={18} gap="0.24em" style={{ ...headline, position: 'absolute', left: LEFT - 6, top: 556 }} />
135
+
136
+ {/* 副标题:无衬线 46px,位移与模糊都比主标题小一档 */}
137
+ <Words
138
+ words={H2}
139
+ dy={26}
140
+ blur={9}
141
+ gap="0.26em"
142
+ style={{ position: 'absolute', left: LEFT, top: 800, fontFamily: FONT.sans, fontSize: 46, fontWeight: 400, letterSpacing: '-0.012em', color: L.ink2, lineHeight: 1.2 }}
143
+ />
144
+ </div>
145
+ </Stage>
146
+ );
147
+ };
@@ -1,143 +1,143 @@
1
- // brace-expand — Brace Expand Reveal 括号拉幕
2
- // 一对紧贴的花括号先小字号出现在正中,随即带一次过冲向左右弹开并放大到标题级,括号之间的标题像被拉开的幕布
3
- // 一样从中间露出(clip 宽度严格绑括号间距),落定后字距再细微松弛。
4
- //
5
- // 第二轮重设计(午夜 · 开发者发布会字卡):
6
- // - look = midnight。画面是一张技术产品发布字卡:等宽 300px 电光蓝花括号(带泛光)夹住 164px 800 字重的
7
- // 品牌名「video-shotcraft」(全小写,字宽贴满括号内腔);上方等宽眉题「// shot recipes for your agent」、
8
- // 下方副标(品牌短句 Frame motion. Craft the shot.)逐词浮现。背景是编辑器式点阵网格
9
- // (径向渐隐)+ 顶光 + 地平线光带,括号下方一道冷光反射。
10
- // - 开场:第 0 帧画面中心已有一个闪烁的输入光标(编辑器语感,不是空帧);6f 光标被一对紧贴的 0.4 倍小括号
11
- // "{}" 硬切替换(符号啪地在那儿,不淡入)——先建立"这是一对括号"。
12
- // - 主动作:14f 起物理弹簧 ex(damping 14 / stiffness 130:起跳后 ~8f 到位、~11f 过冲峰 ≈9%、一次回弹);
13
- // sc = mix(0.4, 1, ex),幕布半宽 x = (HALF−内缘)·ex·sc,位移与放大乘在一起(放大本身也在推开括号);
14
- // 括号中心 = ±(x + 内缘·sc),文字 clip 宽度 = 2x,严格绑括号内缘,括号与文字共用同一个 sc。括号按水平速度加方向性运动模糊,落定为 0。
15
- // - 余波:落定后字距 −0.05em → −0.03em 松弛(呼一口气)、括号泛光从峰值回落;眉题与副标随后入场。
16
- //
17
- // 时间表(30fps,共 120f):
18
- // 0–6 光标闪烁(中心,第 0 帧即在)
19
- // 6–14 小括号 "{}" 硬切出现、静置 8f
20
- // 14–38 弹开:弹簧 ~22f 到位、~25f 过冲峰 ≈9%、~38f 收敛;文字从中间被"拉"出来
21
- // 40–64 松弛:字距 −0.05→−0.03em(smooth)、泛光回落
22
- // 44–80 眉题字距收拢入场(44f)、副标逐词浮现(54f 起)
23
- // 80–120 hold:整幅极缓前推 1→1.012
24
- import React from 'react';
25
- import { AbsoluteFill, useCurrentFrame } from 'remotion';
26
- import { EASE, FONT, SpeedBlur, mix, ramp } from '../../_fixtures/Polish';
27
- import { LOOKS, Stage, TextReveal, alpha, glow, springAt, type } from '../../_fixtures/Look';
28
- import { BRAND, PITCH } from '../../_fixtures/Brand';
29
-
30
- export const BRACE_EXPAND_DURATION = 120;
31
-
32
- const L = LOOKS.midnight;
33
- const CY = 520; // 标题中线
34
- const HALF = 676; // 括号中心最终半距(px)
35
- const BRACE_FS = 300; // 括号最终字号
36
- const BRACE_INNER = 64; // 括号字形中心到内缘的距离(×sc),clip 从这里起算
37
- const TITLE = BRAND.name; // 字标全小写
38
- const TITLE_FS = 164; // 字宽 ≈ 内腔宽 2·(HALF−内缘):幕布拉到头才露全(换文案要同步调 HALF 或字号)
39
- const APPEAR = 6;
40
- const EXPAND = 14;
41
-
42
- const expandAt = (f: number) => (f < EXPAND ? 0 : springAt(f, EXPAND, { damping: 14, stiffness: 130 }));
43
- // 幕布半宽 x = (HALF − 内缘)·ex·sc;括号中心 = ±(x + 内缘·sc)——ex=0 时两只括号内缘相贴成 "{}"
44
- const braceX = (f: number) => {
45
- const ex = expandAt(f);
46
- return (HALF - BRACE_INNER) * ex * mix(0.4, 1, ex);
47
- };
48
-
49
- const Brace: React.FC<{ ch: string; x: number; sc: number; v: number; glowK: number }> = ({ ch, x, sc, v, glowK }) => (
50
- <SpeedBlur vx={v} amount={0.22} max={16}>
51
- <div style={{
52
- position: 'absolute', left: 960 + x, top: CY, transform: `translate(-50%, -52%) scale(${sc.toFixed(4)})`,
53
- fontFamily: FONT.mono, fontSize: BRACE_FS, fontWeight: 500, lineHeight: 1, color: L.accent,
54
- textShadow: glow(L.accent, 0.5 + 0.5 * glowK),
55
- }}>{ch}</div>
56
- </SpeedBlur>
57
- );
58
-
59
- export const BraceExpand: React.FC = () => {
60
- const frame = useCurrentFrame();
61
- const on = frame >= APPEAR;
62
- const ex = expandAt(frame);
63
- const sc = mix(0.4, 1, ex);
64
- const x = braceX(frame);
65
- const v = braceX(frame + 0.5) - braceX(frame - 0.5); // 括号水平速度(px/帧)
66
-
67
- // 文字揭示宽度:严格绑括号内缘(= 2x),两侧 14px 羽化(窄时跟着收)
68
- const clipW = Math.max(0, 2 * x);
69
- const bx = x + BRACE_INNER * sc; // 括号中心
70
- const feather = Math.min(14, clipW / 4);
71
- const mask = `linear-gradient(90deg, transparent 0px, #000 ${feather}px, #000 calc(100% - ${feather}px), transparent 100%)`;
72
-
73
- // 落定后字距松弛 + 泛光回落(泛光峰值跟着过冲走)
74
- const relax = ramp(frame, 40, 24, EASE.smooth);
75
- const ls = mix(-0.05, -0.03, relax);
76
- const glowK = Math.min(1, ex) * (1 - ramp(frame, 34, 30, EASE.out));
77
-
78
- // 光标:0–6f 闪烁
79
- const caretOn = !on && Math.floor(frame / 3) % 2 === 0;
80
-
81
- const cam = 1 + 0.012 * ramp(frame, 70, 50, EASE.smooth);
82
-
83
- return (
84
- <AbsoluteFill style={{ background: L.bg[1], overflow: 'hidden' }}>
85
- <Stage look={L} keyLight={{ x: 0.5, y: 0.02 }} fill={null} horizon={0.66} breathe={0.4}>
86
- {/* 编辑器点阵:32px 栅格,中心亮、四周隐去 */}
87
- <div style={{
88
- position: 'absolute', inset: 0,
89
- backgroundImage: `radial-gradient(circle, ${alpha('#a9bcff', 0.16)} 1.4px, transparent 1.8px)`,
90
- backgroundSize: '32px 32px', backgroundPosition: '16px 8px',
91
- WebkitMaskImage: 'radial-gradient(ellipse 60% 55% at 50% 48%, #000 0%, rgba(0,0,0,0.35) 55%, transparent 85%)',
92
- maskImage: 'radial-gradient(ellipse 60% 55% at 50% 48%, #000 0%, rgba(0,0,0,0.35) 55%, transparent 85%)',
93
- }} />
94
- {/* 括号下方的冷光反射带(随弹开展宽) */}
95
- <div style={{
96
- position: 'absolute', left: 960 - (x + 120), width: 2 * (x + 120), top: CY + 150, height: 90,
97
- background: `radial-gradient(ellipse 50% 50% at 50% 50%, ${alpha(L.accent, 0.22 * Math.min(1, ex))} 0%, ${alpha(L.accent, 0)} 70%)`,
98
- }} />
99
- </Stage>
100
-
101
- <div style={{ position: 'absolute', inset: 0, transform: `scale(${cam.toFixed(5)})`, transformOrigin: `50% ${CY}px` }}>
102
- {/* 眉题:等宽注释 */}
103
- <div style={{
104
- position: 'absolute', left: 0, right: 0, top: CY - 248, textAlign: 'center', color: L.accent2,
105
- ...type(32, 500, { mono: true }), letterSpacing: `${mix(0.5, 0.08, ramp(frame, 44, 20, EASE.snappy)).toFixed(3)}em`,
106
- opacity: ramp(frame, 44, 14, EASE.out),
107
- }}>// shot recipes for your agent</div>
108
-
109
- {/* 标题:clip 宽度绑括号间距(幕布感,不是淡入/打字) */}
110
- {on && (
111
- <div style={{
112
- position: 'absolute', left: 960 - clipW / 2, width: clipW, top: CY - 110, height: 220, overflow: 'hidden',
113
- WebkitMaskImage: mask, maskImage: mask,
114
- }}>
115
- <div style={{
116
- position: 'absolute', left: clipW / 2, top: 110, transform: `translate(-50%, -54%) scale(${sc.toFixed(4)})`,
117
- fontFamily: FONT.sans, fontSize: TITLE_FS, fontWeight: 800, letterSpacing: `${ls.toFixed(4)}em`, lineHeight: 1,
118
- whiteSpace: 'nowrap',
119
- backgroundImage: 'linear-gradient(180deg, #ffffff 0%, #e8eeff 55%, #a9b9e8 100%)',
120
- WebkitBackgroundClip: 'text', backgroundClip: 'text', color: 'transparent', paddingBottom: 8,
121
- }}>{TITLE}</div>
122
- </div>
123
- )}
124
-
125
- {on && <Brace ch="{" x={-bx} sc={sc} v={-v} glowK={glowK} />}
126
- {on && <Brace ch="}" x={bx} sc={sc} v={v} glowK={glowK} />}
127
-
128
- {/* 开场光标 */}
129
- {caretOn && (
130
- <div style={{
131
- position: 'absolute', left: 960 - 4, top: CY - 60, width: 8, height: 120, borderRadius: 2,
132
- background: L.accent, boxShadow: glow(L.accent, 0.6),
133
- }} />
134
- )}
135
-
136
- {/* 副标 */}
137
- <div style={{ position: 'absolute', left: 0, right: 0, top: CY + 170, textAlign: 'center', color: L.ink2, ...type(44, 450) }}>
138
- <TextReveal text={PITCH.en.motto} by="word" variant="blur" start={54} each={16} gap={3} />
139
- </div>
140
- </div>
141
- </AbsoluteFill>
142
- );
143
- };
1
+ // brace-expand — Brace Expand Reveal 括号拉幕
2
+ // 一对紧贴的花括号先小字号出现在正中,随即带一次过冲向左右弹开并放大到标题级,括号之间的标题像被拉开的幕布
3
+ // 一样从中间露出(clip 宽度严格绑括号间距),落定后字距再细微松弛。
4
+ //
5
+ // 第二轮重设计(午夜 · 开发者发布会字卡):
6
+ // - look = midnight。画面是一张技术产品发布字卡:等宽 300px 电光蓝花括号(带泛光)夹住 164px 800 字重的
7
+ // 品牌名「video-shotcraft」(全小写,字宽贴满括号内腔);上方等宽眉题「// shot recipes for your agent」、
8
+ // 下方副标(品牌短句 Frame motion. Craft the shot.)逐词浮现。背景是编辑器式点阵网格
9
+ // (径向渐隐)+ 顶光 + 地平线光带,括号下方一道冷光反射。
10
+ // - 开场:第 0 帧画面中心已有一个闪烁的输入光标(编辑器语感,不是空帧);6f 光标被一对紧贴的 0.4 倍小括号
11
+ // "{}" 硬切替换(符号啪地在那儿,不淡入)——先建立"这是一对括号"。
12
+ // - 主动作:14f 起物理弹簧 ex(damping 14 / stiffness 130:起跳后 ~8f 到位、~11f 过冲峰 ≈9%、一次回弹);
13
+ // sc = mix(0.4, 1, ex),幕布半宽 x = (HALF−内缘)·ex·sc,位移与放大乘在一起(放大本身也在推开括号);
14
+ // 括号中心 = ±(x + 内缘·sc),文字 clip 宽度 = 2x,严格绑括号内缘,括号与文字共用同一个 sc。括号按水平速度加方向性运动模糊,落定为 0。
15
+ // - 余波:落定后字距 −0.05em → −0.03em 松弛(呼一口气)、括号泛光从峰值回落;眉题与副标随后入场。
16
+ //
17
+ // 时间表(30fps,共 120f):
18
+ // 0–6 光标闪烁(中心,第 0 帧即在)
19
+ // 6–14 小括号 "{}" 硬切出现、静置 8f
20
+ // 14–38 弹开:弹簧 ~22f 到位、~25f 过冲峰 ≈9%、~38f 收敛;文字从中间被"拉"出来
21
+ // 40–64 松弛:字距 −0.05→−0.03em(smooth)、泛光回落
22
+ // 44–80 眉题字距收拢入场(44f)、副标逐词浮现(54f 起)
23
+ // 80–120 hold:整幅极缓前推 1→1.012
24
+ import React from 'react';
25
+ import { AbsoluteFill, useCurrentFrame } from 'remotion';
26
+ import { EASE, FONT, SpeedBlur, mix, ramp } from '../../_fixtures/Polish';
27
+ import { LOOKS, Stage, TextReveal, alpha, glow, springAt, type } from '../../_fixtures/Look';
28
+ import { BRAND, PITCH } from '../../_fixtures/Brand';
29
+
30
+ export const BRACE_EXPAND_DURATION = 120;
31
+
32
+ const L = LOOKS.midnight;
33
+ const CY = 520; // 标题中线
34
+ const HALF = 676; // 括号中心最终半距(px)
35
+ const BRACE_FS = 300; // 括号最终字号
36
+ const BRACE_INNER = 64; // 括号字形中心到内缘的距离(×sc),clip 从这里起算
37
+ const TITLE = BRAND.name; // 字标全小写
38
+ const TITLE_FS = 164; // 字宽 ≈ 内腔宽 2·(HALF−内缘):幕布拉到头才露全(换文案要同步调 HALF 或字号)
39
+ const APPEAR = 6;
40
+ const EXPAND = 14;
41
+
42
+ const expandAt = (f: number) => (f < EXPAND ? 0 : springAt(f, EXPAND, { damping: 14, stiffness: 130 }));
43
+ // 幕布半宽 x = (HALF − 内缘)·ex·sc;括号中心 = ±(x + 内缘·sc)——ex=0 时两只括号内缘相贴成 "{}"
44
+ const braceX = (f: number) => {
45
+ const ex = expandAt(f);
46
+ return (HALF - BRACE_INNER) * ex * mix(0.4, 1, ex);
47
+ };
48
+
49
+ const Brace: React.FC<{ ch: string; x: number; sc: number; v: number; glowK: number }> = ({ ch, x, sc, v, glowK }) => (
50
+ <SpeedBlur vx={v} amount={0.22} max={16}>
51
+ <div style={{
52
+ position: 'absolute', left: 960 + x, top: CY, transform: `translate(-50%, -52%) scale(${sc.toFixed(4)})`,
53
+ fontFamily: FONT.mono, fontSize: BRACE_FS, fontWeight: 500, lineHeight: 1, color: L.accent,
54
+ textShadow: glow(L.accent, 0.5 + 0.5 * glowK),
55
+ }}>{ch}</div>
56
+ </SpeedBlur>
57
+ );
58
+
59
+ export const BraceExpand: React.FC = () => {
60
+ const frame = useCurrentFrame();
61
+ const on = frame >= APPEAR;
62
+ const ex = expandAt(frame);
63
+ const sc = mix(0.4, 1, ex);
64
+ const x = braceX(frame);
65
+ const v = braceX(frame + 0.5) - braceX(frame - 0.5); // 括号水平速度(px/帧)
66
+
67
+ // 文字揭示宽度:严格绑括号内缘(= 2x),两侧 14px 羽化(窄时跟着收)
68
+ const clipW = Math.max(0, 2 * x);
69
+ const bx = x + BRACE_INNER * sc; // 括号中心
70
+ const feather = Math.min(14, clipW / 4);
71
+ const mask = `linear-gradient(90deg, transparent 0px, #000 ${feather}px, #000 calc(100% - ${feather}px), transparent 100%)`;
72
+
73
+ // 落定后字距松弛 + 泛光回落(泛光峰值跟着过冲走)
74
+ const relax = ramp(frame, 40, 24, EASE.smooth);
75
+ const ls = mix(-0.05, -0.03, relax);
76
+ const glowK = Math.min(1, ex) * (1 - ramp(frame, 34, 30, EASE.out));
77
+
78
+ // 光标:0–6f 闪烁
79
+ const caretOn = !on && Math.floor(frame / 3) % 2 === 0;
80
+
81
+ const cam = 1 + 0.012 * ramp(frame, 70, 50, EASE.smooth);
82
+
83
+ return (
84
+ <AbsoluteFill style={{ background: L.bg[1], overflow: 'hidden' }}>
85
+ <Stage look={L} keyLight={{ x: 0.5, y: 0.02 }} fill={null} horizon={0.66} breathe={0.4}>
86
+ {/* 编辑器点阵:32px 栅格,中心亮、四周隐去 */}
87
+ <div style={{
88
+ position: 'absolute', inset: 0,
89
+ backgroundImage: `radial-gradient(circle, ${alpha('#a9bcff', 0.16)} 1.4px, transparent 1.8px)`,
90
+ backgroundSize: '32px 32px', backgroundPosition: '16px 8px',
91
+ WebkitMaskImage: 'radial-gradient(ellipse 60% 55% at 50% 48%, #000 0%, rgba(0,0,0,0.35) 55%, transparent 85%)',
92
+ maskImage: 'radial-gradient(ellipse 60% 55% at 50% 48%, #000 0%, rgba(0,0,0,0.35) 55%, transparent 85%)',
93
+ }} />
94
+ {/* 括号下方的冷光反射带(随弹开展宽) */}
95
+ <div style={{
96
+ position: 'absolute', left: 960 - (x + 120), width: 2 * (x + 120), top: CY + 150, height: 90,
97
+ background: `radial-gradient(ellipse 50% 50% at 50% 50%, ${alpha(L.accent, 0.22 * Math.min(1, ex))} 0%, ${alpha(L.accent, 0)} 70%)`,
98
+ }} />
99
+ </Stage>
100
+
101
+ <div style={{ position: 'absolute', inset: 0, transform: `scale(${cam.toFixed(5)})`, transformOrigin: `50% ${CY}px` }}>
102
+ {/* 眉题:等宽注释 */}
103
+ <div style={{
104
+ position: 'absolute', left: 0, right: 0, top: CY - 248, textAlign: 'center', color: L.accent2,
105
+ ...type(32, 500, { mono: true }), letterSpacing: `${mix(0.5, 0.08, ramp(frame, 44, 20, EASE.snappy)).toFixed(3)}em`,
106
+ opacity: ramp(frame, 44, 14, EASE.out),
107
+ }}>// shot recipes for your agent</div>
108
+
109
+ {/* 标题:clip 宽度绑括号间距(幕布感,不是淡入/打字) */}
110
+ {on && (
111
+ <div style={{
112
+ position: 'absolute', left: 960 - clipW / 2, width: clipW, top: CY - 110, height: 220, overflow: 'hidden',
113
+ WebkitMaskImage: mask, maskImage: mask,
114
+ }}>
115
+ <div style={{
116
+ position: 'absolute', left: clipW / 2, top: 110, transform: `translate(-50%, -54%) scale(${sc.toFixed(4)})`,
117
+ fontFamily: FONT.sans, fontSize: TITLE_FS, fontWeight: 800, letterSpacing: `${ls.toFixed(4)}em`, lineHeight: 1,
118
+ whiteSpace: 'nowrap',
119
+ backgroundImage: 'linear-gradient(180deg, #ffffff 0%, #e8eeff 55%, #a9b9e8 100%)',
120
+ WebkitBackgroundClip: 'text', backgroundClip: 'text', color: 'transparent', paddingBottom: 8,
121
+ }}>{TITLE}</div>
122
+ </div>
123
+ )}
124
+
125
+ {on && <Brace ch="{" x={-bx} sc={sc} v={-v} glowK={glowK} />}
126
+ {on && <Brace ch="}" x={bx} sc={sc} v={v} glowK={glowK} />}
127
+
128
+ {/* 开场光标 */}
129
+ {caretOn && (
130
+ <div style={{
131
+ position: 'absolute', left: 960 - 4, top: CY - 60, width: 8, height: 120, borderRadius: 2,
132
+ background: L.accent, boxShadow: glow(L.accent, 0.6),
133
+ }} />
134
+ )}
135
+
136
+ {/* 副标 */}
137
+ <div style={{ position: 'absolute', left: 0, right: 0, top: CY + 170, textAlign: 'center', color: L.ink2, ...type(44, 450) }}>
138
+ <TextReveal text={PITCH.en.motto} by="word" variant="blur" start={54} each={16} gap={3} />
139
+ </div>
140
+ </div>
141
+ </AbsoluteFill>
142
+ );
143
+ };