dsh-drawai 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/lib/client.js +142 -16
- package/lib/index.js +7945 -7719
- package/lib/motion/asset-pack.js +394 -394
- package/lib/motion/assets.js +291 -291
- package/lib/motion/demo-assets-lock.js +10 -10
- package/lib/motion/mgstyles/briefs/23-ink-wash.md +147 -0
- package/lib/motion/mgstyles/catalog.d/23-ink-wash.json +28 -0
- package/lib/motion/mgstyles/catalog.json +127 -14
- package/lib/motion/mgstyles/upstream/demos/23-ink-wash/brush.js +149 -0
- package/lib/motion/mgstyles/upstream/demos/23-ink-wash/film.js +202 -0
- package/lib/motion/mgstyles/upstream/manifest.json +28 -3
- package/lib/motion/mgstyles/upstream/prompts/23-ink-wash.md +59 -0
- package/lib/motion/mgstyles/vendor/README.md +28 -28
- package/lib/motion/mgstyles/vendor/modules/d3/LICENSE +13 -13
- package/lib/motion/mgstyles/vendor/modules/d3/dist/d3.min.js +2 -2
- package/lib/motion/mgstyles/vendor/modules/opentype.js/LICENSE +20 -20
- package/lib/motion/mgstyles/vendor/modules/opentype.js/dist/opentype.mjs +14460 -14460
- package/lib/motion/mgstyles/vendor/modules/simplex-noise/LICENSE +21 -21
- package/lib/motion/mgstyles/vendor/modules/simplex-noise/dist/esm/simplex-noise.js +465 -465
- package/lib/motion/mgstyles/vendor/modules/topojson-client/LICENSE +13 -13
- package/lib/motion/mgstyles/vendor/modules/topojson-client/dist/topojson-client.min.js +2 -2
- package/lib/motion/project.js +5 -1
- package/lib/motion/qa.js +116 -6
- package/lib/motion/render.js +179 -179
- package/lib/motion/scene-kit.js +1 -1
- package/lib/motion/shotcraft/upstream/SKILL.md +286 -286
- package/lib/motion/shotcraft/upstream/assets/lib/Caption.tsx +54 -54
- package/lib/motion/shotcraft/upstream/assets/lib/ClipCard.tsx +200 -200
- package/lib/motion/shotcraft/upstream/assets/lib/DigitRoll.tsx +45 -45
- package/lib/motion/shotcraft/upstream/assets/lib/FlashCut.tsx +20 -20
- package/lib/motion/shotcraft/upstream/assets/lib/FlatPanel.tsx +65 -65
- package/lib/motion/shotcraft/upstream/assets/lib/PageCam.tsx +151 -151
- package/lib/motion/shotcraft/upstream/assets/lib/VerticalTicker.tsx +129 -129
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/camera.tsx +75 -75
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/motion.ts +40 -40
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/rand.ts +11 -11
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/shake.ts +10 -10
- package/lib/motion/shotcraft/upstream/assets/scripts/build-readme-cover.mjs +49 -49
- package/lib/motion/shotcraft/upstream/assets/scripts/capture-template.mjs +210 -210
- package/lib/motion/shotcraft/upstream/assets/scripts/sfx-source.py +423 -423
- package/lib/motion/shotcraft/upstream/assets/scripts/smoke-render-demos.py +170 -170
- package/lib/motion/shotcraft/upstream/assets/scripts/test_sfx_source.py +157 -157
- package/lib/motion/shotcraft/upstream/demos/README.md +120 -120
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Brand.tsx +112 -112
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Fixtures.tsx +647 -647
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Look.tsx +316 -316
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Motion.tsx +82 -82
- package/lib/motion/shotcraft/upstream/demos/_fixtures/PageCam2D.tsx +115 -115
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Polish.tsx +243 -243
- package/lib/motion/shotcraft/upstream/demos/_textures/live-layout.json +388 -388
- package/lib/motion/shotcraft/upstream/demos/camera/basic-3d-scene/Basic3DScene.tsx +250 -250
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashImpactReal.tsx +305 -305
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashZoomReal.tsx +246 -246
- package/lib/motion/shotcraft/upstream/demos/camera/cursor-flyover/CursorFlyover.tsx +390 -390
- package/lib/motion/shotcraft/upstream/demos/camera/depth-layer-moves/MultiplaneReal.tsx +138 -138
- package/lib/motion/shotcraft/upstream/demos/camera/graze-face-tour/GrazeFaceTour.tsx +542 -542
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/OverheadTabletopDrop.tsx +315 -315
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/TiltReveal.tsx +299 -299
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/DroneDiveLanding.tsx +173 -173
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/ExplodedView.tsx +348 -348
- package/lib/motion/shotcraft/upstream/demos/camera/steep-tilt-glide/SteepTiltGlide.tsx +366 -366
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/BulletTimeFreezeOrbit.tsx +279 -279
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/PullBackIsolation.tsx +184 -184
- package/lib/motion/shotcraft/upstream/demos/camera/terminal-3d/Terminal3D.tsx +390 -390
- package/lib/motion/shotcraft/upstream/demos/data/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +155 -155
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/AxisRescaleShockV2.tsx +303 -303
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/OscilloscopeStreamV2.tsx +290 -290
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/UnitDotSwarmRegroupV2.tsx +278 -278
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/NeedleSweepSelftest.tsx +307 -307
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/TapeScrollFixedPointer.tsx +215 -215
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/BrakeReticleLock.tsx +299 -299
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/ChangelogScrollBrake.tsx +232 -232
- package/lib/motion/shotcraft/upstream/demos/data/timeline-travel/TimelineTravel.tsx +290 -290
- package/lib/motion/shotcraft/upstream/demos/effects/assemble-then-type-flyin/AssembleThenTypeFlyin.tsx +273 -273
- package/lib/motion/shotcraft/upstream/demos/effects/aurora-bloom-bg-flip/AuroraBloomBgFlip.tsx +167 -167
- package/lib/motion/shotcraft/upstream/demos/effects/brand-frame-snap/BrandFrameSnap.tsx +536 -536
- package/lib/motion/shotcraft/upstream/demos/effects/fui-hud-moves/ReticleLockOn.tsx +164 -164
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/FlylineArc.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/GlowOrbAmbient.tsx +197 -197
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/OrbFlylineRelay.tsx +241 -241
- package/lib/motion/shotcraft/upstream/demos/effects/icon-performance-moves/AttentionBounce.tsx +279 -279
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/AnimeImpact.tsx +230 -230
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/HitCounter.tsx +345 -345
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SheenSweepRetry.tsx +275 -275
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SpotlightSweepReveal.tsx +229 -229
- package/lib/motion/shotcraft/upstream/demos/effects/radial-ripple-phone-chips/RadialRipplePhoneChips.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/effects/riso-print-hits/RisoMisregistrationHit.tsx +222 -222
- package/lib/motion/shotcraft/upstream/demos/effects/scan-bracket-sweep/ScanBracketSweep.tsx +295 -295
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-annotate-focus/ScanlineAnnotateFocus.tsx +329 -329
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-assemble-flyin/ScanlineAssembleFlyin.tsx +315 -315
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ImpactBurstKit.tsx +264 -264
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/KanadaPerspectiveSnap.tsx +260 -260
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ScoreSlam.tsx +263 -263
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/CornerSpotlightReveal.tsx +123 -123
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +187 -187
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/SlideSpotlightPan.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/interaction/autolayout-gap-dial/AutolayoutGapDial.tsx +305 -305
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/DiagramCascadeBuild.tsx +350 -350
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +352 -352
- package/lib/motion/shotcraft/upstream/demos/interaction/chip-grid-single-select-blackout/ChipGridSingleSelectBlackout.tsx +218 -218
- package/lib/motion/shotcraft/upstream/demos/interaction/collab-cursor-moves/CursorCastEnsemble.tsx +297 -297
- package/lib/motion/shotcraft/upstream/demos/interaction/glass-pill-dictation-typing/GlassPillDictationTyping.tsx +157 -157
- package/lib/motion/shotcraft/upstream/demos/interaction/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +218 -218
- package/lib/motion/shotcraft/upstream/demos/interaction/picker-carousel-feature-cycle/PickerCarouselFeatureCycle.tsx +202 -202
- package/lib/motion/shotcraft/upstream/demos/interaction/segmented-thumb-hero/SegmentedThumbHero.tsx +265 -265
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/PaletteThemeRipple.tsx +457 -457
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/ThemeSweepToggle.tsx +446 -446
- package/lib/motion/shotcraft/upstream/demos/interaction/type-and-filter/TypeAndFilter.tsx +249 -249
- package/lib/motion/shotcraft/upstream/demos/interaction/voice-waveform-live/VoiceWaveformLive.tsx +278 -278
- package/lib/motion/shotcraft/upstream/demos/opening/crane-rise-reveal/CraneRiseReveal.tsx +332 -332
- package/lib/motion/shotcraft/upstream/demos/opening/dataviz-landscape-open/DatavizLandscapeOpen.tsx +358 -358
- package/lib/motion/shotcraft/upstream/demos/opening/fracture/Fracture.tsx +201 -201
- package/lib/motion/shotcraft/upstream/demos/opening/icon-field-colorize/IconFieldColorize.tsx +200 -200
- package/lib/motion/shotcraft/upstream/demos/opening/letterspace-materialize/LetterspaceMaterialize.tsx +208 -208
- package/lib/motion/shotcraft/upstream/demos/opening/magician-card-flourish/MagicianCardFlourish.tsx +341 -341
- package/lib/motion/shotcraft/upstream/demos/opening/orbit-ring-title-open/OrbitRingTitleOpen.tsx +389 -389
- package/lib/motion/shotcraft/upstream/demos/opening/spotlight-hero-card/SpotlightHeroCard.tsx +293 -293
- package/lib/motion/shotcraft/upstream/demos/opening/stroke-segment-build/StrokeSegmentBuild.tsx +183 -183
- package/lib/motion/shotcraft/upstream/demos/opening/text-as-mask/TextAsMask.tsx +245 -245
- package/lib/motion/shotcraft/upstream/demos/outro/grain-dissolve/GrainDissolve.tsx +222 -222
- package/lib/motion/shotcraft/upstream/demos/outro/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx +223 -223
- package/lib/motion/shotcraft/upstream/demos/outro/neon-triple-marquee/NeonTripleMarquee.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/outro/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx +343 -343
- package/lib/motion/shotcraft/upstream/demos/outro/ui-strip-away-outro/UiStripAwayOutro.tsx +357 -357
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/IconFlipBloomLogo.tsx +187 -187
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/InputMorphsIntoLogo.tsx +333 -333
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-cut-moves/PaparazziFlash.tsx +274 -274
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +270 -270
- package/lib/motion/shotcraft/upstream/demos/rhythm/panel-grid-moves/ComicPanelSplit.tsx +430 -430
- package/lib/motion/shotcraft/upstream/demos/rhythm/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx +252 -252
- package/lib/motion/shotcraft/upstream/demos/rhythm/rhythm-interrupt-moves/JumpCutPunchIn.tsx +106 -106
- package/lib/motion/shotcraft/upstream/demos/rhythm/sakuga-timing-shift/SakugaTimingShift.tsx +288 -288
- package/lib/motion/shotcraft/upstream/demos/rhythm/speed-ramp-freeze/FreezeAnnotateReal.tsx +362 -362
- package/lib/motion/shotcraft/upstream/demos/rhythm/trailer-grammar-moves/TrailerBumper.tsx +168 -168
- package/lib/motion/shotcraft/upstream/demos/transition/bottom-push-stack-wipe/BottomPushStackWipe.tsx +310 -310
- package/lib/motion/shotcraft/upstream/demos/transition/card-flip-reveal/CardFlipReveal.tsx +261 -261
- package/lib/motion/shotcraft/upstream/demos/transition/card-flock-tumble/CardFlockTumble.tsx +459 -459
- package/lib/motion/shotcraft/upstream/demos/transition/circle-match-iris/CircleMatchIris.tsx +294 -294
- package/lib/motion/shotcraft/upstream/demos/transition/gradient-transition/GradientTransition.tsx +161 -161
- package/lib/motion/shotcraft/upstream/demos/transition/line-carry-transition/LineCarryTransition.tsx +248 -248
- package/lib/motion/shotcraft/upstream/demos/transition/mosaic-reframe/MosaicReframe.tsx +359 -359
- package/lib/motion/shotcraft/upstream/demos/transition/page-turn-transitions/BarnDoorSplit.tsx +227 -227
- package/lib/motion/shotcraft/upstream/demos/transition/print-texture-transitions/InkBleedReveal.tsx +162 -162
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/PortalWipeV2.tsx +248 -248
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/WhipBrakeReal.tsx +186 -186
- package/lib/motion/shotcraft/upstream/demos/transition/tear-streak-transitions/GlitchDisplace.tsx +355 -355
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/InvisibleCut.tsx +272 -272
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/LightLeakBurn.tsx +262 -262
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/VersusSlam.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/transition/transition-travel/LetterformZoom.tsx +285 -285
- package/lib/motion/shotcraft/upstream/demos/transition/white-flash-logo-simplify-cut/WhiteFlashLogoSimplifyCut.tsx +205 -205
- package/lib/motion/shotcraft/upstream/demos/transition/wipe-transitions/BlindsSlice.tsx +178 -178
- package/lib/motion/shotcraft/upstream/demos/typography/blur-slide/BlurSlide.tsx +147 -147
- package/lib/motion/shotcraft/upstream/demos/typography/brace-expand/BraceExpand.tsx +143 -143
- package/lib/motion/shotcraft/upstream/demos/typography/brand-ink-open/BrandInkOpen.tsx +134 -134
- package/lib/motion/shotcraft/upstream/demos/typography/countdown-arc-scatter/CountdownArcScatter.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/typography/flying-words/FlyingWords.tsx +198 -198
- package/lib/motion/shotcraft/upstream/demos/typography/glitch-cycle/GlitchCycle.tsx +221 -221
- package/lib/motion/shotcraft/upstream/demos/typography/gradient-word-sweep/GradientWordSweep.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/typography/lead-word-zoom-assemble/LeadWordZoomAssemble.tsx +261 -261
- package/lib/motion/shotcraft/upstream/demos/typography/marker-underline-title/MarkerUnderlineTitle.tsx +121 -121
- package/lib/motion/shotcraft/upstream/demos/typography/outline-word-fill/OutlineWordFill.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/typography/paper-title-card/PaperTitleCard.tsx +179 -179
- package/lib/motion/shotcraft/upstream/demos/typography/pill-chip-slot-cycle-handled/PillChipSlotCycleHandled.tsx +140 -140
- package/lib/motion/shotcraft/upstream/demos/typography/pill-slot-cycle/PillSlotCycle.tsx +309 -309
- package/lib/motion/shotcraft/upstream/demos/typography/text-column-converge/TextColumnConverge.tsx +191 -191
- package/lib/motion/shotcraft/upstream/demos/typography/title-demote-to-label/TitleDemoteToLabel.tsx +292 -292
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/LetterformDriftAssembly.tsx +135 -135
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/SplitTextStagger.tsx +124 -124
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/TextOnPath.tsx +255 -255
- package/lib/motion/shotcraft/upstream/demos/typography/type-entrance-moves/LetterDropPhysics.tsx +173 -173
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/FontWeightPump.tsx +225 -225
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/KaraokeFillSync.tsx +141 -141
- package/lib/motion/shotcraft/upstream/demos/typography/typewriter-moves/TypewriterErrorRetype.tsx +137 -137
- package/lib/motion/shotcraft/upstream/demos/typography/vertical-word-roll-blur-cycle/VerticalWordRollBlurCycle.tsx +147 -147
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-filmstrip/WordRelayFilmstrip.tsx +409 -409
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-geometry/WordRelayGeometry.tsx +280 -280
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/avatar-bracket-carousel/AvatarBracketCarousel.tsx +271 -271
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/bezier-source-converge-merge/BezierSourceConvergeMerge.tsx +385 -385
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/card-stack/CardStack.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/carousel-3d/Carousel3D.tsx +303 -303
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/clipcard-looping/ClipCardLooping.tsx +77 -77
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/cloner-depth-echo/ClonerDepthEcho.tsx +311 -311
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/deck-deal-flyin/DeckDealFlyin.tsx +307 -307
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/doc-park-left-pill-deal/DocParkLeftPillDeal.tsx +349 -349
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/document-typewriter-reveal/DocumentTypewriterReveal.tsx +255 -255
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/draw-svg-trace/DrawSvgTrace.tsx +244 -244
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/element-body-moves/ContactShadowLift.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/integration-hub-map/IntegrationHubMap.tsx +652 -652
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-reveal/ListReveal.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-stack-press/ListStackPress.tsx +238 -238
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-forerun/NeonFrameForerun.tsx +324 -324
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +354 -354
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/PageWaterfallWall.tsx +101 -101
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/VerticalTicker.tsx +129 -129
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/product-card-progressive-assemble/ProductCardProgressiveAssemble.tsx +297 -297
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/radial-wave/RadialWave.tsx +57 -57
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/research-card-stack-scroll/ResearchCardStackScroll.tsx +155 -155
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/row-embed/RowEmbed.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/value-stagger-gradient/ValueStaggerGradient.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/BentoLightUp.tsx +146 -146
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/WireframeDrawOn.tsx +226 -226
- package/lib/motion/shotcraft/upstream/gallery/api/library.json +1 -1
- package/lib/motion/shotcraft/upstream/references/aesthetic-rules.md +193 -193
- package/lib/motion/shotcraft/upstream/references/final-review.md +121 -121
- package/lib/motion/shotcraft/upstream/references/guided-free-creation.md +199 -199
- package/lib/motion/shotcraft/upstream/references/jianying-export.md +183 -183
- package/lib/motion/shotcraft/upstream/references/music-beat-sync.md +257 -257
- package/lib/motion/shotcraft/upstream/references/pipeline.md +382 -382
- package/lib/motion/shotcraft/upstream/references/publish-upload-post.md +111 -111
- package/lib/motion/shotcraft/upstream/references/sequences/promo-energy-arc.md +50 -50
- package/lib/motion/shotcraft/upstream/references/sfx-sourcing.md +95 -95
- package/lib/motion/shotcraft/upstream/references/shots/camera/basic-3d-scene.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/camera/crash-zoom-punch.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/camera/cursor-flyover.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/camera/depth-layer-moves.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/camera/graze-face-tour.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/camera/overhead-camera-moves.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/camera/space-camera-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/camera/steep-tilt-glide.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/camera/tension-camera-moves.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/camera/terminal-3d.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/data/before-after-slider-scrub.md +48 -48
- package/lib/motion/shotcraft/upstream/references/shots/data/chart-live-moves.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/data/gauge-readout-moves.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/data/scroll-brake-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/data/timeline-travel.md +44 -44
- package/lib/motion/shotcraft/upstream/references/shots/effects/assemble-then-type-flyin.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/effects/aurora-bloom-bg-flip.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/effects/brand-frame-snap.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/effects/fui-hud-moves.md +35 -35
- package/lib/motion/shotcraft/upstream/references/shots/effects/glow-flyline-moves.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/icon-performance-moves.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/effects/impact-feedback.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/effects/light-play-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/effects/radial-ripple-phone-chips.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/effects/riso-print-hits.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/effects/scan-bracket-sweep.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-annotate-focus.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-assemble-flyin.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/slam-entrance-moves.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/effects/spotlight-sweep-moves.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/interaction/autolayout-gap-dial.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/interaction/canvas-materialize-moves.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/interaction/chip-grid-single-select-blackout.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/interaction/collab-cursor-moves.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/interaction/glass-pill-dictation-typing.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/interaction/hashtag-to-pill-materialize.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/interaction/picker-carousel-feature-cycle.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/interaction/segmented-thumb-hero.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/interaction/theme-switch-moves.md +47 -47
- package/lib/motion/shotcraft/upstream/references/shots/interaction/type-and-filter.md +37 -37
- package/lib/motion/shotcraft/upstream/references/shots/interaction/voice-waveform-live.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/opening/brand-ink-open.md +36 -36
- package/lib/motion/shotcraft/upstream/references/shots/opening/crane-rise-reveal.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/opening/dataviz-landscape-open.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/opening/fracture.md +40 -40
- package/lib/motion/shotcraft/upstream/references/shots/opening/icon-field-colorize.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/opening/letterspace-materialize.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/opening/magician-card-flourish.md +73 -73
- package/lib/motion/shotcraft/upstream/references/shots/opening/orbit-ring-title-open.md +87 -87
- package/lib/motion/shotcraft/upstream/references/shots/opening/spotlight-hero-card.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/opening/stroke-segment-build.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/opening/text-as-mask.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/outro/grain-dissolve.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/outro/logo-shrink-wordmark-lockup.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/outro/neon-triple-marquee.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/outro/outro-group-photo-launch.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-strip-away-outro.md +61 -61
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-to-brand-morph.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-cut-moves.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-step-list-theme-cycle.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/panel-grid-moves.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/quad-split-parallel-scenes.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/rhythm-interrupt-moves.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/sakuga-timing-shift.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/speed-ramp-freeze.md +44 -44
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/trailer-grammar-moves.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/transition/bottom-push-stack-wipe.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flip-reveal.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flock-tumble.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/transition/circle-match-iris.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/transition/gradient-transition.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/transition/line-carry-transition.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/transition/mosaic-reframe.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/transition/page-turn-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/transition/print-texture-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/transition/shot-transitions.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/transition/tear-streak-transitions.md +48 -48
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-hidden-cut.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-travel.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/transition/white-flash-logo-simplify-cut.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/transition/wipe-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/blur-slide.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/typography/brace-expand.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/typography/countdown-arc-scatter.md +65 -65
- package/lib/motion/shotcraft/upstream/references/shots/typography/document-typewriter-reveal.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/flying-words.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/glitch-cycle.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/gradient-word-sweep.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/typography/lead-word-zoom-assemble.md +91 -91
- package/lib/motion/shotcraft/upstream/references/shots/typography/marker-underline-title.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/typography/outline-word-fill.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/typography/paper-title-card.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-chip-slot-cycle-handled.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-slot-cycle.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/typography/text-column-converge.md +61 -61
- package/lib/motion/shotcraft/upstream/references/shots/typography/title-demote-to-label.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-assembly-moves.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-entrance-moves.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-rhythm-sync.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/typography/typewriter-moves.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/vertical-word-roll-blur-cycle.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-filmstrip.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-geometry.md +75 -75
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/avatar-bracket-carousel.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/bezier-source-converge-merge.md +67 -67
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/card-stack.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/carousel-3d.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/cloner-depth-echo.md +40 -40
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/deck-deal-flyin.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/doc-park-left-pill-deal.md +62 -62
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/draw-svg-trace.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/element-body-moves.md +37 -37
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/integration-hub-map.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-reveal.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-stack-press.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-forerun.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-orbit-drop.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/page-waterfall-wall.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/product-card-progressive-assemble.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/radial-wave.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/research-card-stack-scroll.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/row-embed.md +36 -36
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/value-stagger-gradient.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/wall-reveal-moves.md +47 -47
- package/lib/motion/shotcraft/upstream/references/sound-design.md +170 -170
- package/lib/motion/shotcraft/upstream/references/workbench.md +157 -157
- package/lib/motion/shotcraft/upstream/template/TEMPLATE.md +103 -103
- package/lib/motion/shotcraft/upstream/template/THEMES.md +44 -44
- package/lib/motion/shotcraft/upstream/template/package.json +20 -20
- package/lib/motion/shotcraft/upstream/template/remotion.config.ts +6 -6
- package/lib/motion/shotcraft/upstream/template/src/Root.tsx +17 -17
- package/lib/motion/shotcraft/upstream/template/src/aifl/Caption.tsx +65 -65
- package/lib/motion/shotcraft/upstream/template/src/aifl/DigitRoll.tsx +48 -48
- package/lib/motion/shotcraft/upstream/template/src/aifl/FlashCut.tsx +24 -24
- package/lib/motion/shotcraft/upstream/template/src/aifl/Main.tsx +192 -192
- package/lib/motion/shotcraft/upstream/template/src/aifl/PaperTitleCard.tsx +111 -111
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/PageCam.tsx +150 -150
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneDetail.tsx +158 -158
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneFlyIn.tsx +468 -468
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOpen.tsx +552 -552
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOutroLive.tsx +411 -411
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/ScenePapers.tsx +200 -200
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneWbr.tsx +324 -324
- package/lib/motion/shotcraft/upstream/template/src/aifl/live-layout.json +388 -388
- package/lib/motion/shotcraft/upstream/template/src/index.ts +4 -4
- package/lib/motion/shotcraft/upstream/template/src/themes/ThemedFilm.tsx +7 -7
- package/lib/motion/shotcraft/upstream/template/src/themes/manifest.tsx +68 -68
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.json +1 -1
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.ts +24 -24
- package/lib/motion/shotcraft/upstream/template/src/themes/palettes.json +74 -74
- package/lib/motion/shotcraft/upstream/template/src/themes/visual-theme.tsx +91 -91
- package/lib/motion/shotcraft/upstream/template/src/workbench.ts +213 -213
- package/lib/motion/shotcraft/upstream/template/tsconfig.json +15 -15
- package/lib/motion/style-frames.js +306 -306
- package/lib/motion/sync.js +214 -214
- package/lib/motion-library.js +1 -1
- package/lib/motion-project.js +105 -105
- package/lib/motion-render-worker.js +174 -174
- package/lib/routing/router.js +222 -222
- package/lib/routing/vendor/README.md +96 -96
- package/lib/routing/vendor/libavoid-routing.js +753 -753
- package/lib/routing/vendor/libavoid.min.js +59 -59
- package/lib/svg-export.js +1344 -0
- package/lib/video-trace-pool.js +128 -128
- package/package.json +3 -2
- package/LICENSE +0 -4175
|
@@ -1,270 +1,270 @@
|
|
|
1
|
-
// beat-step-list-theme-cycle(bear 22.3–24.6s)——三通道节拍器:形容词列表逐拍上移一行、
|
|
2
|
-
// 视口中央固定胶囊"接住"新词并换色、整场底色同拍跟换;行 / 色 / 场锁同一个拍点。
|
|
3
|
-
//
|
|
4
|
-
// 第二轮重设计(look = custom「五套深场换肤」·video-shotcraft 的主题预设片):
|
|
5
|
-
// - 版式改成一句话:左侧静止的细体「Make it」(132px / 300) + 右侧 960px 胶囊里的形容词 (132px),
|
|
6
|
-
// 读作"Make it modern → playful → expressive → BOLD → yours.",最后一拍落在口号上。
|
|
7
|
-
// - 每个主题 = 胶囊色 + 场底色 + 胶囊上的字色 + **选中词的字体气质**(无衬线 / 圆体 / 衬线斜体 /
|
|
8
|
-
// 全大写 Futura),一拍里同时跳——换肤读作"同一产品多种气质",而不只是换颜色。
|
|
9
|
-
// - 胶囊是一面"透镜":胶囊外是统一的暗白无衬线列表,胶囊里是同一列表的裁切副本(深色字 + 主题字体),
|
|
10
|
-
// 词越过胶囊边缘才换色换字体,跳变中不会出现"还没进胶囊就先变黑"的穿帮;胶囊宽度跟着选中词
|
|
11
|
-
// 的实测字宽走(同一个 tInBeat 插值),不再是一条一半空着的长条。
|
|
12
|
-
// - 场不是平涂:底色 + 胶囊同色相大光晕(跟同一时钟换色)+ 左上冷白主光 + 暗角 + 颗粒;
|
|
13
|
-
// 列表按离视口中心的行距衰减透明度 / 字号 / 虚化(滚轮景深),拍头跳变带竖向运动模糊。
|
|
14
|
-
// - 元素层的第四路回声:右上「THEME 03 / 05」计数、左下五枚色票,都挂同一个 beat 整数换态。
|
|
15
|
-
//
|
|
16
|
-
// 时间表(30fps,共 140f):
|
|
17
|
-
// 0–16 入场:「Make it」与列表由虚到实上浮,胶囊横向展开(snappy)
|
|
18
|
-
// 16–30 铺垫静置(极缓推镜 1.0→1.03 全程),观众读清"这是个列表"
|
|
19
|
-
// 30/48/66/84 四拍(BEAT_LEN 18f ≈ 100BPM):拍头 6f 陡 ease-out 跳变 + squash,其余 12f 静置
|
|
20
|
-
// 84–96 末拍余波:口号行「Your product, in motion.」逐词升起
|
|
21
|
-
// 96–140 hold:停在 "Make it yours." 黄 / 深海军蓝的终态海报
|
|
22
|
-
import React from 'react';
|
|
23
|
-
import { AbsoluteFill, interpolate, useCurrentFrame } from 'remotion';
|
|
24
|
-
import { FONT, Grain, SpeedBlur, Vignette, mix, ramp, velocity, EASE } from '../../_fixtures/Polish';
|
|
25
|
-
import { SERIF, TextReveal, alpha } from '../../_fixtures/Look';
|
|
26
|
-
import { PITCH, ShotcraftWordmark } from '../../_fixtures/Brand';
|
|
27
|
-
|
|
28
|
-
export const BEAT_STEP_LIST_THEME_CYCLE_DURATION = 140; // 铺垫 30f + 4 拍 × 18f + 末拍后 hold 38f
|
|
29
|
-
|
|
30
|
-
const ROW_H = 176;
|
|
31
|
-
const FS = 132; // 形容词字号
|
|
32
|
-
const CY = 520; // 视口中心行(略高于画面中线,给底部色票 / 口号留位)
|
|
33
|
-
// 上方垫两行、下方垫两行未选中词:起拍时 modern 在中心,末拍停在 yours. 下面仍有词垫着
|
|
34
|
-
const WORDS = ['minimal', 'clean', 'modern', 'playful', 'expressive', 'bold', 'yours.', 'timeless', 'quiet'];
|
|
35
|
-
const START_IDX = 2; // modern
|
|
36
|
-
|
|
37
|
-
// 拍点:~0.6s 一拍 = 18 帧
|
|
38
|
-
const BEAT_LEN = 18;
|
|
39
|
-
const FIRST_BEAT = 30;
|
|
40
|
-
const N_BEATS = 4;
|
|
41
|
-
const JUMP = 6; // 跳变窗:拍头 6f,其余 12f 完全静置
|
|
42
|
-
|
|
43
|
-
// 版式:「Make it」+ 胶囊整体按中位胶囊宽水平居中;胶囊宽度跟着选中词走(同一时钟插值)
|
|
44
|
-
const PILL_H = 156;
|
|
45
|
-
const PAD_L = 64; // 胶囊内左边距
|
|
46
|
-
const PAD_R = 76; // 右边距略大(视觉居中:小写词右侧有字怀留白)
|
|
47
|
-
const LEAD_W = 470; // 「Make it」占位宽
|
|
48
|
-
const GAP = 34;
|
|
49
|
-
const MID_PILL = 560;
|
|
50
|
-
const LEFT = (1920 - (LEAD_W + GAP + MID_PILL)) / 2; // 428
|
|
51
|
-
const PILL_X = LEFT + LEAD_W + GAP; // 932
|
|
52
|
-
const WORD_X = PILL_X + PAD_L; // 胶囊内左对齐起点
|
|
53
|
-
const MARGIN = 128; // 角落信息的安全边距
|
|
54
|
-
|
|
55
|
-
// 词的排版盒:整行高、左对齐、竖向居中(外层列表与胶囊透镜共用,保证两层逐像素重合)
|
|
56
|
-
const wordBox: React.CSSProperties = {
|
|
57
|
-
position: 'absolute', top: 0, height: ROW_H, display: 'flex', alignItems: 'center',
|
|
58
|
-
fontSize: FS, lineHeight: 1, letterSpacing: '-0.035em', whiteSpace: 'nowrap', transformOrigin: '0% 50%',
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
// 主题字体(系统字体栈,Chrome 里 ui-rounded 不生效,圆体用 Arial Rounded;缺字体时回落无衬线)
|
|
62
|
-
const ROUNDED = `"Arial Rounded MT Bold", "SF Pro Rounded", ${FONT.sans}`;
|
|
63
|
-
const GEOMETRIC = `Futura, "Avenir Next", ${FONT.sans}`;
|
|
64
|
-
|
|
65
|
-
// ink = 选中词实测字宽(1080p 渲染帧量得,132px),胶囊宽 = ink + 左右边距
|
|
66
|
-
type Theme = { name: string; pill: string; bg: string; ink: string; inkW: number; font: React.CSSProperties };
|
|
67
|
-
// 起始态 + 四拍;相邻底色同明度不同色相(都 ≈ L6–9 的深场),胶囊色与底色是配好的深浅对
|
|
68
|
-
const THEMES: Theme[] = [
|
|
69
|
-
{ name: 'Bone', pill: '#ece6da', bg: '#15120f', ink: '#17130f', inkW: 425, font: { fontFamily: FONT.sans, fontWeight: 700 } },
|
|
70
|
-
{ name: 'Tangerine', pill: '#ff8a3d', bg: '#1d0e17', ink: '#260e03', inkW: 384, font: { fontFamily: ROUNDED, fontWeight: 700, letterSpacing: '-0.03em' } },
|
|
71
|
-
{ name: 'Iris', pill: '#9d8aff', bg: '#0f0d25', ink: '#120b36', inkW: 540, font: { fontFamily: SERIF, fontWeight: 600, fontStyle: 'italic', letterSpacing: '-0.02em' } },
|
|
72
|
-
{ name: 'Mint', pill: '#38d690', bg: '#06181a', ink: '#03150d', inkW: 376, font: { fontFamily: GEOMETRIC, fontWeight: 700, textTransform: 'uppercase', letterSpacing: '0.01em' } },
|
|
73
|
-
{ name: 'Sun', pill: '#ffd43b', bg: '#0f1834', ink: '#1a1404', inkW: 352, font: { fontFamily: FONT.sans, fontWeight: 800 } },
|
|
74
|
-
];
|
|
75
|
-
|
|
76
|
-
// 拍内跳变:陡 ease-out(指数 3.2),6 帧内完成
|
|
77
|
-
const snap = (t: number) => 1 - Math.pow(1 - Math.min(1, Math.max(0, t)), 3.2);
|
|
78
|
-
|
|
79
|
-
const hex = (a: string) => [1, 3, 5].map((i) => parseInt(a.slice(i, i + 2), 16));
|
|
80
|
-
const mixRgb = (a: string, b: string, t: number) => {
|
|
81
|
-
const pa = hex(a);
|
|
82
|
-
const pb = hex(b);
|
|
83
|
-
return pa.map((v, i) => Math.round(v + (pb[i] - v) * t));
|
|
84
|
-
};
|
|
85
|
-
const css = (c: number[], a = 1) => (a >= 1 ? `rgb(${c.join(',')})` : `rgba(${c.join(',')},${a.toFixed(3)})`);
|
|
86
|
-
const lighten = (c: number[], k: number) => c.map((v) => Math.round(v + (255 - v) * k));
|
|
87
|
-
const darken = (c: number[], k: number) => c.map((v) => Math.round(v * (1 - k)));
|
|
88
|
-
|
|
89
|
-
// 一个时钟:已触发拍数 + 拍内进度(跳变只占拍头 JUMP 帧)——三通道全部从这里取值
|
|
90
|
-
const clock = (frame: number) => {
|
|
91
|
-
const raw = (frame - FIRST_BEAT) / BEAT_LEN;
|
|
92
|
-
const beat = Math.min(N_BEATS, Math.max(0, Math.floor(raw) + 1));
|
|
93
|
-
const beatStart = FIRST_BEAT + (beat - 1) * BEAT_LEN;
|
|
94
|
-
const tInBeat = beat === 0 ? 1 : snap((frame - beatStart) / JUMP);
|
|
95
|
-
const step = beat === 0 ? 0 : beat - 1 + tInBeat; // 连续步进量
|
|
96
|
-
return { beat, tInBeat, step, sinceBeat: beat === 0 ? 99 : frame - beatStart };
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export const BeatStepListThemeCycle: React.FC = () => {
|
|
100
|
-
const frame = useCurrentFrame();
|
|
101
|
-
const { beat, tInBeat, step, sinceBeat } = clock(frame);
|
|
102
|
-
|
|
103
|
-
// 三通道 —— 1) 列表上移一行
|
|
104
|
-
const listY = -step * ROW_H;
|
|
105
|
-
const vy = velocity((f) => -clock(f).step * ROW_H, frame); // px/帧,喂运动模糊
|
|
106
|
-
|
|
107
|
-
// 2) 胶囊 / 3) 场底色:同一个 tInBeat 逐通道 cross-mix
|
|
108
|
-
const prev = THEMES[Math.max(0, beat - 1)];
|
|
109
|
-
const now = THEMES[beat];
|
|
110
|
-
const mixT = beat === 0 ? 1 : tInBeat;
|
|
111
|
-
const pill = mixRgb(prev.pill, now.pill, mixT);
|
|
112
|
-
const bg = mixRgb(prev.bg, now.bg, mixT);
|
|
113
|
-
const bgColor = css(bg);
|
|
114
|
-
const pillW = mix(prev.inkW, now.inkW, mixT) + PAD_L + PAD_R;
|
|
115
|
-
|
|
116
|
-
// 胶囊落位 squash:竖向 1.14→0.96→1、横向反相 0.97→1.01→1(体积守恒感),随拍头 6f 走完
|
|
117
|
-
const sy = beat === 0 ? 1 : interpolate(tInBeat, [0, 0.6, 1], [1.14, 0.96, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
118
|
-
const sx = beat === 0 ? 1 : interpolate(tInBeat, [0, 0.6, 1], [0.97, 1.01, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
119
|
-
// 接住瞬间胶囊提亮 + 辉光涨一下,8f 指数收回
|
|
120
|
-
const hit = beat === 0 ? 0 : Math.exp(-sinceBeat / 3.2);
|
|
121
|
-
|
|
122
|
-
// 入场(0–16f):胶囊横向展开、文字由虚到实
|
|
123
|
-
const open = ramp(frame, 2, 16, EASE.snappy);
|
|
124
|
-
const listIn = ramp(frame, 4, 18, EASE.out);
|
|
125
|
-
|
|
126
|
-
// 全程极缓推镜(1.0→1.03,smooth 起止无速度突变)
|
|
127
|
-
const cam = mix(1, 1.03, ramp(frame, 0, BEAT_STEP_LIST_THEME_CYCLE_DURATION, EASE.smooth));
|
|
128
|
-
|
|
129
|
-
const listPos = START_IDX + step; // 视口中心对应的连续行号
|
|
130
|
-
|
|
131
|
-
// 末拍余波:口号逐词升起
|
|
132
|
-
const LAST = FIRST_BEAT + (N_BEATS - 1) * BEAT_LEN;
|
|
133
|
-
|
|
134
|
-
return (
|
|
135
|
-
<AbsoluteFill style={{ background: bgColor, overflow: 'hidden', fontFamily: FONT.sans }}>
|
|
136
|
-
{/* 场:左上冷白主光 + 胶囊同色相大光晕(跟同一时钟换色) */}
|
|
137
|
-
<AbsoluteFill style={{
|
|
138
|
-
background:
|
|
139
|
-
`radial-gradient(ellipse 60% 70% at 62% ${(CY / 1080) * 100}%, ${css(pill, 0.2 + 0.06 * hit)} 0%, ${css(pill, 0.06)} 45%, ${css(pill, 0)} 75%),` +
|
|
140
|
-
`radial-gradient(ellipse 55% 55% at 18% 0%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 70%)`,
|
|
141
|
-
}} />
|
|
142
|
-
|
|
143
|
-
<AbsoluteFill style={{ transform: `scale(${cam})`, transformOrigin: `${PILL_X}px ${CY}px` }}>
|
|
144
|
-
{/* 词列表(胶囊外层):统一的暗白无衬线,按行距衰减;拍头跳变带竖向运动模糊,静置帧不挂滤镜 */}
|
|
145
|
-
<SpeedBlur vx={0} vy={vy} amount={0.16} max={9}>
|
|
146
|
-
<div style={{
|
|
147
|
-
position: 'absolute', left: 0, right: 0, top: CY - ROW_H / 2 - START_IDX * ROW_H,
|
|
148
|
-
transform: `translateY(${(listY + (1 - listIn) * 40).toFixed(2)}px)`,
|
|
149
|
-
}}>
|
|
150
|
-
{WORDS.map((w, i) => {
|
|
151
|
-
const d = Math.abs(i - listPos); // 离视口中心几行(连续值)
|
|
152
|
-
const op = Math.max(0, 0.42 - 0.15 * Math.max(0, d - 1)) * listIn;
|
|
153
|
-
const sc = 1 - Math.min(0.14, 0.05 * Math.max(0, d - 0.5));
|
|
154
|
-
const blur = Math.max(0, d - 1.2) * 3.5 + (1 - listIn) * 10;
|
|
155
|
-
return (
|
|
156
|
-
<div key={w} style={{ height: ROW_H, position: 'relative' }}>
|
|
157
|
-
<span style={{
|
|
158
|
-
...wordBox, left: WORD_X, fontFamily: FONT.sans, fontWeight: 700,
|
|
159
|
-
color: `rgba(255,255,255,${op.toFixed(3)})`,
|
|
160
|
-
transform: `scale(${sc.toFixed(4)})`,
|
|
161
|
-
filter: blur > 0.3 ? `blur(${blur.toFixed(2)}px)` : undefined,
|
|
162
|
-
}}>{w}</span>
|
|
163
|
-
</div>
|
|
164
|
-
);
|
|
165
|
-
})}
|
|
166
|
-
</div>
|
|
167
|
-
</SpeedBlur>
|
|
168
|
-
|
|
169
|
-
{/* 中央固定胶囊 = 透镜:列表在其下滚动,胶囊里是同一列表的裁切副本(深色字 + 该词的主题字体),
|
|
170
|
-
词越过胶囊边缘的那一刻才换字色 / 字体——视觉上"胶囊跳到下一行接住新词" */}
|
|
171
|
-
<div style={{
|
|
172
|
-
position: 'absolute', left: PILL_X, top: CY - PILL_H / 2, width: pillW, height: PILL_H,
|
|
173
|
-
transformOrigin: '0% 50%', transform: `scale(${(sx * mix(0.55, 1, open)).toFixed(4)}, ${sy.toFixed(4)})`,
|
|
174
|
-
opacity: Math.min(1, open * 2.5), borderRadius: PILL_H / 2, overflow: 'hidden',
|
|
175
|
-
background: `linear-gradient(180deg, ${css(lighten(pill, 0.16 + 0.07 * hit))} 0%, ${css(lighten(pill, 0.03 * hit))} 50%, ${css(darken(pill, 0.1))} 100%)`,
|
|
176
|
-
boxShadow: [
|
|
177
|
-
'inset 0 2px 0 rgba(255,255,255,0.5)',
|
|
178
|
-
'inset 0 -3px 8px rgba(0,0,0,0.12)',
|
|
179
|
-
'0 3px 6px rgba(0,0,0,0.35)',
|
|
180
|
-
`0 30px 90px -20px ${css(pill, 0.5 + 0.25 * hit)}`,
|
|
181
|
-
`0 0 ${(40 + 60 * hit).toFixed(1)}px ${css(pill, 0.18 + 0.2 * hit)}`,
|
|
182
|
-
].join(', '),
|
|
183
|
-
}}>
|
|
184
|
-
<SpeedBlur vx={0} vy={vy} amount={0.16} max={9}>
|
|
185
|
-
<div style={{
|
|
186
|
-
position: 'absolute', left: 0, right: 0, top: PILL_H / 2 - ROW_H / 2 - START_IDX * ROW_H,
|
|
187
|
-
transform: `translateY(${listY.toFixed(2)}px)`,
|
|
188
|
-
}}>
|
|
189
|
-
{WORDS.map((w, i) => {
|
|
190
|
-
const k = i - START_IDX;
|
|
191
|
-
const th = k >= 0 && k < THEMES.length ? THEMES[k] : null;
|
|
192
|
-
return (
|
|
193
|
-
<div key={w} style={{ height: ROW_H, position: 'relative' }}>
|
|
194
|
-
<span style={{
|
|
195
|
-
...wordBox, left: PAD_L, fontFamily: FONT.sans, fontWeight: 700, ...(th ? th.font : null),
|
|
196
|
-
color: th ? th.ink : THEMES[0].ink, opacity: Math.min(1, open * 2),
|
|
197
|
-
}}>{w}</span>
|
|
198
|
-
</div>
|
|
199
|
-
);
|
|
200
|
-
})}
|
|
201
|
-
</div>
|
|
202
|
-
</SpeedBlur>
|
|
203
|
-
{/* 胶囊顶部受光:一条贴着上沿的柔高光,盖在字上让字"在胶囊里" */}
|
|
204
|
-
<div style={{ position: 'absolute', left: 0, right: 0, top: 0, height: PILL_H * 0.45, background: 'linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0))', pointerEvents: 'none' }} />
|
|
205
|
-
</div>
|
|
206
|
-
|
|
207
|
-
{/* 「Make it」:静止的锚,细体 + 右对齐贴着胶囊 */}
|
|
208
|
-
<div style={{
|
|
209
|
-
position: 'absolute', left: LEFT, width: LEAD_W, top: CY - FS * 0.62, textAlign: 'right',
|
|
210
|
-
fontSize: FS, fontWeight: 300, letterSpacing: '-0.035em', lineHeight: 1.2, color: 'rgba(255,255,255,0.94)',
|
|
211
|
-
whiteSpace: 'nowrap',
|
|
212
|
-
}}>
|
|
213
|
-
<TextReveal text="Make it" by="word" variant="blur" start={2} each={16} gap={4} />
|
|
214
|
-
</div>
|
|
215
|
-
</AbsoluteFill>
|
|
216
|
-
|
|
217
|
-
{/* 视口上下羽化:颜色跟 bgColor 实时同步,换场不穿帮 */}
|
|
218
|
-
<div style={{ position: 'absolute', left: 0, right: 0, top: 0, height: 300, background: `linear-gradient(${bgColor} 34%, ${css(bg, 0)})` }} />
|
|
219
|
-
<div style={{ position: 'absolute', left: 0, right: 0, bottom: 0, height: 330, background: `linear-gradient(${css(bg, 0)}, ${bgColor} 62%)` }} />
|
|
220
|
-
|
|
221
|
-
{/* 顶栏:品牌 + 主题计数(挂同一个整数拍,拍头 6f 竖向滚一格) */}
|
|
222
|
-
<div style={{ position: 'absolute', left: MARGIN, top: 96, opacity: ramp(frame, 0, 12, EASE.out) }}>
|
|
223
|
-
<ShotcraftWordmark size={30} markScale={1.6} gap={14} tone="dark" />
|
|
224
|
-
</div>
|
|
225
|
-
<div style={{
|
|
226
|
-
position: 'absolute', right: MARGIN, top: 98, display: 'flex', alignItems: 'baseline', gap: 18,
|
|
227
|
-
opacity: ramp(frame, 0, 12, EASE.out), fontVariantNumeric: 'tabular-nums',
|
|
228
|
-
}}>
|
|
229
|
-
<span style={{ fontSize: 24, fontWeight: 600, letterSpacing: '0.16em', color: 'rgba(255,255,255,0.5)' }}>THEME</span>
|
|
230
|
-
<span style={{ display: 'inline-block', height: 38, overflow: 'hidden', fontFamily: FONT.mono, fontSize: 32, fontWeight: 500, color: '#fff' }}>
|
|
231
|
-
<span style={{ display: 'block', transform: `translateY(${(-(beat - 1 + (beat === 0 ? 1 : tInBeat)) * 38).toFixed(2)}px)` }}>
|
|
232
|
-
{THEMES.map((_, k) => <span key={k} style={{ display: 'block', height: 38, lineHeight: '38px' }}>{String(k + 1).padStart(2, '0')}</span>)}
|
|
233
|
-
</span>
|
|
234
|
-
</span>
|
|
235
|
-
<span style={{ fontFamily: FONT.mono, fontSize: 32, color: 'rgba(255,255,255,0.4)' }}>/ 05</span>
|
|
236
|
-
</div>
|
|
237
|
-
|
|
238
|
-
{/* 左下:五枚色票,当前主题放大 + 描圈(整数拍换态,拍头 6f 弹到位) */}
|
|
239
|
-
<div style={{ position: 'absolute', left: MARGIN, top: 900, display: 'flex', alignItems: 'center', gap: 22 }}>
|
|
240
|
-
{THEMES.map((t, k) => {
|
|
241
|
-
const cur = k === beat;
|
|
242
|
-
const pop = cur ? (beat === 0 ? 1 : interpolate(tInBeat, [0, 0.6, 1], [0.7, 1.12, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' })) : 1;
|
|
243
|
-
const appear = ramp(frame, 6 + k * 2, 12, EASE.overshoot);
|
|
244
|
-
return (
|
|
245
|
-
<div key={t.name} style={{
|
|
246
|
-
width: 46, height: 46, borderRadius: 23, background: t.pill,
|
|
247
|
-
transform: `scale(${((cur ? 1 : 0.62) * pop * appear).toFixed(4)})`, opacity: cur ? 1 : k < beat ? 0.55 : 0.32,
|
|
248
|
-
boxShadow: cur ? `0 0 0 5px ${bgColor}, 0 0 0 7px rgba(255,255,255,0.85), 0 0 30px ${alpha(t.pill, 0.6)}` : 'none',
|
|
249
|
-
}} />
|
|
250
|
-
);
|
|
251
|
-
})}
|
|
252
|
-
<span style={{
|
|
253
|
-
marginLeft: 18, fontSize: 32, fontWeight: 600, color: 'rgba(255,255,255,0.88)', letterSpacing: '-0.01em',
|
|
254
|
-
opacity: ramp(frame, 8, 12, EASE.out),
|
|
255
|
-
}}>{now.name}</span>
|
|
256
|
-
</div>
|
|
257
|
-
|
|
258
|
-
{/* 末拍余波:口号逐词升起,右下对齐胶囊右沿 */}
|
|
259
|
-
<div style={{
|
|
260
|
-
position: 'absolute', right: MARGIN, top: 896, fontSize: 40, fontWeight: 500,
|
|
261
|
-
color: 'rgba(255,255,255,0.72)', letterSpacing: '-0.015em', whiteSpace: 'nowrap',
|
|
262
|
-
}}>
|
|
263
|
-
<TextReveal text={PITCH.en.taglines[5]} by="word" variant="rise" start={LAST + 6} each={16} gap={3} />
|
|
264
|
-
</div>
|
|
265
|
-
|
|
266
|
-
<Vignette strength={0.5} inner={0.42} color="#020306" />
|
|
267
|
-
<Grain opacity={0.09} blend="soft-light" />
|
|
268
|
-
</AbsoluteFill>
|
|
269
|
-
);
|
|
270
|
-
};
|
|
1
|
+
// beat-step-list-theme-cycle(bear 22.3–24.6s)——三通道节拍器:形容词列表逐拍上移一行、
|
|
2
|
+
// 视口中央固定胶囊"接住"新词并换色、整场底色同拍跟换;行 / 色 / 场锁同一个拍点。
|
|
3
|
+
//
|
|
4
|
+
// 第二轮重设计(look = custom「五套深场换肤」·video-shotcraft 的主题预设片):
|
|
5
|
+
// - 版式改成一句话:左侧静止的细体「Make it」(132px / 300) + 右侧 960px 胶囊里的形容词 (132px),
|
|
6
|
+
// 读作"Make it modern → playful → expressive → BOLD → yours.",最后一拍落在口号上。
|
|
7
|
+
// - 每个主题 = 胶囊色 + 场底色 + 胶囊上的字色 + **选中词的字体气质**(无衬线 / 圆体 / 衬线斜体 /
|
|
8
|
+
// 全大写 Futura),一拍里同时跳——换肤读作"同一产品多种气质",而不只是换颜色。
|
|
9
|
+
// - 胶囊是一面"透镜":胶囊外是统一的暗白无衬线列表,胶囊里是同一列表的裁切副本(深色字 + 主题字体),
|
|
10
|
+
// 词越过胶囊边缘才换色换字体,跳变中不会出现"还没进胶囊就先变黑"的穿帮;胶囊宽度跟着选中词
|
|
11
|
+
// 的实测字宽走(同一个 tInBeat 插值),不再是一条一半空着的长条。
|
|
12
|
+
// - 场不是平涂:底色 + 胶囊同色相大光晕(跟同一时钟换色)+ 左上冷白主光 + 暗角 + 颗粒;
|
|
13
|
+
// 列表按离视口中心的行距衰减透明度 / 字号 / 虚化(滚轮景深),拍头跳变带竖向运动模糊。
|
|
14
|
+
// - 元素层的第四路回声:右上「THEME 03 / 05」计数、左下五枚色票,都挂同一个 beat 整数换态。
|
|
15
|
+
//
|
|
16
|
+
// 时间表(30fps,共 140f):
|
|
17
|
+
// 0–16 入场:「Make it」与列表由虚到实上浮,胶囊横向展开(snappy)
|
|
18
|
+
// 16–30 铺垫静置(极缓推镜 1.0→1.03 全程),观众读清"这是个列表"
|
|
19
|
+
// 30/48/66/84 四拍(BEAT_LEN 18f ≈ 100BPM):拍头 6f 陡 ease-out 跳变 + squash,其余 12f 静置
|
|
20
|
+
// 84–96 末拍余波:口号行「Your product, in motion.」逐词升起
|
|
21
|
+
// 96–140 hold:停在 "Make it yours." 黄 / 深海军蓝的终态海报
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { AbsoluteFill, interpolate, useCurrentFrame } from 'remotion';
|
|
24
|
+
import { FONT, Grain, SpeedBlur, Vignette, mix, ramp, velocity, EASE } from '../../_fixtures/Polish';
|
|
25
|
+
import { SERIF, TextReveal, alpha } from '../../_fixtures/Look';
|
|
26
|
+
import { PITCH, ShotcraftWordmark } from '../../_fixtures/Brand';
|
|
27
|
+
|
|
28
|
+
export const BEAT_STEP_LIST_THEME_CYCLE_DURATION = 140; // 铺垫 30f + 4 拍 × 18f + 末拍后 hold 38f
|
|
29
|
+
|
|
30
|
+
const ROW_H = 176;
|
|
31
|
+
const FS = 132; // 形容词字号
|
|
32
|
+
const CY = 520; // 视口中心行(略高于画面中线,给底部色票 / 口号留位)
|
|
33
|
+
// 上方垫两行、下方垫两行未选中词:起拍时 modern 在中心,末拍停在 yours. 下面仍有词垫着
|
|
34
|
+
const WORDS = ['minimal', 'clean', 'modern', 'playful', 'expressive', 'bold', 'yours.', 'timeless', 'quiet'];
|
|
35
|
+
const START_IDX = 2; // modern
|
|
36
|
+
|
|
37
|
+
// 拍点:~0.6s 一拍 = 18 帧
|
|
38
|
+
const BEAT_LEN = 18;
|
|
39
|
+
const FIRST_BEAT = 30;
|
|
40
|
+
const N_BEATS = 4;
|
|
41
|
+
const JUMP = 6; // 跳变窗:拍头 6f,其余 12f 完全静置
|
|
42
|
+
|
|
43
|
+
// 版式:「Make it」+ 胶囊整体按中位胶囊宽水平居中;胶囊宽度跟着选中词走(同一时钟插值)
|
|
44
|
+
const PILL_H = 156;
|
|
45
|
+
const PAD_L = 64; // 胶囊内左边距
|
|
46
|
+
const PAD_R = 76; // 右边距略大(视觉居中:小写词右侧有字怀留白)
|
|
47
|
+
const LEAD_W = 470; // 「Make it」占位宽
|
|
48
|
+
const GAP = 34;
|
|
49
|
+
const MID_PILL = 560;
|
|
50
|
+
const LEFT = (1920 - (LEAD_W + GAP + MID_PILL)) / 2; // 428
|
|
51
|
+
const PILL_X = LEFT + LEAD_W + GAP; // 932
|
|
52
|
+
const WORD_X = PILL_X + PAD_L; // 胶囊内左对齐起点
|
|
53
|
+
const MARGIN = 128; // 角落信息的安全边距
|
|
54
|
+
|
|
55
|
+
// 词的排版盒:整行高、左对齐、竖向居中(外层列表与胶囊透镜共用,保证两层逐像素重合)
|
|
56
|
+
const wordBox: React.CSSProperties = {
|
|
57
|
+
position: 'absolute', top: 0, height: ROW_H, display: 'flex', alignItems: 'center',
|
|
58
|
+
fontSize: FS, lineHeight: 1, letterSpacing: '-0.035em', whiteSpace: 'nowrap', transformOrigin: '0% 50%',
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// 主题字体(系统字体栈,Chrome 里 ui-rounded 不生效,圆体用 Arial Rounded;缺字体时回落无衬线)
|
|
62
|
+
const ROUNDED = `"Arial Rounded MT Bold", "SF Pro Rounded", ${FONT.sans}`;
|
|
63
|
+
const GEOMETRIC = `Futura, "Avenir Next", ${FONT.sans}`;
|
|
64
|
+
|
|
65
|
+
// ink = 选中词实测字宽(1080p 渲染帧量得,132px),胶囊宽 = ink + 左右边距
|
|
66
|
+
type Theme = { name: string; pill: string; bg: string; ink: string; inkW: number; font: React.CSSProperties };
|
|
67
|
+
// 起始态 + 四拍;相邻底色同明度不同色相(都 ≈ L6–9 的深场),胶囊色与底色是配好的深浅对
|
|
68
|
+
const THEMES: Theme[] = [
|
|
69
|
+
{ name: 'Bone', pill: '#ece6da', bg: '#15120f', ink: '#17130f', inkW: 425, font: { fontFamily: FONT.sans, fontWeight: 700 } },
|
|
70
|
+
{ name: 'Tangerine', pill: '#ff8a3d', bg: '#1d0e17', ink: '#260e03', inkW: 384, font: { fontFamily: ROUNDED, fontWeight: 700, letterSpacing: '-0.03em' } },
|
|
71
|
+
{ name: 'Iris', pill: '#9d8aff', bg: '#0f0d25', ink: '#120b36', inkW: 540, font: { fontFamily: SERIF, fontWeight: 600, fontStyle: 'italic', letterSpacing: '-0.02em' } },
|
|
72
|
+
{ name: 'Mint', pill: '#38d690', bg: '#06181a', ink: '#03150d', inkW: 376, font: { fontFamily: GEOMETRIC, fontWeight: 700, textTransform: 'uppercase', letterSpacing: '0.01em' } },
|
|
73
|
+
{ name: 'Sun', pill: '#ffd43b', bg: '#0f1834', ink: '#1a1404', inkW: 352, font: { fontFamily: FONT.sans, fontWeight: 800 } },
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
// 拍内跳变:陡 ease-out(指数 3.2),6 帧内完成
|
|
77
|
+
const snap = (t: number) => 1 - Math.pow(1 - Math.min(1, Math.max(0, t)), 3.2);
|
|
78
|
+
|
|
79
|
+
const hex = (a: string) => [1, 3, 5].map((i) => parseInt(a.slice(i, i + 2), 16));
|
|
80
|
+
const mixRgb = (a: string, b: string, t: number) => {
|
|
81
|
+
const pa = hex(a);
|
|
82
|
+
const pb = hex(b);
|
|
83
|
+
return pa.map((v, i) => Math.round(v + (pb[i] - v) * t));
|
|
84
|
+
};
|
|
85
|
+
const css = (c: number[], a = 1) => (a >= 1 ? `rgb(${c.join(',')})` : `rgba(${c.join(',')},${a.toFixed(3)})`);
|
|
86
|
+
const lighten = (c: number[], k: number) => c.map((v) => Math.round(v + (255 - v) * k));
|
|
87
|
+
const darken = (c: number[], k: number) => c.map((v) => Math.round(v * (1 - k)));
|
|
88
|
+
|
|
89
|
+
// 一个时钟:已触发拍数 + 拍内进度(跳变只占拍头 JUMP 帧)——三通道全部从这里取值
|
|
90
|
+
const clock = (frame: number) => {
|
|
91
|
+
const raw = (frame - FIRST_BEAT) / BEAT_LEN;
|
|
92
|
+
const beat = Math.min(N_BEATS, Math.max(0, Math.floor(raw) + 1));
|
|
93
|
+
const beatStart = FIRST_BEAT + (beat - 1) * BEAT_LEN;
|
|
94
|
+
const tInBeat = beat === 0 ? 1 : snap((frame - beatStart) / JUMP);
|
|
95
|
+
const step = beat === 0 ? 0 : beat - 1 + tInBeat; // 连续步进量
|
|
96
|
+
return { beat, tInBeat, step, sinceBeat: beat === 0 ? 99 : frame - beatStart };
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const BeatStepListThemeCycle: React.FC = () => {
|
|
100
|
+
const frame = useCurrentFrame();
|
|
101
|
+
const { beat, tInBeat, step, sinceBeat } = clock(frame);
|
|
102
|
+
|
|
103
|
+
// 三通道 —— 1) 列表上移一行
|
|
104
|
+
const listY = -step * ROW_H;
|
|
105
|
+
const vy = velocity((f) => -clock(f).step * ROW_H, frame); // px/帧,喂运动模糊
|
|
106
|
+
|
|
107
|
+
// 2) 胶囊 / 3) 场底色:同一个 tInBeat 逐通道 cross-mix
|
|
108
|
+
const prev = THEMES[Math.max(0, beat - 1)];
|
|
109
|
+
const now = THEMES[beat];
|
|
110
|
+
const mixT = beat === 0 ? 1 : tInBeat;
|
|
111
|
+
const pill = mixRgb(prev.pill, now.pill, mixT);
|
|
112
|
+
const bg = mixRgb(prev.bg, now.bg, mixT);
|
|
113
|
+
const bgColor = css(bg);
|
|
114
|
+
const pillW = mix(prev.inkW, now.inkW, mixT) + PAD_L + PAD_R;
|
|
115
|
+
|
|
116
|
+
// 胶囊落位 squash:竖向 1.14→0.96→1、横向反相 0.97→1.01→1(体积守恒感),随拍头 6f 走完
|
|
117
|
+
const sy = beat === 0 ? 1 : interpolate(tInBeat, [0, 0.6, 1], [1.14, 0.96, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
118
|
+
const sx = beat === 0 ? 1 : interpolate(tInBeat, [0, 0.6, 1], [0.97, 1.01, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
119
|
+
// 接住瞬间胶囊提亮 + 辉光涨一下,8f 指数收回
|
|
120
|
+
const hit = beat === 0 ? 0 : Math.exp(-sinceBeat / 3.2);
|
|
121
|
+
|
|
122
|
+
// 入场(0–16f):胶囊横向展开、文字由虚到实
|
|
123
|
+
const open = ramp(frame, 2, 16, EASE.snappy);
|
|
124
|
+
const listIn = ramp(frame, 4, 18, EASE.out);
|
|
125
|
+
|
|
126
|
+
// 全程极缓推镜(1.0→1.03,smooth 起止无速度突变)
|
|
127
|
+
const cam = mix(1, 1.03, ramp(frame, 0, BEAT_STEP_LIST_THEME_CYCLE_DURATION, EASE.smooth));
|
|
128
|
+
|
|
129
|
+
const listPos = START_IDX + step; // 视口中心对应的连续行号
|
|
130
|
+
|
|
131
|
+
// 末拍余波:口号逐词升起
|
|
132
|
+
const LAST = FIRST_BEAT + (N_BEATS - 1) * BEAT_LEN;
|
|
133
|
+
|
|
134
|
+
return (
|
|
135
|
+
<AbsoluteFill style={{ background: bgColor, overflow: 'hidden', fontFamily: FONT.sans }}>
|
|
136
|
+
{/* 场:左上冷白主光 + 胶囊同色相大光晕(跟同一时钟换色) */}
|
|
137
|
+
<AbsoluteFill style={{
|
|
138
|
+
background:
|
|
139
|
+
`radial-gradient(ellipse 60% 70% at 62% ${(CY / 1080) * 100}%, ${css(pill, 0.2 + 0.06 * hit)} 0%, ${css(pill, 0.06)} 45%, ${css(pill, 0)} 75%),` +
|
|
140
|
+
`radial-gradient(ellipse 55% 55% at 18% 0%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 70%)`,
|
|
141
|
+
}} />
|
|
142
|
+
|
|
143
|
+
<AbsoluteFill style={{ transform: `scale(${cam})`, transformOrigin: `${PILL_X}px ${CY}px` }}>
|
|
144
|
+
{/* 词列表(胶囊外层):统一的暗白无衬线,按行距衰减;拍头跳变带竖向运动模糊,静置帧不挂滤镜 */}
|
|
145
|
+
<SpeedBlur vx={0} vy={vy} amount={0.16} max={9}>
|
|
146
|
+
<div style={{
|
|
147
|
+
position: 'absolute', left: 0, right: 0, top: CY - ROW_H / 2 - START_IDX * ROW_H,
|
|
148
|
+
transform: `translateY(${(listY + (1 - listIn) * 40).toFixed(2)}px)`,
|
|
149
|
+
}}>
|
|
150
|
+
{WORDS.map((w, i) => {
|
|
151
|
+
const d = Math.abs(i - listPos); // 离视口中心几行(连续值)
|
|
152
|
+
const op = Math.max(0, 0.42 - 0.15 * Math.max(0, d - 1)) * listIn;
|
|
153
|
+
const sc = 1 - Math.min(0.14, 0.05 * Math.max(0, d - 0.5));
|
|
154
|
+
const blur = Math.max(0, d - 1.2) * 3.5 + (1 - listIn) * 10;
|
|
155
|
+
return (
|
|
156
|
+
<div key={w} style={{ height: ROW_H, position: 'relative' }}>
|
|
157
|
+
<span style={{
|
|
158
|
+
...wordBox, left: WORD_X, fontFamily: FONT.sans, fontWeight: 700,
|
|
159
|
+
color: `rgba(255,255,255,${op.toFixed(3)})`,
|
|
160
|
+
transform: `scale(${sc.toFixed(4)})`,
|
|
161
|
+
filter: blur > 0.3 ? `blur(${blur.toFixed(2)}px)` : undefined,
|
|
162
|
+
}}>{w}</span>
|
|
163
|
+
</div>
|
|
164
|
+
);
|
|
165
|
+
})}
|
|
166
|
+
</div>
|
|
167
|
+
</SpeedBlur>
|
|
168
|
+
|
|
169
|
+
{/* 中央固定胶囊 = 透镜:列表在其下滚动,胶囊里是同一列表的裁切副本(深色字 + 该词的主题字体),
|
|
170
|
+
词越过胶囊边缘的那一刻才换字色 / 字体——视觉上"胶囊跳到下一行接住新词" */}
|
|
171
|
+
<div style={{
|
|
172
|
+
position: 'absolute', left: PILL_X, top: CY - PILL_H / 2, width: pillW, height: PILL_H,
|
|
173
|
+
transformOrigin: '0% 50%', transform: `scale(${(sx * mix(0.55, 1, open)).toFixed(4)}, ${sy.toFixed(4)})`,
|
|
174
|
+
opacity: Math.min(1, open * 2.5), borderRadius: PILL_H / 2, overflow: 'hidden',
|
|
175
|
+
background: `linear-gradient(180deg, ${css(lighten(pill, 0.16 + 0.07 * hit))} 0%, ${css(lighten(pill, 0.03 * hit))} 50%, ${css(darken(pill, 0.1))} 100%)`,
|
|
176
|
+
boxShadow: [
|
|
177
|
+
'inset 0 2px 0 rgba(255,255,255,0.5)',
|
|
178
|
+
'inset 0 -3px 8px rgba(0,0,0,0.12)',
|
|
179
|
+
'0 3px 6px rgba(0,0,0,0.35)',
|
|
180
|
+
`0 30px 90px -20px ${css(pill, 0.5 + 0.25 * hit)}`,
|
|
181
|
+
`0 0 ${(40 + 60 * hit).toFixed(1)}px ${css(pill, 0.18 + 0.2 * hit)}`,
|
|
182
|
+
].join(', '),
|
|
183
|
+
}}>
|
|
184
|
+
<SpeedBlur vx={0} vy={vy} amount={0.16} max={9}>
|
|
185
|
+
<div style={{
|
|
186
|
+
position: 'absolute', left: 0, right: 0, top: PILL_H / 2 - ROW_H / 2 - START_IDX * ROW_H,
|
|
187
|
+
transform: `translateY(${listY.toFixed(2)}px)`,
|
|
188
|
+
}}>
|
|
189
|
+
{WORDS.map((w, i) => {
|
|
190
|
+
const k = i - START_IDX;
|
|
191
|
+
const th = k >= 0 && k < THEMES.length ? THEMES[k] : null;
|
|
192
|
+
return (
|
|
193
|
+
<div key={w} style={{ height: ROW_H, position: 'relative' }}>
|
|
194
|
+
<span style={{
|
|
195
|
+
...wordBox, left: PAD_L, fontFamily: FONT.sans, fontWeight: 700, ...(th ? th.font : null),
|
|
196
|
+
color: th ? th.ink : THEMES[0].ink, opacity: Math.min(1, open * 2),
|
|
197
|
+
}}>{w}</span>
|
|
198
|
+
</div>
|
|
199
|
+
);
|
|
200
|
+
})}
|
|
201
|
+
</div>
|
|
202
|
+
</SpeedBlur>
|
|
203
|
+
{/* 胶囊顶部受光:一条贴着上沿的柔高光,盖在字上让字"在胶囊里" */}
|
|
204
|
+
<div style={{ position: 'absolute', left: 0, right: 0, top: 0, height: PILL_H * 0.45, background: 'linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0))', pointerEvents: 'none' }} />
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
{/* 「Make it」:静止的锚,细体 + 右对齐贴着胶囊 */}
|
|
208
|
+
<div style={{
|
|
209
|
+
position: 'absolute', left: LEFT, width: LEAD_W, top: CY - FS * 0.62, textAlign: 'right',
|
|
210
|
+
fontSize: FS, fontWeight: 300, letterSpacing: '-0.035em', lineHeight: 1.2, color: 'rgba(255,255,255,0.94)',
|
|
211
|
+
whiteSpace: 'nowrap',
|
|
212
|
+
}}>
|
|
213
|
+
<TextReveal text="Make it" by="word" variant="blur" start={2} each={16} gap={4} />
|
|
214
|
+
</div>
|
|
215
|
+
</AbsoluteFill>
|
|
216
|
+
|
|
217
|
+
{/* 视口上下羽化:颜色跟 bgColor 实时同步,换场不穿帮 */}
|
|
218
|
+
<div style={{ position: 'absolute', left: 0, right: 0, top: 0, height: 300, background: `linear-gradient(${bgColor} 34%, ${css(bg, 0)})` }} />
|
|
219
|
+
<div style={{ position: 'absolute', left: 0, right: 0, bottom: 0, height: 330, background: `linear-gradient(${css(bg, 0)}, ${bgColor} 62%)` }} />
|
|
220
|
+
|
|
221
|
+
{/* 顶栏:品牌 + 主题计数(挂同一个整数拍,拍头 6f 竖向滚一格) */}
|
|
222
|
+
<div style={{ position: 'absolute', left: MARGIN, top: 96, opacity: ramp(frame, 0, 12, EASE.out) }}>
|
|
223
|
+
<ShotcraftWordmark size={30} markScale={1.6} gap={14} tone="dark" />
|
|
224
|
+
</div>
|
|
225
|
+
<div style={{
|
|
226
|
+
position: 'absolute', right: MARGIN, top: 98, display: 'flex', alignItems: 'baseline', gap: 18,
|
|
227
|
+
opacity: ramp(frame, 0, 12, EASE.out), fontVariantNumeric: 'tabular-nums',
|
|
228
|
+
}}>
|
|
229
|
+
<span style={{ fontSize: 24, fontWeight: 600, letterSpacing: '0.16em', color: 'rgba(255,255,255,0.5)' }}>THEME</span>
|
|
230
|
+
<span style={{ display: 'inline-block', height: 38, overflow: 'hidden', fontFamily: FONT.mono, fontSize: 32, fontWeight: 500, color: '#fff' }}>
|
|
231
|
+
<span style={{ display: 'block', transform: `translateY(${(-(beat - 1 + (beat === 0 ? 1 : tInBeat)) * 38).toFixed(2)}px)` }}>
|
|
232
|
+
{THEMES.map((_, k) => <span key={k} style={{ display: 'block', height: 38, lineHeight: '38px' }}>{String(k + 1).padStart(2, '0')}</span>)}
|
|
233
|
+
</span>
|
|
234
|
+
</span>
|
|
235
|
+
<span style={{ fontFamily: FONT.mono, fontSize: 32, color: 'rgba(255,255,255,0.4)' }}>/ 05</span>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
{/* 左下:五枚色票,当前主题放大 + 描圈(整数拍换态,拍头 6f 弹到位) */}
|
|
239
|
+
<div style={{ position: 'absolute', left: MARGIN, top: 900, display: 'flex', alignItems: 'center', gap: 22 }}>
|
|
240
|
+
{THEMES.map((t, k) => {
|
|
241
|
+
const cur = k === beat;
|
|
242
|
+
const pop = cur ? (beat === 0 ? 1 : interpolate(tInBeat, [0, 0.6, 1], [0.7, 1.12, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' })) : 1;
|
|
243
|
+
const appear = ramp(frame, 6 + k * 2, 12, EASE.overshoot);
|
|
244
|
+
return (
|
|
245
|
+
<div key={t.name} style={{
|
|
246
|
+
width: 46, height: 46, borderRadius: 23, background: t.pill,
|
|
247
|
+
transform: `scale(${((cur ? 1 : 0.62) * pop * appear).toFixed(4)})`, opacity: cur ? 1 : k < beat ? 0.55 : 0.32,
|
|
248
|
+
boxShadow: cur ? `0 0 0 5px ${bgColor}, 0 0 0 7px rgba(255,255,255,0.85), 0 0 30px ${alpha(t.pill, 0.6)}` : 'none',
|
|
249
|
+
}} />
|
|
250
|
+
);
|
|
251
|
+
})}
|
|
252
|
+
<span style={{
|
|
253
|
+
marginLeft: 18, fontSize: 32, fontWeight: 600, color: 'rgba(255,255,255,0.88)', letterSpacing: '-0.01em',
|
|
254
|
+
opacity: ramp(frame, 8, 12, EASE.out),
|
|
255
|
+
}}>{now.name}</span>
|
|
256
|
+
</div>
|
|
257
|
+
|
|
258
|
+
{/* 末拍余波:口号逐词升起,右下对齐胶囊右沿 */}
|
|
259
|
+
<div style={{
|
|
260
|
+
position: 'absolute', right: MARGIN, top: 896, fontSize: 40, fontWeight: 500,
|
|
261
|
+
color: 'rgba(255,255,255,0.72)', letterSpacing: '-0.015em', whiteSpace: 'nowrap',
|
|
262
|
+
}}>
|
|
263
|
+
<TextReveal text={PITCH.en.taglines[5]} by="word" variant="rise" start={LAST + 6} each={16} gap={3} />
|
|
264
|
+
</div>
|
|
265
|
+
|
|
266
|
+
<Vignette strength={0.5} inner={0.42} color="#020306" />
|
|
267
|
+
<Grain opacity={0.09} blend="soft-light" />
|
|
268
|
+
</AbsoluteFill>
|
|
269
|
+
);
|
|
270
|
+
};
|