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.
- package/README.md +4 -3
- package/lib/index.js +7777 -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/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/render.js +179 -179
- 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-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/video-trace-pool.js +128 -128
- package/package.json +1 -1
- package/LICENSE +0 -4175
package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/InvisibleCut.tsx
CHANGED
|
@@ -1,272 +1,272 @@
|
|
|
1
|
-
// invisible-cut:前景遮挡隐形切——离镜头极近的失焦前景物贴脸横扫,糊满全屏的那一两帧里
|
|
2
|
-
// 背景从 A 无痕硬切成 B,前景扫出画时观众以为还是同一镜。(invisible-cut + foreground-occlusion-swipe)
|
|
3
|
-
//
|
|
4
|
-
// 第二轮重设计(暖沙生活方式 · "点下预订,一晃就订好了"):
|
|
5
|
-
// - look = sand(米色 · 赤陶 · 靛蓝点缀),衬线标题 + 无衬线 UI;产品 = video-shotcraft 的成片渲染页。
|
|
6
|
-
// A:发布片镜头详情——左侧 860px 程序绘制的沙丘日落"镜头画面"(角标 = 镜刻标志 + 镜头号),右侧衬线大标题、
|
|
7
|
-
// 镜头数/片长、规格与赤陶「Render」大按钮;B:渲染完成——左侧 168px 衬线「That's a wrap.」,右侧一张票根卡
|
|
8
|
-
// (顶部还是那张沙丘画面 = 视觉连续,打孔线、大号渲染编号、赤陶对勾印章)。因果是一条线:按下 Render → 一晃 → 片子出好了。
|
|
9
|
-
// 版式左右互换,换景幅度大但不突兀。
|
|
10
|
-
// - 遮挡物 = 贴着镜头掠过的失焦深棕前景(像镜头前走过一根立柱):纯渐变绘制(中心实、两侧 340px 软边 = 失焦 +
|
|
11
|
-
// 运动模糊的观感),前缘一道赤陶轮廓光读作"受光的物体";前方 640px 软投影先扫过页面(近物遮光)。
|
|
12
|
-
// 不用 CameraMotionBlur(12 倍采样太贵),软边渐变本身就是糊。
|
|
13
|
-
// - 一条 take 的错觉:全程一条恒定方向的慢横移(内容 +40→−40px,smooth 缓动起止)贯穿切点;
|
|
14
|
-
// 遮挡物同向但快 50 倍(近大远小的视差);切前 A 被"带风"拖左 28px(ease-in),切后 B 从右 28px 回稳(ease-out 14f)。
|
|
15
|
-
//
|
|
16
|
-
// 时间表(30fps,共 110f):
|
|
17
|
-
// 0–24 A 静置(首帧即完整画面),横移极缓起步,照片里的日轮微微呼吸
|
|
18
|
-
// 24–32 预备:Render 按钮按下(0.96 缩放 + 压暗 6f)→ 文案换成「Rendering…」
|
|
19
|
-
// 32–46 遮挡物右→左扫过 14f(bezier 0.3,0,0.7,1);39f 实心区盖满 1920,硬切 A→B
|
|
20
|
-
// 39–53 B 从右回稳;46–64 印章弹簧落座、对勾描画;45–68 说明行与确认码错峰升起
|
|
21
|
-
// 70–110 hold 40f:横移收尾、日轮呼吸
|
|
22
|
-
import React from 'react';
|
|
23
|
-
import { AbsoluteFill, useCurrentFrame } from 'remotion';
|
|
24
|
-
import { EASE, FONT, bezier, mix, ramp } from '../../_fixtures/Polish';
|
|
25
|
-
import { LOOKS, SERIF, Stage, alpha, springAt, type } from '../../_fixtures/Look';
|
|
26
|
-
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
27
|
-
|
|
28
|
-
export const INVISIBLE_CUT_DURATION = 110;
|
|
29
|
-
|
|
30
|
-
const S = LOOKS.sand;
|
|
31
|
-
const PAD = 120;
|
|
32
|
-
const PRESS = 24; // 按下 Render
|
|
33
|
-
const SW_START = 32; // 遮挡物入画
|
|
34
|
-
const SW_END = 46; // 遮挡物出画
|
|
35
|
-
const CUT = 39; // 硬切:实心区盖满画幅的那一帧
|
|
36
|
-
const SOFT = 340; // 遮挡物软边宽
|
|
37
|
-
const CORE = 2600; // 遮挡物实心宽(> 1920,留出 >1 帧的全遮窗口)
|
|
38
|
-
const OCC_W = CORE + SOFT * 2;
|
|
39
|
-
const B_SHIFT = 40; // B 页排版右移量(抵消横移终点 −40)
|
|
40
|
-
|
|
41
|
-
// 遮挡物左缘位置:从画右外 → 画左外
|
|
42
|
-
const SWEEP_EASE = bezier(0.3, 0, 0.7, 1); // 起止有加减速、中段最快
|
|
43
|
-
const occX = (f: number) => mix(1940, -OCC_W - 20, ramp(f, SW_START, SW_END - SW_START, SWEEP_EASE));
|
|
44
|
-
|
|
45
|
-
// ───────────── 程序绘制的沙丘日落 ─────────────
|
|
46
|
-
const Dunes: React.FC<{ w: number; h: number; f: number; id: string }> = ({ w, h, f, id }) => {
|
|
47
|
-
const breathe = 1 + 0.04 * Math.sin(f / 16);
|
|
48
|
-
return (
|
|
49
|
-
<svg width={w} height={h} viewBox="0 0 860 760" preserveAspectRatio="xMidYMid slice" style={{ position: 'absolute', inset: 0 }}>
|
|
50
|
-
<defs>
|
|
51
|
-
<linearGradient id={`sky${id}`} x1="0" y1="0" x2="0" y2="1">
|
|
52
|
-
<stop offset="0" stopColor="#d98a5c" />
|
|
53
|
-
<stop offset="0.4" stopColor="#eeae78" />
|
|
54
|
-
<stop offset="0.6" stopColor="#f8d2a0" />
|
|
55
|
-
</linearGradient>
|
|
56
|
-
<radialGradient id={`sun${id}`} cx="0.5" cy="0.5" r="0.5">
|
|
57
|
-
<stop offset="0" stopColor="#ffe6bf" stopOpacity={0.85} />
|
|
58
|
-
<stop offset="0.4" stopColor="#ffd9a6" stopOpacity={0.45} />
|
|
59
|
-
<stop offset="1" stopColor="#ffd9a6" stopOpacity={0} />
|
|
60
|
-
</radialGradient>
|
|
61
|
-
<linearGradient id={`d1${id}`} x1="0" y1="0" x2="1" y2="1">
|
|
62
|
-
<stop offset="0" stopColor="#e09a63" />
|
|
63
|
-
<stop offset="1" stopColor="#c8743f" />
|
|
64
|
-
</linearGradient>
|
|
65
|
-
<linearGradient id={`d2${id}`} x1="0" y1="0" x2="1" y2="1">
|
|
66
|
-
<stop offset="0" stopColor="#c76b38" />
|
|
67
|
-
<stop offset="1" stopColor="#9c4724" />
|
|
68
|
-
</linearGradient>
|
|
69
|
-
<linearGradient id={`d3${id}`} x1="0" y1="0" x2="1" y2="1">
|
|
70
|
-
<stop offset="0" stopColor="#8f3f1f" />
|
|
71
|
-
<stop offset="1" stopColor="#5e2611" />
|
|
72
|
-
</linearGradient>
|
|
73
|
-
<linearGradient id={`sh${id}`} x1="0" y1="0" x2="0" y2="1">
|
|
74
|
-
<stop offset="0" stopColor="#3a160a" stopOpacity={0} />
|
|
75
|
-
<stop offset="0.6" stopColor="#3a160a" stopOpacity={0} />
|
|
76
|
-
<stop offset="1" stopColor="#3a160a" stopOpacity={0.35} />
|
|
77
|
-
</linearGradient>
|
|
78
|
-
</defs>
|
|
79
|
-
<rect width={860} height={760} fill={`url(#sky${id})`} />
|
|
80
|
-
<circle cx={560} cy={400} r={190 * breathe} fill={`url(#sun${id})`} opacity={0.95} />
|
|
81
|
-
<circle cx={560} cy={400} r={56} fill="#fffbf2" />
|
|
82
|
-
{/* 远丘 */}
|
|
83
|
-
<path d="M0 440 C 140 400 260 420 380 440 C 520 462 640 410 860 420 L860 760 L0 760 Z" fill={`url(#d1${id})`} />
|
|
84
|
-
{/* 中丘:脊线左亮右暗 */}
|
|
85
|
-
<path d="M0 540 C 120 470 230 460 330 500 C 430 540 520 470 640 486 C 740 498 800 530 860 520 L860 760 L0 760 Z" fill={`url(#d2${id})`} />
|
|
86
|
-
{/* 脊线受光:沿中丘脊一道亮边 */}
|
|
87
|
-
<path d="M0 540 C 120 470 230 460 330 500 C 430 540 520 470 640 486" fill="none" stroke="#f3b27a" strokeWidth={3} opacity={0.55} />
|
|
88
|
-
{/* 近丘 */}
|
|
89
|
-
<path d="M0 650 C 160 590 300 600 430 640 C 560 680 700 600 860 620 L860 760 L0 760 Z" fill={`url(#d3${id})`} />
|
|
90
|
-
{/* 营地:三顶小帐篷剪影 + 一点暖灯 */}
|
|
91
|
-
{[0, 1, 2].map((i) => (
|
|
92
|
-
<g key={i} transform={`translate(${196 + i * 46} ${598 - i * 4})`}>
|
|
93
|
-
<path d="M0 0 L 18 -26 L 36 0 Z" fill="#3b1a0c" />
|
|
94
|
-
<circle cx={18} cy={-6} r={3.2} fill="#ffd38a" opacity={0.9} />
|
|
95
|
-
</g>
|
|
96
|
-
))}
|
|
97
|
-
<rect width={860} height={760} fill={`url(#sh${id})`} />
|
|
98
|
-
</svg>
|
|
99
|
-
);
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// ───────────── A:发布片镜头详情 ─────────────
|
|
103
|
-
const PageA: React.FC<{ f: number }> = ({ f }) => {
|
|
104
|
-
const down = ramp(f, PRESS, 4, EASE.out) * (1 - ramp(f, PRESS + 5, 8, EASE.out));
|
|
105
|
-
const reserving = f >= PRESS + 4;
|
|
106
|
-
return (
|
|
107
|
-
<>
|
|
108
|
-
<div style={{
|
|
109
|
-
position: 'absolute', left: PAD, top: 160, width: 860, height: 760, borderRadius: 36, overflow: 'hidden',
|
|
110
|
-
boxShadow: `0 2px 4px ${alpha(S.shadow, 0.12)}, 0 40px 90px -30px ${alpha(S.shadow, 0.45)}`,
|
|
111
|
-
}}>
|
|
112
|
-
<Dunes w={860} h={760} f={f} id="a" />
|
|
113
|
-
<div style={{
|
|
114
|
-
position: 'absolute', left: 32, top: 32, height: 60, padding: '0 24px', borderRadius: 30, display: 'flex', alignItems: 'center', gap: 12,
|
|
115
|
-
background: 'rgba(255,248,238,0.86)', boxShadow: `0 8px 24px -8px ${alpha(S.shadow, 0.4)}`,
|
|
116
|
-
...type(30, 650), color: S.ink,
|
|
117
|
-
}}>
|
|
118
|
-
<ShotcraftMark size={34} tone="light" /> Shot 03 <span style={{ color: S.ink2, fontWeight: 500 }}>· Golden hour</span>
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
|
|
122
|
-
<div style={{ position: 'absolute', left: 1064, top: 176, width: 736 }}>
|
|
123
|
-
<div style={{ ...type(28, 700, { caps: true }), letterSpacing: '0.14em', color: S.accent }}>Launch film · Final cut</div>
|
|
124
|
-
<div style={{ fontFamily: SERIF, fontSize: 92, fontWeight: 500, lineHeight: 1.0, letterSpacing: '-0.025em', color: S.ink, marginTop: 26 }}>
|
|
125
|
-
Direct the film.<br />Let the <i style={{ color: S.accent }}>agent</i><br />shoot it.
|
|
126
|
-
</div>
|
|
127
|
-
<div style={{ display: 'flex', marginTop: 44, borderTop: `1.5px solid ${S.line}`, borderBottom: `1.5px solid ${S.line}` }}>
|
|
128
|
-
{[['Shots', '12 cuts'], ['Length', '0:45 · 30fps']].map(([k, v], i) => (
|
|
129
|
-
<div key={k} style={{ flex: 1, padding: '22px 0', paddingLeft: i ? 32 : 0, borderLeft: i ? `1.5px solid ${S.line}` : undefined }}>
|
|
130
|
-
<div style={{ ...type(26, 600, { caps: true }), letterSpacing: '0.1em', color: S.ink3 }}>{k}</div>
|
|
131
|
-
<div style={{ ...type(40, 600), color: S.ink, marginTop: 6 }}>{v}</div>
|
|
132
|
-
</div>
|
|
133
|
-
))}
|
|
134
|
-
</div>
|
|
135
|
-
<div style={{ display: 'flex', alignItems: 'baseline', gap: 16, marginTop: 34 }}>
|
|
136
|
-
<span style={{ ...type(76, 700), color: S.ink }}>1080p</span>
|
|
137
|
-
<span style={{ ...type(32, 500), color: S.ink2 }}>h264 · beat-synced SFX</span>
|
|
138
|
-
</div>
|
|
139
|
-
<div style={{
|
|
140
|
-
marginTop: 34, height: 116, borderRadius: 58, display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 18,
|
|
141
|
-
background: `linear-gradient(180deg, #d0643a 0%, ${S.accent} 100%)`,
|
|
142
|
-
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.3), 0 ${mix(18, 6, down)}px ${mix(40, 16, down)}px -12px ${alpha('#8a3414', 0.55)}`,
|
|
143
|
-
transform: `scale(${(1 - 0.04 * down).toFixed(4)})`, filter: down > 0.01 ? `brightness(${1 - 0.12 * down})` : undefined,
|
|
144
|
-
...type(42, 650), color: S.onAccent,
|
|
145
|
-
}}>
|
|
146
|
-
{reserving && (
|
|
147
|
-
<span style={{
|
|
148
|
-
width: 30, height: 30, borderRadius: 15, border: `4px solid ${alpha(S.onAccent, 0.35)}`, borderTopColor: S.onAccent,
|
|
149
|
-
transform: `rotate(${(f - PRESS) * 24}deg)`, boxSizing: 'border-box',
|
|
150
|
-
}} />
|
|
151
|
-
)}
|
|
152
|
-
{reserving ? 'Rendering…' : 'Render'}
|
|
153
|
-
</div>
|
|
154
|
-
</div>
|
|
155
|
-
</>
|
|
156
|
-
);
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
// ───────────── B:渲染完成 ─────────────
|
|
160
|
-
const PageB: React.FC<{ f: number }> = ({ f }) => {
|
|
161
|
-
const seal = springAt(f, CUT + 7, { damping: 13, stiffness: 190 });
|
|
162
|
-
const check = ramp(f, CUT + 12, 14, EASE.out);
|
|
163
|
-
const rows = [0, 1, 2].map((i) => ramp(f, CUT + 6 + i * 5, 18, EASE.snappy));
|
|
164
|
-
return (
|
|
165
|
-
<>
|
|
166
|
-
<div style={{ position: 'absolute', left: PAD, top: 214, width: 900 }}>
|
|
167
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 16, ...type(28, 700, { caps: true }), letterSpacing: '0.14em', color: S.accent }}>
|
|
168
|
-
<span style={{ width: 14, height: 14, borderRadius: 7, background: S.accent }} />
|
|
169
|
-
Render complete
|
|
170
|
-
</div>
|
|
171
|
-
<div style={{ fontFamily: SERIF, fontSize: 168, fontWeight: 500, lineHeight: 0.94, letterSpacing: '-0.035em', color: S.ink, marginTop: 30 }}>
|
|
172
|
-
That’s a<br /><i style={{ color: S.accent }}>wrap.</i>
|
|
173
|
-
</div>
|
|
174
|
-
<div style={{ ...type(42, 500), color: S.ink2, marginTop: 52, lineHeight: 1.35, opacity: rows[0], transform: `translateY(${(1 - rows[0]) * 22}px)` }}>
|
|
175
|
-
Launch film · 12 shots, beat-synced,<br />crafted with {BRAND.name}
|
|
176
|
-
</div>
|
|
177
|
-
<div style={{ ...type(32, 500), color: S.ink3, marginTop: 30, opacity: rows[1], transform: `translateY(${(1 - rows[1]) * 22}px)` }}>
|
|
178
|
-
MP4 and JianYing project saved to your folder
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
{/* 票根卡 */}
|
|
183
|
-
<div style={{
|
|
184
|
-
position: 'absolute', left: 1140, top: 150, width: 660, height: 780, borderRadius: 34, overflow: 'hidden', background: S.surface,
|
|
185
|
-
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 4px ${alpha(S.shadow, 0.1)}, 0 44px 90px -30px ${alpha(S.shadow, 0.42)}`,
|
|
186
|
-
}}>
|
|
187
|
-
<div style={{ position: 'absolute', left: 0, top: 0, width: 660, height: 330, overflow: 'hidden' }}>
|
|
188
|
-
<Dunes w={660} h={330} f={f} id="b" />
|
|
189
|
-
</div>
|
|
190
|
-
{/* 打孔线 + 两侧半圆缺口 */}
|
|
191
|
-
<div style={{ position: 'absolute', left: 44, right: 44, top: 520, borderTop: `3px dashed ${alpha(S.ink3, 0.45)}` }} />
|
|
192
|
-
{[-26, 634].map((x) => (
|
|
193
|
-
<div key={x} style={{ position: 'absolute', left: x, top: 494, width: 52, height: 52, borderRadius: 26, background: S.bg[1], boxShadow: `inset 0 2px 6px ${alpha(S.shadow, 0.18)}` }} />
|
|
194
|
-
))}
|
|
195
|
-
<div style={{ position: 'absolute', left: 52, top: 362, display: 'flex', justifyContent: 'space-between', width: 556 }}>
|
|
196
|
-
{[['Shots', '12'], ['Length', '0:45']].map(([k, v]) => (
|
|
197
|
-
<div key={k}>
|
|
198
|
-
<div style={{ ...type(24, 650, { caps: true }), letterSpacing: '0.12em', color: S.ink3 }}>{k}</div>
|
|
199
|
-
<div style={{ fontFamily: SERIF, fontSize: 64, fontWeight: 500, letterSpacing: '-0.02em', color: S.ink, marginTop: 4 }}>{v}</div>
|
|
200
|
-
</div>
|
|
201
|
-
))}
|
|
202
|
-
</div>
|
|
203
|
-
<div style={{ position: 'absolute', left: 52, top: 570, opacity: rows[2], transform: `translateY(${(1 - rows[2]) * 20}px)` }}>
|
|
204
|
-
<div style={{ ...type(24, 650, { caps: true }), letterSpacing: '0.12em', color: S.ink3 }}>Render</div>
|
|
205
|
-
<div style={{ fontFamily: FONT.mono, fontSize: 64, fontWeight: 600, letterSpacing: '0.02em', color: S.ink, marginTop: 8 }}>SC-4821</div>
|
|
206
|
-
<div style={{ ...type(30, 500), color: S.ink2, marginTop: 14 }}>12 shots · 0:45 · 1080p</div>
|
|
207
|
-
</div>
|
|
208
|
-
</div>
|
|
209
|
-
{/* 赤陶印章:压在照片与票面交界处,弹簧落座 + 对勾描画 */}
|
|
210
|
-
<div style={{
|
|
211
|
-
position: 'absolute', left: 1640, top: 270, width: 150, height: 150,
|
|
212
|
-
transform: `rotate(${mix(-30, -8, seal)}deg) scale(${mix(1.8, 1, seal).toFixed(4)})`, opacity: Math.min(1, seal * 3),
|
|
213
|
-
}}>
|
|
214
|
-
<svg width={150} height={150} viewBox="0 0 150 150" style={{ overflow: 'visible', filter: `drop-shadow(0 14px 22px ${alpha('#7a2c10', 0.45)})` }}>
|
|
215
|
-
<circle cx={75} cy={75} r={70} fill={S.accent} />
|
|
216
|
-
<circle cx={75} cy={75} r={58} fill="none" stroke={alpha(S.onAccent, 0.5)} strokeWidth={2} strokeDasharray="3 6" />
|
|
217
|
-
<path d="M48 77 L 67 96 L 104 56" fill="none" stroke={S.onAccent} strokeWidth={11} strokeLinecap="round" strokeLinejoin="round"
|
|
218
|
-
strokeDasharray={90} strokeDashoffset={90 * (1 - check)} />
|
|
219
|
-
</svg>
|
|
220
|
-
</div>
|
|
221
|
-
</>
|
|
222
|
-
);
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
export const InvisibleCut: React.FC = () => {
|
|
226
|
-
const frame = useCurrentFrame();
|
|
227
|
-
const DUR = INVISIBLE_CUT_DURATION;
|
|
228
|
-
// 贯穿切点的慢横移:内容 +40 → −40px(smooth 起止);B 页整体右移 40px 排版,落定时回到 120 安全边
|
|
229
|
-
const pan = 40 - 80 * ramp(frame, 0, DUR, EASE.smooth);
|
|
230
|
-
// 带风推挤:切前 A 被拖左(ease-in),切后 B 从右回稳(ease-out)
|
|
231
|
-
const shove = frame < CUT ? -28 * ramp(frame, SW_START - 2, CUT - SW_START + 2, EASE.exit) : 28 * (1 - ramp(frame, CUT, 14, EASE.out));
|
|
232
|
-
const x = occX(frame);
|
|
233
|
-
const sweeping = frame >= SW_START && frame <= SW_END;
|
|
234
|
-
// 近物遮光:遮挡物前方的软投影
|
|
235
|
-
const lead = x;
|
|
236
|
-
|
|
237
|
-
return (
|
|
238
|
-
<AbsoluteFill style={{ background: S.bg[1], overflow: 'hidden' }}>
|
|
239
|
-
<Stage look={S} keyLight={{ x: 0.3, y: 0.05 }} fill={{ x: 0.9, y: 0.95 }} vignette={0.2} grain={0.05} />
|
|
240
|
-
<div style={{ position: 'absolute', inset: 0, transform: `translateX(${(pan + shove).toFixed(2)}px)` }}>
|
|
241
|
-
{frame < CUT ? <PageA f={frame} /> : <div style={{ position: 'absolute', inset: 0, left: B_SHIFT }}><PageB f={frame} /></div>}
|
|
242
|
-
</div>
|
|
243
|
-
|
|
244
|
-
{sweeping && (
|
|
245
|
-
<>
|
|
246
|
-
{/* 前方软投影 */}
|
|
247
|
-
<div style={{
|
|
248
|
-
position: 'absolute', top: 0, bottom: 0, left: lead - 640, width: 640 + SOFT,
|
|
249
|
-
background: `linear-gradient(90deg, ${alpha('#2a170c', 0)} 0px, ${alpha('#2a170c', 0.38)} 640px, ${alpha('#2a170c', 0.5)} ${640 + SOFT}px)`,
|
|
250
|
-
}} />
|
|
251
|
-
{/* 失焦前景:两侧软边 + 实心核 + 前缘赤陶轮廓光 */}
|
|
252
|
-
<div style={{
|
|
253
|
-
position: 'absolute', top: -40, bottom: -40, left: x, width: OCC_W,
|
|
254
|
-
background: `linear-gradient(90deg, rgba(43,26,16,0) 0px, rgba(43,26,16,0.85) ${SOFT * 0.6}px, #2b1a10 ${SOFT}px, #24150c ${SOFT + CORE}px, rgba(36,21,12,0.8) ${SOFT + CORE + SOFT * 0.4}px, rgba(36,21,12,0) ${OCC_W}px)`,
|
|
255
|
-
}}>
|
|
256
|
-
<div style={{
|
|
257
|
-
position: 'absolute', top: 0, bottom: 0, left: SOFT * 0.35, width: 260,
|
|
258
|
-
background: `linear-gradient(90deg, ${alpha('#e0703f', 0)} 0%, ${alpha('#e0703f', 0.42)} 45%, ${alpha('#e0703f', 0)} 100%)`,
|
|
259
|
-
}} />
|
|
260
|
-
<div style={{
|
|
261
|
-
position: 'absolute', inset: 0,
|
|
262
|
-
background: 'linear-gradient(180deg, rgba(255,210,170,0.08) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%)',
|
|
263
|
-
// 只作用在实心区,软边处渐隐(否则在透明软边上画出一道硬边)
|
|
264
|
-
WebkitMaskImage: `linear-gradient(90deg, transparent 0px, #000 ${SOFT}px, #000 ${SOFT + CORE}px, transparent ${OCC_W}px)`,
|
|
265
|
-
maskImage: `linear-gradient(90deg, transparent 0px, #000 ${SOFT}px, #000 ${SOFT + CORE}px, transparent ${OCC_W}px)`,
|
|
266
|
-
}} />
|
|
267
|
-
</div>
|
|
268
|
-
</>
|
|
269
|
-
)}
|
|
270
|
-
</AbsoluteFill>
|
|
271
|
-
);
|
|
272
|
-
};
|
|
1
|
+
// invisible-cut:前景遮挡隐形切——离镜头极近的失焦前景物贴脸横扫,糊满全屏的那一两帧里
|
|
2
|
+
// 背景从 A 无痕硬切成 B,前景扫出画时观众以为还是同一镜。(invisible-cut + foreground-occlusion-swipe)
|
|
3
|
+
//
|
|
4
|
+
// 第二轮重设计(暖沙生活方式 · "点下预订,一晃就订好了"):
|
|
5
|
+
// - look = sand(米色 · 赤陶 · 靛蓝点缀),衬线标题 + 无衬线 UI;产品 = video-shotcraft 的成片渲染页。
|
|
6
|
+
// A:发布片镜头详情——左侧 860px 程序绘制的沙丘日落"镜头画面"(角标 = 镜刻标志 + 镜头号),右侧衬线大标题、
|
|
7
|
+
// 镜头数/片长、规格与赤陶「Render」大按钮;B:渲染完成——左侧 168px 衬线「That's a wrap.」,右侧一张票根卡
|
|
8
|
+
// (顶部还是那张沙丘画面 = 视觉连续,打孔线、大号渲染编号、赤陶对勾印章)。因果是一条线:按下 Render → 一晃 → 片子出好了。
|
|
9
|
+
// 版式左右互换,换景幅度大但不突兀。
|
|
10
|
+
// - 遮挡物 = 贴着镜头掠过的失焦深棕前景(像镜头前走过一根立柱):纯渐变绘制(中心实、两侧 340px 软边 = 失焦 +
|
|
11
|
+
// 运动模糊的观感),前缘一道赤陶轮廓光读作"受光的物体";前方 640px 软投影先扫过页面(近物遮光)。
|
|
12
|
+
// 不用 CameraMotionBlur(12 倍采样太贵),软边渐变本身就是糊。
|
|
13
|
+
// - 一条 take 的错觉:全程一条恒定方向的慢横移(内容 +40→−40px,smooth 缓动起止)贯穿切点;
|
|
14
|
+
// 遮挡物同向但快 50 倍(近大远小的视差);切前 A 被"带风"拖左 28px(ease-in),切后 B 从右 28px 回稳(ease-out 14f)。
|
|
15
|
+
//
|
|
16
|
+
// 时间表(30fps,共 110f):
|
|
17
|
+
// 0–24 A 静置(首帧即完整画面),横移极缓起步,照片里的日轮微微呼吸
|
|
18
|
+
// 24–32 预备:Render 按钮按下(0.96 缩放 + 压暗 6f)→ 文案换成「Rendering…」
|
|
19
|
+
// 32–46 遮挡物右→左扫过 14f(bezier 0.3,0,0.7,1);39f 实心区盖满 1920,硬切 A→B
|
|
20
|
+
// 39–53 B 从右回稳;46–64 印章弹簧落座、对勾描画;45–68 说明行与确认码错峰升起
|
|
21
|
+
// 70–110 hold 40f:横移收尾、日轮呼吸
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { AbsoluteFill, useCurrentFrame } from 'remotion';
|
|
24
|
+
import { EASE, FONT, bezier, mix, ramp } from '../../_fixtures/Polish';
|
|
25
|
+
import { LOOKS, SERIF, Stage, alpha, springAt, type } from '../../_fixtures/Look';
|
|
26
|
+
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
27
|
+
|
|
28
|
+
export const INVISIBLE_CUT_DURATION = 110;
|
|
29
|
+
|
|
30
|
+
const S = LOOKS.sand;
|
|
31
|
+
const PAD = 120;
|
|
32
|
+
const PRESS = 24; // 按下 Render
|
|
33
|
+
const SW_START = 32; // 遮挡物入画
|
|
34
|
+
const SW_END = 46; // 遮挡物出画
|
|
35
|
+
const CUT = 39; // 硬切:实心区盖满画幅的那一帧
|
|
36
|
+
const SOFT = 340; // 遮挡物软边宽
|
|
37
|
+
const CORE = 2600; // 遮挡物实心宽(> 1920,留出 >1 帧的全遮窗口)
|
|
38
|
+
const OCC_W = CORE + SOFT * 2;
|
|
39
|
+
const B_SHIFT = 40; // B 页排版右移量(抵消横移终点 −40)
|
|
40
|
+
|
|
41
|
+
// 遮挡物左缘位置:从画右外 → 画左外
|
|
42
|
+
const SWEEP_EASE = bezier(0.3, 0, 0.7, 1); // 起止有加减速、中段最快
|
|
43
|
+
const occX = (f: number) => mix(1940, -OCC_W - 20, ramp(f, SW_START, SW_END - SW_START, SWEEP_EASE));
|
|
44
|
+
|
|
45
|
+
// ───────────── 程序绘制的沙丘日落 ─────────────
|
|
46
|
+
const Dunes: React.FC<{ w: number; h: number; f: number; id: string }> = ({ w, h, f, id }) => {
|
|
47
|
+
const breathe = 1 + 0.04 * Math.sin(f / 16);
|
|
48
|
+
return (
|
|
49
|
+
<svg width={w} height={h} viewBox="0 0 860 760" preserveAspectRatio="xMidYMid slice" style={{ position: 'absolute', inset: 0 }}>
|
|
50
|
+
<defs>
|
|
51
|
+
<linearGradient id={`sky${id}`} x1="0" y1="0" x2="0" y2="1">
|
|
52
|
+
<stop offset="0" stopColor="#d98a5c" />
|
|
53
|
+
<stop offset="0.4" stopColor="#eeae78" />
|
|
54
|
+
<stop offset="0.6" stopColor="#f8d2a0" />
|
|
55
|
+
</linearGradient>
|
|
56
|
+
<radialGradient id={`sun${id}`} cx="0.5" cy="0.5" r="0.5">
|
|
57
|
+
<stop offset="0" stopColor="#ffe6bf" stopOpacity={0.85} />
|
|
58
|
+
<stop offset="0.4" stopColor="#ffd9a6" stopOpacity={0.45} />
|
|
59
|
+
<stop offset="1" stopColor="#ffd9a6" stopOpacity={0} />
|
|
60
|
+
</radialGradient>
|
|
61
|
+
<linearGradient id={`d1${id}`} x1="0" y1="0" x2="1" y2="1">
|
|
62
|
+
<stop offset="0" stopColor="#e09a63" />
|
|
63
|
+
<stop offset="1" stopColor="#c8743f" />
|
|
64
|
+
</linearGradient>
|
|
65
|
+
<linearGradient id={`d2${id}`} x1="0" y1="0" x2="1" y2="1">
|
|
66
|
+
<stop offset="0" stopColor="#c76b38" />
|
|
67
|
+
<stop offset="1" stopColor="#9c4724" />
|
|
68
|
+
</linearGradient>
|
|
69
|
+
<linearGradient id={`d3${id}`} x1="0" y1="0" x2="1" y2="1">
|
|
70
|
+
<stop offset="0" stopColor="#8f3f1f" />
|
|
71
|
+
<stop offset="1" stopColor="#5e2611" />
|
|
72
|
+
</linearGradient>
|
|
73
|
+
<linearGradient id={`sh${id}`} x1="0" y1="0" x2="0" y2="1">
|
|
74
|
+
<stop offset="0" stopColor="#3a160a" stopOpacity={0} />
|
|
75
|
+
<stop offset="0.6" stopColor="#3a160a" stopOpacity={0} />
|
|
76
|
+
<stop offset="1" stopColor="#3a160a" stopOpacity={0.35} />
|
|
77
|
+
</linearGradient>
|
|
78
|
+
</defs>
|
|
79
|
+
<rect width={860} height={760} fill={`url(#sky${id})`} />
|
|
80
|
+
<circle cx={560} cy={400} r={190 * breathe} fill={`url(#sun${id})`} opacity={0.95} />
|
|
81
|
+
<circle cx={560} cy={400} r={56} fill="#fffbf2" />
|
|
82
|
+
{/* 远丘 */}
|
|
83
|
+
<path d="M0 440 C 140 400 260 420 380 440 C 520 462 640 410 860 420 L860 760 L0 760 Z" fill={`url(#d1${id})`} />
|
|
84
|
+
{/* 中丘:脊线左亮右暗 */}
|
|
85
|
+
<path d="M0 540 C 120 470 230 460 330 500 C 430 540 520 470 640 486 C 740 498 800 530 860 520 L860 760 L0 760 Z" fill={`url(#d2${id})`} />
|
|
86
|
+
{/* 脊线受光:沿中丘脊一道亮边 */}
|
|
87
|
+
<path d="M0 540 C 120 470 230 460 330 500 C 430 540 520 470 640 486" fill="none" stroke="#f3b27a" strokeWidth={3} opacity={0.55} />
|
|
88
|
+
{/* 近丘 */}
|
|
89
|
+
<path d="M0 650 C 160 590 300 600 430 640 C 560 680 700 600 860 620 L860 760 L0 760 Z" fill={`url(#d3${id})`} />
|
|
90
|
+
{/* 营地:三顶小帐篷剪影 + 一点暖灯 */}
|
|
91
|
+
{[0, 1, 2].map((i) => (
|
|
92
|
+
<g key={i} transform={`translate(${196 + i * 46} ${598 - i * 4})`}>
|
|
93
|
+
<path d="M0 0 L 18 -26 L 36 0 Z" fill="#3b1a0c" />
|
|
94
|
+
<circle cx={18} cy={-6} r={3.2} fill="#ffd38a" opacity={0.9} />
|
|
95
|
+
</g>
|
|
96
|
+
))}
|
|
97
|
+
<rect width={860} height={760} fill={`url(#sh${id})`} />
|
|
98
|
+
</svg>
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// ───────────── A:发布片镜头详情 ─────────────
|
|
103
|
+
const PageA: React.FC<{ f: number }> = ({ f }) => {
|
|
104
|
+
const down = ramp(f, PRESS, 4, EASE.out) * (1 - ramp(f, PRESS + 5, 8, EASE.out));
|
|
105
|
+
const reserving = f >= PRESS + 4;
|
|
106
|
+
return (
|
|
107
|
+
<>
|
|
108
|
+
<div style={{
|
|
109
|
+
position: 'absolute', left: PAD, top: 160, width: 860, height: 760, borderRadius: 36, overflow: 'hidden',
|
|
110
|
+
boxShadow: `0 2px 4px ${alpha(S.shadow, 0.12)}, 0 40px 90px -30px ${alpha(S.shadow, 0.45)}`,
|
|
111
|
+
}}>
|
|
112
|
+
<Dunes w={860} h={760} f={f} id="a" />
|
|
113
|
+
<div style={{
|
|
114
|
+
position: 'absolute', left: 32, top: 32, height: 60, padding: '0 24px', borderRadius: 30, display: 'flex', alignItems: 'center', gap: 12,
|
|
115
|
+
background: 'rgba(255,248,238,0.86)', boxShadow: `0 8px 24px -8px ${alpha(S.shadow, 0.4)}`,
|
|
116
|
+
...type(30, 650), color: S.ink,
|
|
117
|
+
}}>
|
|
118
|
+
<ShotcraftMark size={34} tone="light" /> Shot 03 <span style={{ color: S.ink2, fontWeight: 500 }}>· Golden hour</span>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div style={{ position: 'absolute', left: 1064, top: 176, width: 736 }}>
|
|
123
|
+
<div style={{ ...type(28, 700, { caps: true }), letterSpacing: '0.14em', color: S.accent }}>Launch film · Final cut</div>
|
|
124
|
+
<div style={{ fontFamily: SERIF, fontSize: 92, fontWeight: 500, lineHeight: 1.0, letterSpacing: '-0.025em', color: S.ink, marginTop: 26 }}>
|
|
125
|
+
Direct the film.<br />Let the <i style={{ color: S.accent }}>agent</i><br />shoot it.
|
|
126
|
+
</div>
|
|
127
|
+
<div style={{ display: 'flex', marginTop: 44, borderTop: `1.5px solid ${S.line}`, borderBottom: `1.5px solid ${S.line}` }}>
|
|
128
|
+
{[['Shots', '12 cuts'], ['Length', '0:45 · 30fps']].map(([k, v], i) => (
|
|
129
|
+
<div key={k} style={{ flex: 1, padding: '22px 0', paddingLeft: i ? 32 : 0, borderLeft: i ? `1.5px solid ${S.line}` : undefined }}>
|
|
130
|
+
<div style={{ ...type(26, 600, { caps: true }), letterSpacing: '0.1em', color: S.ink3 }}>{k}</div>
|
|
131
|
+
<div style={{ ...type(40, 600), color: S.ink, marginTop: 6 }}>{v}</div>
|
|
132
|
+
</div>
|
|
133
|
+
))}
|
|
134
|
+
</div>
|
|
135
|
+
<div style={{ display: 'flex', alignItems: 'baseline', gap: 16, marginTop: 34 }}>
|
|
136
|
+
<span style={{ ...type(76, 700), color: S.ink }}>1080p</span>
|
|
137
|
+
<span style={{ ...type(32, 500), color: S.ink2 }}>h264 · beat-synced SFX</span>
|
|
138
|
+
</div>
|
|
139
|
+
<div style={{
|
|
140
|
+
marginTop: 34, height: 116, borderRadius: 58, display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 18,
|
|
141
|
+
background: `linear-gradient(180deg, #d0643a 0%, ${S.accent} 100%)`,
|
|
142
|
+
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.3), 0 ${mix(18, 6, down)}px ${mix(40, 16, down)}px -12px ${alpha('#8a3414', 0.55)}`,
|
|
143
|
+
transform: `scale(${(1 - 0.04 * down).toFixed(4)})`, filter: down > 0.01 ? `brightness(${1 - 0.12 * down})` : undefined,
|
|
144
|
+
...type(42, 650), color: S.onAccent,
|
|
145
|
+
}}>
|
|
146
|
+
{reserving && (
|
|
147
|
+
<span style={{
|
|
148
|
+
width: 30, height: 30, borderRadius: 15, border: `4px solid ${alpha(S.onAccent, 0.35)}`, borderTopColor: S.onAccent,
|
|
149
|
+
transform: `rotate(${(f - PRESS) * 24}deg)`, boxSizing: 'border-box',
|
|
150
|
+
}} />
|
|
151
|
+
)}
|
|
152
|
+
{reserving ? 'Rendering…' : 'Render'}
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</>
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
// ───────────── B:渲染完成 ─────────────
|
|
160
|
+
const PageB: React.FC<{ f: number }> = ({ f }) => {
|
|
161
|
+
const seal = springAt(f, CUT + 7, { damping: 13, stiffness: 190 });
|
|
162
|
+
const check = ramp(f, CUT + 12, 14, EASE.out);
|
|
163
|
+
const rows = [0, 1, 2].map((i) => ramp(f, CUT + 6 + i * 5, 18, EASE.snappy));
|
|
164
|
+
return (
|
|
165
|
+
<>
|
|
166
|
+
<div style={{ position: 'absolute', left: PAD, top: 214, width: 900 }}>
|
|
167
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 16, ...type(28, 700, { caps: true }), letterSpacing: '0.14em', color: S.accent }}>
|
|
168
|
+
<span style={{ width: 14, height: 14, borderRadius: 7, background: S.accent }} />
|
|
169
|
+
Render complete
|
|
170
|
+
</div>
|
|
171
|
+
<div style={{ fontFamily: SERIF, fontSize: 168, fontWeight: 500, lineHeight: 0.94, letterSpacing: '-0.035em', color: S.ink, marginTop: 30 }}>
|
|
172
|
+
That’s a<br /><i style={{ color: S.accent }}>wrap.</i>
|
|
173
|
+
</div>
|
|
174
|
+
<div style={{ ...type(42, 500), color: S.ink2, marginTop: 52, lineHeight: 1.35, opacity: rows[0], transform: `translateY(${(1 - rows[0]) * 22}px)` }}>
|
|
175
|
+
Launch film · 12 shots, beat-synced,<br />crafted with {BRAND.name}
|
|
176
|
+
</div>
|
|
177
|
+
<div style={{ ...type(32, 500), color: S.ink3, marginTop: 30, opacity: rows[1], transform: `translateY(${(1 - rows[1]) * 22}px)` }}>
|
|
178
|
+
MP4 and JianYing project saved to your folder
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
{/* 票根卡 */}
|
|
183
|
+
<div style={{
|
|
184
|
+
position: 'absolute', left: 1140, top: 150, width: 660, height: 780, borderRadius: 34, overflow: 'hidden', background: S.surface,
|
|
185
|
+
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 4px ${alpha(S.shadow, 0.1)}, 0 44px 90px -30px ${alpha(S.shadow, 0.42)}`,
|
|
186
|
+
}}>
|
|
187
|
+
<div style={{ position: 'absolute', left: 0, top: 0, width: 660, height: 330, overflow: 'hidden' }}>
|
|
188
|
+
<Dunes w={660} h={330} f={f} id="b" />
|
|
189
|
+
</div>
|
|
190
|
+
{/* 打孔线 + 两侧半圆缺口 */}
|
|
191
|
+
<div style={{ position: 'absolute', left: 44, right: 44, top: 520, borderTop: `3px dashed ${alpha(S.ink3, 0.45)}` }} />
|
|
192
|
+
{[-26, 634].map((x) => (
|
|
193
|
+
<div key={x} style={{ position: 'absolute', left: x, top: 494, width: 52, height: 52, borderRadius: 26, background: S.bg[1], boxShadow: `inset 0 2px 6px ${alpha(S.shadow, 0.18)}` }} />
|
|
194
|
+
))}
|
|
195
|
+
<div style={{ position: 'absolute', left: 52, top: 362, display: 'flex', justifyContent: 'space-between', width: 556 }}>
|
|
196
|
+
{[['Shots', '12'], ['Length', '0:45']].map(([k, v]) => (
|
|
197
|
+
<div key={k}>
|
|
198
|
+
<div style={{ ...type(24, 650, { caps: true }), letterSpacing: '0.12em', color: S.ink3 }}>{k}</div>
|
|
199
|
+
<div style={{ fontFamily: SERIF, fontSize: 64, fontWeight: 500, letterSpacing: '-0.02em', color: S.ink, marginTop: 4 }}>{v}</div>
|
|
200
|
+
</div>
|
|
201
|
+
))}
|
|
202
|
+
</div>
|
|
203
|
+
<div style={{ position: 'absolute', left: 52, top: 570, opacity: rows[2], transform: `translateY(${(1 - rows[2]) * 20}px)` }}>
|
|
204
|
+
<div style={{ ...type(24, 650, { caps: true }), letterSpacing: '0.12em', color: S.ink3 }}>Render</div>
|
|
205
|
+
<div style={{ fontFamily: FONT.mono, fontSize: 64, fontWeight: 600, letterSpacing: '0.02em', color: S.ink, marginTop: 8 }}>SC-4821</div>
|
|
206
|
+
<div style={{ ...type(30, 500), color: S.ink2, marginTop: 14 }}>12 shots · 0:45 · 1080p</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
{/* 赤陶印章:压在照片与票面交界处,弹簧落座 + 对勾描画 */}
|
|
210
|
+
<div style={{
|
|
211
|
+
position: 'absolute', left: 1640, top: 270, width: 150, height: 150,
|
|
212
|
+
transform: `rotate(${mix(-30, -8, seal)}deg) scale(${mix(1.8, 1, seal).toFixed(4)})`, opacity: Math.min(1, seal * 3),
|
|
213
|
+
}}>
|
|
214
|
+
<svg width={150} height={150} viewBox="0 0 150 150" style={{ overflow: 'visible', filter: `drop-shadow(0 14px 22px ${alpha('#7a2c10', 0.45)})` }}>
|
|
215
|
+
<circle cx={75} cy={75} r={70} fill={S.accent} />
|
|
216
|
+
<circle cx={75} cy={75} r={58} fill="none" stroke={alpha(S.onAccent, 0.5)} strokeWidth={2} strokeDasharray="3 6" />
|
|
217
|
+
<path d="M48 77 L 67 96 L 104 56" fill="none" stroke={S.onAccent} strokeWidth={11} strokeLinecap="round" strokeLinejoin="round"
|
|
218
|
+
strokeDasharray={90} strokeDashoffset={90 * (1 - check)} />
|
|
219
|
+
</svg>
|
|
220
|
+
</div>
|
|
221
|
+
</>
|
|
222
|
+
);
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export const InvisibleCut: React.FC = () => {
|
|
226
|
+
const frame = useCurrentFrame();
|
|
227
|
+
const DUR = INVISIBLE_CUT_DURATION;
|
|
228
|
+
// 贯穿切点的慢横移:内容 +40 → −40px(smooth 起止);B 页整体右移 40px 排版,落定时回到 120 安全边
|
|
229
|
+
const pan = 40 - 80 * ramp(frame, 0, DUR, EASE.smooth);
|
|
230
|
+
// 带风推挤:切前 A 被拖左(ease-in),切后 B 从右回稳(ease-out)
|
|
231
|
+
const shove = frame < CUT ? -28 * ramp(frame, SW_START - 2, CUT - SW_START + 2, EASE.exit) : 28 * (1 - ramp(frame, CUT, 14, EASE.out));
|
|
232
|
+
const x = occX(frame);
|
|
233
|
+
const sweeping = frame >= SW_START && frame <= SW_END;
|
|
234
|
+
// 近物遮光:遮挡物前方的软投影
|
|
235
|
+
const lead = x;
|
|
236
|
+
|
|
237
|
+
return (
|
|
238
|
+
<AbsoluteFill style={{ background: S.bg[1], overflow: 'hidden' }}>
|
|
239
|
+
<Stage look={S} keyLight={{ x: 0.3, y: 0.05 }} fill={{ x: 0.9, y: 0.95 }} vignette={0.2} grain={0.05} />
|
|
240
|
+
<div style={{ position: 'absolute', inset: 0, transform: `translateX(${(pan + shove).toFixed(2)}px)` }}>
|
|
241
|
+
{frame < CUT ? <PageA f={frame} /> : <div style={{ position: 'absolute', inset: 0, left: B_SHIFT }}><PageB f={frame} /></div>}
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
{sweeping && (
|
|
245
|
+
<>
|
|
246
|
+
{/* 前方软投影 */}
|
|
247
|
+
<div style={{
|
|
248
|
+
position: 'absolute', top: 0, bottom: 0, left: lead - 640, width: 640 + SOFT,
|
|
249
|
+
background: `linear-gradient(90deg, ${alpha('#2a170c', 0)} 0px, ${alpha('#2a170c', 0.38)} 640px, ${alpha('#2a170c', 0.5)} ${640 + SOFT}px)`,
|
|
250
|
+
}} />
|
|
251
|
+
{/* 失焦前景:两侧软边 + 实心核 + 前缘赤陶轮廓光 */}
|
|
252
|
+
<div style={{
|
|
253
|
+
position: 'absolute', top: -40, bottom: -40, left: x, width: OCC_W,
|
|
254
|
+
background: `linear-gradient(90deg, rgba(43,26,16,0) 0px, rgba(43,26,16,0.85) ${SOFT * 0.6}px, #2b1a10 ${SOFT}px, #24150c ${SOFT + CORE}px, rgba(36,21,12,0.8) ${SOFT + CORE + SOFT * 0.4}px, rgba(36,21,12,0) ${OCC_W}px)`,
|
|
255
|
+
}}>
|
|
256
|
+
<div style={{
|
|
257
|
+
position: 'absolute', top: 0, bottom: 0, left: SOFT * 0.35, width: 260,
|
|
258
|
+
background: `linear-gradient(90deg, ${alpha('#e0703f', 0)} 0%, ${alpha('#e0703f', 0.42)} 45%, ${alpha('#e0703f', 0)} 100%)`,
|
|
259
|
+
}} />
|
|
260
|
+
<div style={{
|
|
261
|
+
position: 'absolute', inset: 0,
|
|
262
|
+
background: 'linear-gradient(180deg, rgba(255,210,170,0.08) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%)',
|
|
263
|
+
// 只作用在实心区,软边处渐隐(否则在透明软边上画出一道硬边)
|
|
264
|
+
WebkitMaskImage: `linear-gradient(90deg, transparent 0px, #000 ${SOFT}px, #000 ${SOFT + CORE}px, transparent ${OCC_W}px)`,
|
|
265
|
+
maskImage: `linear-gradient(90deg, transparent 0px, #000 ${SOFT}px, #000 ${SOFT + CORE}px, transparent ${OCC_W}px)`,
|
|
266
|
+
}} />
|
|
267
|
+
</div>
|
|
268
|
+
</>
|
|
269
|
+
)}
|
|
270
|
+
</AbsoluteFill>
|
|
271
|
+
);
|
|
272
|
+
};
|