dsh-drawai 0.4.1 → 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 +96 -253
- package/lib/client.js +28 -7
- package/lib/index.js +474 -97
- package/lib/motion/asset-pack.js +109 -50
- package/lib/motion/assets.js +291 -291
- package/lib/motion/demo-assets-lock.js +10 -0
- package/lib/motion/mgstyles/vendor/README.md +28 -0
- package/lib/motion/mgstyles/vendor/modules/d3/LICENSE +13 -0
- package/lib/motion/mgstyles/vendor/modules/d3/dist/d3.min.js +2 -0
- package/lib/motion/mgstyles/vendor/modules/opentype.js/LICENSE +20 -0
- package/lib/motion/mgstyles/vendor/modules/opentype.js/dist/opentype.mjs +14460 -0
- package/lib/motion/mgstyles/vendor/modules/simplex-noise/LICENSE +21 -0
- package/lib/motion/mgstyles/vendor/modules/simplex-noise/dist/esm/simplex-noise.js +466 -0
- package/lib/motion/mgstyles/vendor/modules/topojson-client/LICENSE +13 -0
- package/lib/motion/mgstyles/vendor/modules/topojson-client/dist/topojson-client.min.js +2 -0
- package/lib/motion/preview.js +10 -3
- package/lib/motion/render.js +19 -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 +47 -12
- package/lib/motion-project.js +22 -3
- package/lib/motion-render-worker.js +31 -9
- package/lib/routing/router.js +12 -1
- package/lib/style-kernel.js +16 -6
- package/lib/video-trace-pool.js +128 -128
- package/package.json +1 -1
- package/LICENSE +0 -4175
|
@@ -1,264 +1,264 @@
|
|
|
1
|
-
// 落点冲击套件(impact-burst-kit)——主卡从镜头前砸进页面里的空槽位,落点帧同帧起爆
|
|
2
|
-
// 冲击环 + 碎屑迸发 + 震屏;冲击波前沿扫到左右邻卡的那一帧(按半径-距离反解 = 落点后 3f),
|
|
3
|
-
// 早已驻场的邻卡被可见地向外推开、再阻尼弹回——"这一下震到了邻居"。
|
|
4
|
-
//
|
|
5
|
-
// 第二轮重设计(瓷白规格页 · Launch film 砸入):
|
|
6
|
-
// - look = porcelain(冷白 · 钴蓝)。页面是 video-shotcraft 的成片规格区:眉题标志 + 标题「One prompt to a finished promo.」,
|
|
7
|
-
// 三张 470×600 规格卡——Teaser / Walkthrough 两张白卡开场就在,中间是一个虚线空槽;主角 Launch film 卡是深墨蓝底
|
|
8
|
-
// (全片唯一的暗面 = 视觉重心),112px 时长、钴蓝 CTA,落定后头顶弹出「DIRECTOR'S CUT」签。
|
|
9
|
-
// - 节奏「悬 — 砸 — 震 — 传 — 落」:0–16f 主卡悬在槽位上方的镜头前(scale 1.55→1.6、上提 20px、景深虚化,
|
|
10
|
-
// 槽位里的接触影随高度变实)→ 16–22f 六帧 ease-in 加速砸落 → 22f 落点帧:卡片压扁 3f 再弹簧回正 +
|
|
11
|
-
// 钴蓝冲击环(白色压力盘打底,扩散 out-cubic / 消散线性解耦)+ 18 片碎屑 + 8px 震屏 4f →
|
|
12
|
-
// 25f 环前沿过邻卡中心:邻卡外推 34px + 旋转 ±3.5°,包络 cos(t/2)·e^(−t/8),40f 硬钳 0,推开那一下给水平拖影。
|
|
13
|
-
// - 落定后 28f「DIRECTOR'S CUT」签弹簧弹出,邻卡 ~65f 归位,此后整版真静止(只留极缓推镜)。
|
|
14
|
-
//
|
|
15
|
-
// 时间表(30fps,共 140f):
|
|
16
|
-
// 0–16 邻卡驻场 ≥15f;主卡悬停蓄力(上提 + 放大 + 虚化),空槽可见
|
|
17
|
-
// 16–22 砸落(主动作 6f,ease-in)
|
|
18
|
-
// 22–38 落点:压扁回弹、冲击环 16f、碎屑 22f、震屏 4f
|
|
19
|
-
// 25–65 邻卡被波及:外推 → 阻尼弹回 → 硬钳归零
|
|
20
|
-
// 28–40 DIRECTOR'S CUT 签弹出
|
|
21
|
-
// 65–140 hold(75f)
|
|
22
|
-
import React from 'react';
|
|
23
|
-
import { AbsoluteFill, useCurrentFrame } from 'remotion';
|
|
24
|
-
import { EASE, FONT, SpeedBlur, bezier, mix, ramp, softShadow } from '../../_fixtures/Polish';
|
|
25
|
-
import { LOOKS, Stage, alpha, springAt } from '../../_fixtures/Look';
|
|
26
|
-
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
27
|
-
|
|
28
|
-
export const IMPACT_BURST_KIT_DURATION = 140;
|
|
29
|
-
|
|
30
|
-
const L = LOOKS.porcelain;
|
|
31
|
-
const NAVY = '#0e1631';
|
|
32
|
-
const CW = 470;
|
|
33
|
-
const CH = 600;
|
|
34
|
-
const GAP = 44;
|
|
35
|
-
const X0 = (1920 - (CW * 3 + GAP * 2)) / 2; // 211
|
|
36
|
-
const Y = 300;
|
|
37
|
-
const CX = 960;
|
|
38
|
-
const CY = Y + CH / 2; // 600
|
|
39
|
-
const IMPACT = 22;
|
|
40
|
-
const DROP0 = 16;
|
|
41
|
-
// 冲击环半径 100→1100(16f out-cubic)。前沿到邻卡中心距 514px:(514−100)/1000=0.414 → p≈0.163 → 2.6f → 取 +3f
|
|
42
|
-
const HIT = IMPACT + 3;
|
|
43
|
-
const EASE_IN_CUBIC = bezier(0.55, 0.055, 0.675, 0.19);
|
|
44
|
-
|
|
45
|
-
const rnd = (n: number) => {
|
|
46
|
-
const x = Math.sin(n * 127.1 + 311.7) * 43758.5453;
|
|
47
|
-
return x - Math.floor(x);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// 碎屑:钴蓝碎片 + 白纸屑,上半球为主
|
|
51
|
-
const BITS = Array.from({ length: 18 }, (_, i) => ({
|
|
52
|
-
ang: -Math.PI / 2 + (rnd(i + 1) - 0.5) * Math.PI * 1.75,
|
|
53
|
-
dist: 260 + rnd(i + 40) * 300,
|
|
54
|
-
size: 12 + rnd(i + 80) * 16,
|
|
55
|
-
blue: i % 3 !== 2,
|
|
56
|
-
spin: (rnd(i + 120) - 0.5) * 720,
|
|
57
|
-
ratio: 0.35 + rnd(i + 9) * 0.5,
|
|
58
|
-
}));
|
|
59
|
-
|
|
60
|
-
// 邻卡被推开的阻尼包络:t=0 瞬时到 1,余弦衰减,40f 后钳 0 保证真静止
|
|
61
|
-
const pushEnv = (f: number) => {
|
|
62
|
-
const t = f - HIT;
|
|
63
|
-
if (t < 0 || t >= 40) return 0;
|
|
64
|
-
return Math.cos(t * 0.5) * Math.exp(-t / 8);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
const Check: React.FC<{ c: string }> = ({ c }) => (
|
|
68
|
-
<svg width={30} height={30} viewBox="0 0 30 30" style={{ flex: 'none' }}>
|
|
69
|
-
<circle cx={15} cy={15} r={14} fill={alpha(c, 0.14)} />
|
|
70
|
-
<path d="M9 15.5 L13.2 19.5 L21 11" fill="none" stroke={c} strokeWidth={2.6} strokeLinecap="round" strokeLinejoin="round" />
|
|
71
|
-
</svg>
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
type Plan = { name: string; price: string; unit: string; blurb: string; feats: string[]; cta: string; hero?: boolean };
|
|
75
|
-
// video-shotcraft 的三种成片规格:大数字是片长(演示值),主角是 Launch film
|
|
76
|
-
const PLANS: Plan[] = [
|
|
77
|
-
{ name: 'Teaser', price: '15s', unit: '9:16 social', blurb: 'For a social drop.', feats: ['Crash-zoom open', 'Beat-synced cuts', 'Logo sting'], cta: 'Cut a teaser' },
|
|
78
|
-
{ name: 'Launch film', price: '60s', unit: '16:9 · 1080p', blurb: 'Your product, in motion.', feats: ['Real page captures', '2.5D camera moves', 'Film-grade SFX'], cta: 'Render launch film', hero: true },
|
|
79
|
-
{ name: 'Walkthrough', price: '90s', unit: 'with voiceover', blurb: 'Every feature, shot by shot.', feats: ['Cursor flyovers', 'Callout zooms', 'JianYing export'], cta: 'Storyboard it' },
|
|
80
|
-
];
|
|
81
|
-
|
|
82
|
-
const PlanCard: React.FC<{ p: Plan }> = ({ p }) => {
|
|
83
|
-
const dark = !!p.hero;
|
|
84
|
-
const ink = dark ? '#f2f5ff' : L.ink;
|
|
85
|
-
const ink2 = dark ? '#a9b4d0' : L.ink2;
|
|
86
|
-
const acc = dark ? '#7d9bff' : L.accent;
|
|
87
|
-
return (
|
|
88
|
-
<div style={{ position: 'absolute', inset: 0, padding: '44px 44px 40px', boxSizing: 'border-box', display: 'flex', flexDirection: 'column', fontFamily: FONT.sans, color: ink }}>
|
|
89
|
-
<div style={{ font: `700 34px ${FONT.sans}`, letterSpacing: '-0.02em' }}>{p.name}</div>
|
|
90
|
-
<div style={{ marginTop: 6, font: `500 26px ${FONT.sans}`, color: ink2 }}>{p.blurb}</div>
|
|
91
|
-
<div style={{ marginTop: 30, display: 'flex', alignItems: 'baseline', gap: 12 }}>
|
|
92
|
-
<span style={{ font: `820 ${dark ? 112 : 100}px ${FONT.sans}`, letterSpacing: '-0.055em', lineHeight: 0.9, fontVariantNumeric: 'tabular-nums' }}>{p.price}</span>
|
|
93
|
-
<span style={{ font: `500 26px ${FONT.sans}`, color: ink2, whiteSpace: 'nowrap' }}>{p.unit}</span>
|
|
94
|
-
</div>
|
|
95
|
-
<div style={{ marginTop: dark ? 26 : 34, height: 1, background: dark ? 'rgba(160,190,255,0.16)' : L.line }} />
|
|
96
|
-
<div style={{ marginTop: 28, display: 'flex', flexDirection: 'column', gap: 20 }}>
|
|
97
|
-
{p.feats.map((f) => (
|
|
98
|
-
<div key={f} style={{ display: 'flex', alignItems: 'center', gap: 16, font: `550 30px ${FONT.sans}`, letterSpacing: '-0.012em' }}>
|
|
99
|
-
<Check c={acc} />
|
|
100
|
-
{f}
|
|
101
|
-
</div>
|
|
102
|
-
))}
|
|
103
|
-
</div>
|
|
104
|
-
<div style={{
|
|
105
|
-
marginTop: 'auto', height: 72, borderRadius: 18, display: 'flex', alignItems: 'center', justifyContent: 'center', font: `680 28px ${FONT.sans}`, letterSpacing: '-0.01em',
|
|
106
|
-
background: dark ? `linear-gradient(180deg, #5b7dff, ${L.accent})` : 'transparent', color: dark ? '#ffffff' : ink,
|
|
107
|
-
border: dark ? 'none' : `2px solid ${alpha(L.ink, 0.14)}`,
|
|
108
|
-
boxShadow: dark ? `0 14px 30px -12px ${alpha(L.accent, 0.9)}, inset 0 1px 0 rgba(255,255,255,0.3)` : 'none',
|
|
109
|
-
}}>
|
|
110
|
-
{p.cta}
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
);
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export const ImpactBurstKit: React.FC = () => {
|
|
117
|
-
const frame = useCurrentFrame();
|
|
118
|
-
|
|
119
|
-
// ── 主卡(Launch film):0–16 悬停蓄力 → 16–22 加速砸落 → 22 起压扁回弹
|
|
120
|
-
const wind = ramp(frame, 0, DROP0, EASE.smooth);
|
|
121
|
-
const drop = ramp(frame, DROP0, IMPACT - DROP0, EASE_IN_CUBIC);
|
|
122
|
-
const hoverScale = 1.55 + 0.05 * wind;
|
|
123
|
-
const hoverDy = -110 - 20 * wind;
|
|
124
|
-
const mScale = mix(hoverScale, 1, drop);
|
|
125
|
-
const mDy = mix(hoverDy, 0, drop);
|
|
126
|
-
const lift = Math.min(1, Math.max(0, (mScale - 1) / 0.6));
|
|
127
|
-
const dof = lift * 7;
|
|
128
|
-
const squash = frame < IMPACT ? 0 : frame < IMPACT + 3 ? ramp(frame, IMPACT, 3, EASE.out) : 1 - springAt(frame, IMPACT + 3, { damping: 12, stiffness: 320 });
|
|
129
|
-
const sx = mScale * (1 + 0.06 * squash);
|
|
130
|
-
const sy = mScale * (1 - 0.085 * squash);
|
|
131
|
-
const mOp = ramp(frame, 0, 5, EASE.out);
|
|
132
|
-
|
|
133
|
-
// ── 冲击环 + 压力盘
|
|
134
|
-
const ringP = ramp(frame, IMPACT, 16, EASE.snappy);
|
|
135
|
-
const ringLin = ramp(frame, IMPACT, 16, EASE.linear);
|
|
136
|
-
const ringOn = frame >= IMPACT && frame < IMPACT + 16;
|
|
137
|
-
const ringR = mix(100, 1100, ringP);
|
|
138
|
-
const ringOp = mix(0.95, 0, ringLin);
|
|
139
|
-
const ringW = mix(10, 1.5, ringP);
|
|
140
|
-
|
|
141
|
-
// ── 碎屑 22f
|
|
142
|
-
const pT = ramp(frame, IMPACT, 22, EASE.out);
|
|
143
|
-
const pLin = ramp(frame, IMPACT, 22, EASE.linear);
|
|
144
|
-
const pOn = frame >= IMPACT && frame < IMPACT + 22;
|
|
145
|
-
|
|
146
|
-
// ── 邻卡波及
|
|
147
|
-
const env = pushEnv(frame);
|
|
148
|
-
const pushX = 34 * env;
|
|
149
|
-
const pushRot = 3.5 * env;
|
|
150
|
-
const pushV = 34 * (pushEnv(frame + 0.5) - pushEnv(frame - 0.5));
|
|
151
|
-
|
|
152
|
-
// ── 震屏 4f,8px 衰减
|
|
153
|
-
let shakeX = 0;
|
|
154
|
-
let shakeY = 0;
|
|
155
|
-
if (frame >= IMPACT && frame < IMPACT + 4) {
|
|
156
|
-
const amp = 8 * (1 - (frame - IMPACT) / 4);
|
|
157
|
-
shakeX = (rnd(frame * 3.7) - 0.5) * 2 * amp;
|
|
158
|
-
shakeY = (frame === IMPACT ? 1 : (rnd(frame * 7.1 + 13) - 0.5) * 2) * amp;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
const badge = frame < IMPACT + 6 ? 0 : springAt(frame, IMPACT + 6, { damping: 13, stiffness: 240 });
|
|
162
|
-
const push = 1 + 0.02 * ramp(frame, IMPACT, 118, EASE.swift);
|
|
163
|
-
const neighborShadow = `${softShadow(6 + Math.abs(env) * 26, { color: L.shadow })}, inset 0 0 0 1px ${alpha(L.ink, 0.07)}, inset 0 1px 0 #ffffff`;
|
|
164
|
-
|
|
165
|
-
return (
|
|
166
|
-
<AbsoluteFill style={{ overflow: 'hidden' }}>
|
|
167
|
-
<Stage look={L} keyLight={{ x: 0.5, y: 0.12 }} fill={{ x: 0.5, y: 1.0 }} />
|
|
168
|
-
<div style={{ position: 'absolute', inset: 0, transform: `translate(${shakeX.toFixed(2)}px, ${shakeY.toFixed(2)}px) scale(${push.toFixed(5)})` }}>
|
|
169
|
-
{/* 页面标题区:本来就在 */}
|
|
170
|
-
<div style={{ position: 'absolute', left: X0, top: 104, fontFamily: FONT.sans, color: L.ink }}>
|
|
171
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 14, font: `700 24px ${FONT.mono}`, letterSpacing: '0.06em', color: L.accent }}>
|
|
172
|
-
<ShotcraftMark size={34} tone="light" />
|
|
173
|
-
<span style={{ color: L.ink }}>{BRAND.name}</span>
|
|
174
|
-
<span>· formats</span>
|
|
175
|
-
</div>
|
|
176
|
-
<div style={{ marginTop: 14, font: `780 76px ${FONT.sans}`, letterSpacing: '-0.045em', lineHeight: 1 }}>One prompt to a finished promo.</div>
|
|
177
|
-
</div>
|
|
178
|
-
|
|
179
|
-
{/* 中间空槽:虚线槽位 + 随下落变实的接触影 */}
|
|
180
|
-
<div style={{ position: 'absolute', left: X0 + CW + GAP, top: Y, width: CW, height: CH, borderRadius: 30, border: `2px dashed ${alpha(L.accent, 0.3)}`, background: alpha(L.accent, 0.035), opacity: 1 - ramp(frame, IMPACT, 3, EASE.out) }} />
|
|
181
|
-
<div style={{
|
|
182
|
-
position: 'absolute', left: X0 + CW + GAP - 30, top: Y + CH - 60, width: CW + 60, height: 120, borderRadius: '50%',
|
|
183
|
-
background: `radial-gradient(ellipse 50% 50% at 50% 50%, ${alpha(L.shadow, 0.22)} 0%, ${alpha(L.shadow, 0)} 70%)`,
|
|
184
|
-
opacity: frame < IMPACT ? mix(0.25, 1, drop) : 1 - ramp(frame, IMPACT, 4, EASE.out), transform: `scale(${mix(1.5, 1, drop).toFixed(3)})`,
|
|
185
|
-
}} />
|
|
186
|
-
|
|
187
|
-
{/* 左右邻卡:被冲击波推开再弹回 */}
|
|
188
|
-
{[0, 2].map((k) => {
|
|
189
|
-
const dir = k === 0 ? -1 : 1;
|
|
190
|
-
return (
|
|
191
|
-
<SpeedBlur key={k} vx={dir * pushV} amount={0.22} max={8}>
|
|
192
|
-
<div style={{
|
|
193
|
-
position: 'absolute', left: X0 + k * (CW + GAP), top: Y, width: CW, height: CH, borderRadius: 30, background: '#ffffff', boxShadow: neighborShadow,
|
|
194
|
-
transform: `translateX(${(dir * pushX).toFixed(2)}px) rotate(${(dir * pushRot).toFixed(3)}deg)`, transformOrigin: `50% 100%`,
|
|
195
|
-
}}>
|
|
196
|
-
<PlanCard p={PLANS[k]} />
|
|
197
|
-
</div>
|
|
198
|
-
</SpeedBlur>
|
|
199
|
-
);
|
|
200
|
-
})}
|
|
201
|
-
|
|
202
|
-
{/* 压力盘:落点一瞬的白色气浪(打底,让钴蓝环在亮底上读得出来) */}
|
|
203
|
-
{ringOn && (
|
|
204
|
-
<div style={{
|
|
205
|
-
position: 'absolute', left: CX - ringR * 0.9, top: CY - ringR * 0.9, width: ringR * 1.8, height: ringR * 1.8, borderRadius: '50%',
|
|
206
|
-
background: `radial-gradient(circle, ${alpha('#ffffff', 0)} 40%, ${alpha('#ffffff', 0.55 * (1 - ringLin))} 68%, ${alpha('#ffffff', 0)} 72%)`,
|
|
207
|
-
}} />
|
|
208
|
-
)}
|
|
209
|
-
|
|
210
|
-
{/* 主卡 Launch film */}
|
|
211
|
-
<div style={{
|
|
212
|
-
position: 'absolute', left: X0 + CW + GAP, top: Y + mDy, width: CW, height: CH, borderRadius: 30, opacity: mOp,
|
|
213
|
-
background: `linear-gradient(170deg, #1a2550 0%, ${NAVY} 55%, #0a1026 100%)`,
|
|
214
|
-
boxShadow: `0 ${(18 + lift * 60).toFixed(1)}px ${(50 + lift * 90).toFixed(1)}px -18px ${alpha('#0c1a3a', 0.55 - lift * 0.15)}, 0 0 0 1px ${alpha('#9db4ff', 0.18)}, inset 0 1px 0 ${alpha('#ffffff', 0.14)}`,
|
|
215
|
-
transform: `scale(${sx.toFixed(4)}, ${sy.toFixed(4)})`, transformOrigin: '50% 100%',
|
|
216
|
-
filter: dof > 0.4 ? `blur(${dof.toFixed(2)}px)` : undefined,
|
|
217
|
-
}}>
|
|
218
|
-
{/* 顶部钴蓝辉光 */}
|
|
219
|
-
<div style={{ position: 'absolute', inset: 0, borderRadius: 30, overflow: 'hidden' }}>
|
|
220
|
-
<div style={{ position: 'absolute', left: -80, right: -80, top: -260, height: 420, background: `radial-gradient(ellipse 50% 50% at 50% 50%, ${alpha(L.accent, 0.45)} 0%, ${alpha(L.accent, 0)} 70%)` }} />
|
|
221
|
-
</div>
|
|
222
|
-
<PlanCard p={PLANS[1]} />
|
|
223
|
-
{/* DIRECTOR'S CUT 签:落定后弹出,骑在卡顶缘 */}
|
|
224
|
-
<div style={{ position: 'absolute', left: 0, right: 0, top: -24, display: 'flex', justifyContent: 'center' }}>
|
|
225
|
-
<div style={{
|
|
226
|
-
height: 48, padding: '0 22px', borderRadius: 24, background: L.accent, color: '#ffffff', display: 'flex', alignItems: 'center',
|
|
227
|
-
font: `800 22px ${FONT.mono}`, letterSpacing: '0.12em', transform: `scale(${badge.toFixed(4)})`, opacity: Math.min(1, badge * 2),
|
|
228
|
-
boxShadow: `0 10px 24px -8px ${alpha(L.accent, 0.8)}, inset 0 1px 0 rgba(255,255,255,0.35)`,
|
|
229
|
-
}}>
|
|
230
|
-
{"DIRECTOR'S CUT"}
|
|
231
|
-
</div>
|
|
232
|
-
</div>
|
|
233
|
-
</div>
|
|
234
|
-
|
|
235
|
-
{/* 碎屑(卡上方):沿飞行方向按速度拉长 */}
|
|
236
|
-
{pOn && BITS.map((b, i) => {
|
|
237
|
-
const sp = Math.pow(1 - pT, 2 / 3);
|
|
238
|
-
const px = CX + Math.cos(b.ang) * (140 + b.dist * pT);
|
|
239
|
-
const py = CY - 40 + Math.sin(b.ang) * (140 + b.dist * pT) * 0.85 + 120 * pLin * pLin;
|
|
240
|
-
const s = b.size * (1 - 0.6 * pLin);
|
|
241
|
-
const stretch = 1 + Math.min(1.6, sp * 1.6);
|
|
242
|
-
return (
|
|
243
|
-
<div key={i} style={{ position: 'absolute', left: px - s / 2, top: py - (s * b.ratio) / 2, width: s, height: s * b.ratio, transform: `rotate(${((b.ang * 180) / Math.PI).toFixed(1)}deg) scaleX(${stretch.toFixed(3)})`, opacity: pLin < 0.65 ? 1 : 1 - (pLin - 0.65) / 0.35 }}>
|
|
244
|
-
<div style={{
|
|
245
|
-
position: 'absolute', inset: 0, borderRadius: 2,
|
|
246
|
-
background: b.blue ? L.accent : '#ffffff', boxShadow: b.blue ? `0 0 8px ${alpha(L.accent, 0.45)}` : `0 0 0 1px ${alpha(L.ink, 0.1)}, 0 3px 8px ${alpha(L.shadow, 0.25)}`,
|
|
247
|
-
transform: `rotate(${(b.spin * pT).toFixed(1)}deg)`,
|
|
248
|
-
}} />
|
|
249
|
-
</div>
|
|
250
|
-
);
|
|
251
|
-
})}
|
|
252
|
-
|
|
253
|
-
{/* 冲击环:钴蓝细环 + 柔辉,越扩越细 */}
|
|
254
|
-
{ringOn && (
|
|
255
|
-
<div style={{
|
|
256
|
-
position: 'absolute', left: CX - ringR, top: CY - ringR, width: ringR * 2, height: ringR * 2, borderRadius: '50%', boxSizing: 'border-box', opacity: ringOp,
|
|
257
|
-
border: `${ringW.toFixed(2)}px solid ${alpha(L.accent, 0.9)}`,
|
|
258
|
-
boxShadow: `0 0 ${(18 + ringP * 30).toFixed(0)}px ${alpha(L.accent, 0.35)}, inset 0 0 ${(18 + ringP * 30).toFixed(0)}px ${alpha(L.accent, 0.2)}`,
|
|
259
|
-
}} />
|
|
260
|
-
)}
|
|
261
|
-
</div>
|
|
262
|
-
</AbsoluteFill>
|
|
263
|
-
);
|
|
264
|
-
};
|
|
1
|
+
// 落点冲击套件(impact-burst-kit)——主卡从镜头前砸进页面里的空槽位,落点帧同帧起爆
|
|
2
|
+
// 冲击环 + 碎屑迸发 + 震屏;冲击波前沿扫到左右邻卡的那一帧(按半径-距离反解 = 落点后 3f),
|
|
3
|
+
// 早已驻场的邻卡被可见地向外推开、再阻尼弹回——"这一下震到了邻居"。
|
|
4
|
+
//
|
|
5
|
+
// 第二轮重设计(瓷白规格页 · Launch film 砸入):
|
|
6
|
+
// - look = porcelain(冷白 · 钴蓝)。页面是 video-shotcraft 的成片规格区:眉题标志 + 标题「One prompt to a finished promo.」,
|
|
7
|
+
// 三张 470×600 规格卡——Teaser / Walkthrough 两张白卡开场就在,中间是一个虚线空槽;主角 Launch film 卡是深墨蓝底
|
|
8
|
+
// (全片唯一的暗面 = 视觉重心),112px 时长、钴蓝 CTA,落定后头顶弹出「DIRECTOR'S CUT」签。
|
|
9
|
+
// - 节奏「悬 — 砸 — 震 — 传 — 落」:0–16f 主卡悬在槽位上方的镜头前(scale 1.55→1.6、上提 20px、景深虚化,
|
|
10
|
+
// 槽位里的接触影随高度变实)→ 16–22f 六帧 ease-in 加速砸落 → 22f 落点帧:卡片压扁 3f 再弹簧回正 +
|
|
11
|
+
// 钴蓝冲击环(白色压力盘打底,扩散 out-cubic / 消散线性解耦)+ 18 片碎屑 + 8px 震屏 4f →
|
|
12
|
+
// 25f 环前沿过邻卡中心:邻卡外推 34px + 旋转 ±3.5°,包络 cos(t/2)·e^(−t/8),40f 硬钳 0,推开那一下给水平拖影。
|
|
13
|
+
// - 落定后 28f「DIRECTOR'S CUT」签弹簧弹出,邻卡 ~65f 归位,此后整版真静止(只留极缓推镜)。
|
|
14
|
+
//
|
|
15
|
+
// 时间表(30fps,共 140f):
|
|
16
|
+
// 0–16 邻卡驻场 ≥15f;主卡悬停蓄力(上提 + 放大 + 虚化),空槽可见
|
|
17
|
+
// 16–22 砸落(主动作 6f,ease-in)
|
|
18
|
+
// 22–38 落点:压扁回弹、冲击环 16f、碎屑 22f、震屏 4f
|
|
19
|
+
// 25–65 邻卡被波及:外推 → 阻尼弹回 → 硬钳归零
|
|
20
|
+
// 28–40 DIRECTOR'S CUT 签弹出
|
|
21
|
+
// 65–140 hold(75f)
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { AbsoluteFill, useCurrentFrame } from 'remotion';
|
|
24
|
+
import { EASE, FONT, SpeedBlur, bezier, mix, ramp, softShadow } from '../../_fixtures/Polish';
|
|
25
|
+
import { LOOKS, Stage, alpha, springAt } from '../../_fixtures/Look';
|
|
26
|
+
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
|
|
27
|
+
|
|
28
|
+
export const IMPACT_BURST_KIT_DURATION = 140;
|
|
29
|
+
|
|
30
|
+
const L = LOOKS.porcelain;
|
|
31
|
+
const NAVY = '#0e1631';
|
|
32
|
+
const CW = 470;
|
|
33
|
+
const CH = 600;
|
|
34
|
+
const GAP = 44;
|
|
35
|
+
const X0 = (1920 - (CW * 3 + GAP * 2)) / 2; // 211
|
|
36
|
+
const Y = 300;
|
|
37
|
+
const CX = 960;
|
|
38
|
+
const CY = Y + CH / 2; // 600
|
|
39
|
+
const IMPACT = 22;
|
|
40
|
+
const DROP0 = 16;
|
|
41
|
+
// 冲击环半径 100→1100(16f out-cubic)。前沿到邻卡中心距 514px:(514−100)/1000=0.414 → p≈0.163 → 2.6f → 取 +3f
|
|
42
|
+
const HIT = IMPACT + 3;
|
|
43
|
+
const EASE_IN_CUBIC = bezier(0.55, 0.055, 0.675, 0.19);
|
|
44
|
+
|
|
45
|
+
const rnd = (n: number) => {
|
|
46
|
+
const x = Math.sin(n * 127.1 + 311.7) * 43758.5453;
|
|
47
|
+
return x - Math.floor(x);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// 碎屑:钴蓝碎片 + 白纸屑,上半球为主
|
|
51
|
+
const BITS = Array.from({ length: 18 }, (_, i) => ({
|
|
52
|
+
ang: -Math.PI / 2 + (rnd(i + 1) - 0.5) * Math.PI * 1.75,
|
|
53
|
+
dist: 260 + rnd(i + 40) * 300,
|
|
54
|
+
size: 12 + rnd(i + 80) * 16,
|
|
55
|
+
blue: i % 3 !== 2,
|
|
56
|
+
spin: (rnd(i + 120) - 0.5) * 720,
|
|
57
|
+
ratio: 0.35 + rnd(i + 9) * 0.5,
|
|
58
|
+
}));
|
|
59
|
+
|
|
60
|
+
// 邻卡被推开的阻尼包络:t=0 瞬时到 1,余弦衰减,40f 后钳 0 保证真静止
|
|
61
|
+
const pushEnv = (f: number) => {
|
|
62
|
+
const t = f - HIT;
|
|
63
|
+
if (t < 0 || t >= 40) return 0;
|
|
64
|
+
return Math.cos(t * 0.5) * Math.exp(-t / 8);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const Check: React.FC<{ c: string }> = ({ c }) => (
|
|
68
|
+
<svg width={30} height={30} viewBox="0 0 30 30" style={{ flex: 'none' }}>
|
|
69
|
+
<circle cx={15} cy={15} r={14} fill={alpha(c, 0.14)} />
|
|
70
|
+
<path d="M9 15.5 L13.2 19.5 L21 11" fill="none" stroke={c} strokeWidth={2.6} strokeLinecap="round" strokeLinejoin="round" />
|
|
71
|
+
</svg>
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
type Plan = { name: string; price: string; unit: string; blurb: string; feats: string[]; cta: string; hero?: boolean };
|
|
75
|
+
// video-shotcraft 的三种成片规格:大数字是片长(演示值),主角是 Launch film
|
|
76
|
+
const PLANS: Plan[] = [
|
|
77
|
+
{ name: 'Teaser', price: '15s', unit: '9:16 social', blurb: 'For a social drop.', feats: ['Crash-zoom open', 'Beat-synced cuts', 'Logo sting'], cta: 'Cut a teaser' },
|
|
78
|
+
{ name: 'Launch film', price: '60s', unit: '16:9 · 1080p', blurb: 'Your product, in motion.', feats: ['Real page captures', '2.5D camera moves', 'Film-grade SFX'], cta: 'Render launch film', hero: true },
|
|
79
|
+
{ name: 'Walkthrough', price: '90s', unit: 'with voiceover', blurb: 'Every feature, shot by shot.', feats: ['Cursor flyovers', 'Callout zooms', 'JianYing export'], cta: 'Storyboard it' },
|
|
80
|
+
];
|
|
81
|
+
|
|
82
|
+
const PlanCard: React.FC<{ p: Plan }> = ({ p }) => {
|
|
83
|
+
const dark = !!p.hero;
|
|
84
|
+
const ink = dark ? '#f2f5ff' : L.ink;
|
|
85
|
+
const ink2 = dark ? '#a9b4d0' : L.ink2;
|
|
86
|
+
const acc = dark ? '#7d9bff' : L.accent;
|
|
87
|
+
return (
|
|
88
|
+
<div style={{ position: 'absolute', inset: 0, padding: '44px 44px 40px', boxSizing: 'border-box', display: 'flex', flexDirection: 'column', fontFamily: FONT.sans, color: ink }}>
|
|
89
|
+
<div style={{ font: `700 34px ${FONT.sans}`, letterSpacing: '-0.02em' }}>{p.name}</div>
|
|
90
|
+
<div style={{ marginTop: 6, font: `500 26px ${FONT.sans}`, color: ink2 }}>{p.blurb}</div>
|
|
91
|
+
<div style={{ marginTop: 30, display: 'flex', alignItems: 'baseline', gap: 12 }}>
|
|
92
|
+
<span style={{ font: `820 ${dark ? 112 : 100}px ${FONT.sans}`, letterSpacing: '-0.055em', lineHeight: 0.9, fontVariantNumeric: 'tabular-nums' }}>{p.price}</span>
|
|
93
|
+
<span style={{ font: `500 26px ${FONT.sans}`, color: ink2, whiteSpace: 'nowrap' }}>{p.unit}</span>
|
|
94
|
+
</div>
|
|
95
|
+
<div style={{ marginTop: dark ? 26 : 34, height: 1, background: dark ? 'rgba(160,190,255,0.16)' : L.line }} />
|
|
96
|
+
<div style={{ marginTop: 28, display: 'flex', flexDirection: 'column', gap: 20 }}>
|
|
97
|
+
{p.feats.map((f) => (
|
|
98
|
+
<div key={f} style={{ display: 'flex', alignItems: 'center', gap: 16, font: `550 30px ${FONT.sans}`, letterSpacing: '-0.012em' }}>
|
|
99
|
+
<Check c={acc} />
|
|
100
|
+
{f}
|
|
101
|
+
</div>
|
|
102
|
+
))}
|
|
103
|
+
</div>
|
|
104
|
+
<div style={{
|
|
105
|
+
marginTop: 'auto', height: 72, borderRadius: 18, display: 'flex', alignItems: 'center', justifyContent: 'center', font: `680 28px ${FONT.sans}`, letterSpacing: '-0.01em',
|
|
106
|
+
background: dark ? `linear-gradient(180deg, #5b7dff, ${L.accent})` : 'transparent', color: dark ? '#ffffff' : ink,
|
|
107
|
+
border: dark ? 'none' : `2px solid ${alpha(L.ink, 0.14)}`,
|
|
108
|
+
boxShadow: dark ? `0 14px 30px -12px ${alpha(L.accent, 0.9)}, inset 0 1px 0 rgba(255,255,255,0.3)` : 'none',
|
|
109
|
+
}}>
|
|
110
|
+
{p.cta}
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export const ImpactBurstKit: React.FC = () => {
|
|
117
|
+
const frame = useCurrentFrame();
|
|
118
|
+
|
|
119
|
+
// ── 主卡(Launch film):0–16 悬停蓄力 → 16–22 加速砸落 → 22 起压扁回弹
|
|
120
|
+
const wind = ramp(frame, 0, DROP0, EASE.smooth);
|
|
121
|
+
const drop = ramp(frame, DROP0, IMPACT - DROP0, EASE_IN_CUBIC);
|
|
122
|
+
const hoverScale = 1.55 + 0.05 * wind;
|
|
123
|
+
const hoverDy = -110 - 20 * wind;
|
|
124
|
+
const mScale = mix(hoverScale, 1, drop);
|
|
125
|
+
const mDy = mix(hoverDy, 0, drop);
|
|
126
|
+
const lift = Math.min(1, Math.max(0, (mScale - 1) / 0.6));
|
|
127
|
+
const dof = lift * 7;
|
|
128
|
+
const squash = frame < IMPACT ? 0 : frame < IMPACT + 3 ? ramp(frame, IMPACT, 3, EASE.out) : 1 - springAt(frame, IMPACT + 3, { damping: 12, stiffness: 320 });
|
|
129
|
+
const sx = mScale * (1 + 0.06 * squash);
|
|
130
|
+
const sy = mScale * (1 - 0.085 * squash);
|
|
131
|
+
const mOp = ramp(frame, 0, 5, EASE.out);
|
|
132
|
+
|
|
133
|
+
// ── 冲击环 + 压力盘
|
|
134
|
+
const ringP = ramp(frame, IMPACT, 16, EASE.snappy);
|
|
135
|
+
const ringLin = ramp(frame, IMPACT, 16, EASE.linear);
|
|
136
|
+
const ringOn = frame >= IMPACT && frame < IMPACT + 16;
|
|
137
|
+
const ringR = mix(100, 1100, ringP);
|
|
138
|
+
const ringOp = mix(0.95, 0, ringLin);
|
|
139
|
+
const ringW = mix(10, 1.5, ringP);
|
|
140
|
+
|
|
141
|
+
// ── 碎屑 22f
|
|
142
|
+
const pT = ramp(frame, IMPACT, 22, EASE.out);
|
|
143
|
+
const pLin = ramp(frame, IMPACT, 22, EASE.linear);
|
|
144
|
+
const pOn = frame >= IMPACT && frame < IMPACT + 22;
|
|
145
|
+
|
|
146
|
+
// ── 邻卡波及
|
|
147
|
+
const env = pushEnv(frame);
|
|
148
|
+
const pushX = 34 * env;
|
|
149
|
+
const pushRot = 3.5 * env;
|
|
150
|
+
const pushV = 34 * (pushEnv(frame + 0.5) - pushEnv(frame - 0.5));
|
|
151
|
+
|
|
152
|
+
// ── 震屏 4f,8px 衰减
|
|
153
|
+
let shakeX = 0;
|
|
154
|
+
let shakeY = 0;
|
|
155
|
+
if (frame >= IMPACT && frame < IMPACT + 4) {
|
|
156
|
+
const amp = 8 * (1 - (frame - IMPACT) / 4);
|
|
157
|
+
shakeX = (rnd(frame * 3.7) - 0.5) * 2 * amp;
|
|
158
|
+
shakeY = (frame === IMPACT ? 1 : (rnd(frame * 7.1 + 13) - 0.5) * 2) * amp;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const badge = frame < IMPACT + 6 ? 0 : springAt(frame, IMPACT + 6, { damping: 13, stiffness: 240 });
|
|
162
|
+
const push = 1 + 0.02 * ramp(frame, IMPACT, 118, EASE.swift);
|
|
163
|
+
const neighborShadow = `${softShadow(6 + Math.abs(env) * 26, { color: L.shadow })}, inset 0 0 0 1px ${alpha(L.ink, 0.07)}, inset 0 1px 0 #ffffff`;
|
|
164
|
+
|
|
165
|
+
return (
|
|
166
|
+
<AbsoluteFill style={{ overflow: 'hidden' }}>
|
|
167
|
+
<Stage look={L} keyLight={{ x: 0.5, y: 0.12 }} fill={{ x: 0.5, y: 1.0 }} />
|
|
168
|
+
<div style={{ position: 'absolute', inset: 0, transform: `translate(${shakeX.toFixed(2)}px, ${shakeY.toFixed(2)}px) scale(${push.toFixed(5)})` }}>
|
|
169
|
+
{/* 页面标题区:本来就在 */}
|
|
170
|
+
<div style={{ position: 'absolute', left: X0, top: 104, fontFamily: FONT.sans, color: L.ink }}>
|
|
171
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 14, font: `700 24px ${FONT.mono}`, letterSpacing: '0.06em', color: L.accent }}>
|
|
172
|
+
<ShotcraftMark size={34} tone="light" />
|
|
173
|
+
<span style={{ color: L.ink }}>{BRAND.name}</span>
|
|
174
|
+
<span>· formats</span>
|
|
175
|
+
</div>
|
|
176
|
+
<div style={{ marginTop: 14, font: `780 76px ${FONT.sans}`, letterSpacing: '-0.045em', lineHeight: 1 }}>One prompt to a finished promo.</div>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
{/* 中间空槽:虚线槽位 + 随下落变实的接触影 */}
|
|
180
|
+
<div style={{ position: 'absolute', left: X0 + CW + GAP, top: Y, width: CW, height: CH, borderRadius: 30, border: `2px dashed ${alpha(L.accent, 0.3)}`, background: alpha(L.accent, 0.035), opacity: 1 - ramp(frame, IMPACT, 3, EASE.out) }} />
|
|
181
|
+
<div style={{
|
|
182
|
+
position: 'absolute', left: X0 + CW + GAP - 30, top: Y + CH - 60, width: CW + 60, height: 120, borderRadius: '50%',
|
|
183
|
+
background: `radial-gradient(ellipse 50% 50% at 50% 50%, ${alpha(L.shadow, 0.22)} 0%, ${alpha(L.shadow, 0)} 70%)`,
|
|
184
|
+
opacity: frame < IMPACT ? mix(0.25, 1, drop) : 1 - ramp(frame, IMPACT, 4, EASE.out), transform: `scale(${mix(1.5, 1, drop).toFixed(3)})`,
|
|
185
|
+
}} />
|
|
186
|
+
|
|
187
|
+
{/* 左右邻卡:被冲击波推开再弹回 */}
|
|
188
|
+
{[0, 2].map((k) => {
|
|
189
|
+
const dir = k === 0 ? -1 : 1;
|
|
190
|
+
return (
|
|
191
|
+
<SpeedBlur key={k} vx={dir * pushV} amount={0.22} max={8}>
|
|
192
|
+
<div style={{
|
|
193
|
+
position: 'absolute', left: X0 + k * (CW + GAP), top: Y, width: CW, height: CH, borderRadius: 30, background: '#ffffff', boxShadow: neighborShadow,
|
|
194
|
+
transform: `translateX(${(dir * pushX).toFixed(2)}px) rotate(${(dir * pushRot).toFixed(3)}deg)`, transformOrigin: `50% 100%`,
|
|
195
|
+
}}>
|
|
196
|
+
<PlanCard p={PLANS[k]} />
|
|
197
|
+
</div>
|
|
198
|
+
</SpeedBlur>
|
|
199
|
+
);
|
|
200
|
+
})}
|
|
201
|
+
|
|
202
|
+
{/* 压力盘:落点一瞬的白色气浪(打底,让钴蓝环在亮底上读得出来) */}
|
|
203
|
+
{ringOn && (
|
|
204
|
+
<div style={{
|
|
205
|
+
position: 'absolute', left: CX - ringR * 0.9, top: CY - ringR * 0.9, width: ringR * 1.8, height: ringR * 1.8, borderRadius: '50%',
|
|
206
|
+
background: `radial-gradient(circle, ${alpha('#ffffff', 0)} 40%, ${alpha('#ffffff', 0.55 * (1 - ringLin))} 68%, ${alpha('#ffffff', 0)} 72%)`,
|
|
207
|
+
}} />
|
|
208
|
+
)}
|
|
209
|
+
|
|
210
|
+
{/* 主卡 Launch film */}
|
|
211
|
+
<div style={{
|
|
212
|
+
position: 'absolute', left: X0 + CW + GAP, top: Y + mDy, width: CW, height: CH, borderRadius: 30, opacity: mOp,
|
|
213
|
+
background: `linear-gradient(170deg, #1a2550 0%, ${NAVY} 55%, #0a1026 100%)`,
|
|
214
|
+
boxShadow: `0 ${(18 + lift * 60).toFixed(1)}px ${(50 + lift * 90).toFixed(1)}px -18px ${alpha('#0c1a3a', 0.55 - lift * 0.15)}, 0 0 0 1px ${alpha('#9db4ff', 0.18)}, inset 0 1px 0 ${alpha('#ffffff', 0.14)}`,
|
|
215
|
+
transform: `scale(${sx.toFixed(4)}, ${sy.toFixed(4)})`, transformOrigin: '50% 100%',
|
|
216
|
+
filter: dof > 0.4 ? `blur(${dof.toFixed(2)}px)` : undefined,
|
|
217
|
+
}}>
|
|
218
|
+
{/* 顶部钴蓝辉光 */}
|
|
219
|
+
<div style={{ position: 'absolute', inset: 0, borderRadius: 30, overflow: 'hidden' }}>
|
|
220
|
+
<div style={{ position: 'absolute', left: -80, right: -80, top: -260, height: 420, background: `radial-gradient(ellipse 50% 50% at 50% 50%, ${alpha(L.accent, 0.45)} 0%, ${alpha(L.accent, 0)} 70%)` }} />
|
|
221
|
+
</div>
|
|
222
|
+
<PlanCard p={PLANS[1]} />
|
|
223
|
+
{/* DIRECTOR'S CUT 签:落定后弹出,骑在卡顶缘 */}
|
|
224
|
+
<div style={{ position: 'absolute', left: 0, right: 0, top: -24, display: 'flex', justifyContent: 'center' }}>
|
|
225
|
+
<div style={{
|
|
226
|
+
height: 48, padding: '0 22px', borderRadius: 24, background: L.accent, color: '#ffffff', display: 'flex', alignItems: 'center',
|
|
227
|
+
font: `800 22px ${FONT.mono}`, letterSpacing: '0.12em', transform: `scale(${badge.toFixed(4)})`, opacity: Math.min(1, badge * 2),
|
|
228
|
+
boxShadow: `0 10px 24px -8px ${alpha(L.accent, 0.8)}, inset 0 1px 0 rgba(255,255,255,0.35)`,
|
|
229
|
+
}}>
|
|
230
|
+
{"DIRECTOR'S CUT"}
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
{/* 碎屑(卡上方):沿飞行方向按速度拉长 */}
|
|
236
|
+
{pOn && BITS.map((b, i) => {
|
|
237
|
+
const sp = Math.pow(1 - pT, 2 / 3);
|
|
238
|
+
const px = CX + Math.cos(b.ang) * (140 + b.dist * pT);
|
|
239
|
+
const py = CY - 40 + Math.sin(b.ang) * (140 + b.dist * pT) * 0.85 + 120 * pLin * pLin;
|
|
240
|
+
const s = b.size * (1 - 0.6 * pLin);
|
|
241
|
+
const stretch = 1 + Math.min(1.6, sp * 1.6);
|
|
242
|
+
return (
|
|
243
|
+
<div key={i} style={{ position: 'absolute', left: px - s / 2, top: py - (s * b.ratio) / 2, width: s, height: s * b.ratio, transform: `rotate(${((b.ang * 180) / Math.PI).toFixed(1)}deg) scaleX(${stretch.toFixed(3)})`, opacity: pLin < 0.65 ? 1 : 1 - (pLin - 0.65) / 0.35 }}>
|
|
244
|
+
<div style={{
|
|
245
|
+
position: 'absolute', inset: 0, borderRadius: 2,
|
|
246
|
+
background: b.blue ? L.accent : '#ffffff', boxShadow: b.blue ? `0 0 8px ${alpha(L.accent, 0.45)}` : `0 0 0 1px ${alpha(L.ink, 0.1)}, 0 3px 8px ${alpha(L.shadow, 0.25)}`,
|
|
247
|
+
transform: `rotate(${(b.spin * pT).toFixed(1)}deg)`,
|
|
248
|
+
}} />
|
|
249
|
+
</div>
|
|
250
|
+
);
|
|
251
|
+
})}
|
|
252
|
+
|
|
253
|
+
{/* 冲击环:钴蓝细环 + 柔辉,越扩越细 */}
|
|
254
|
+
{ringOn && (
|
|
255
|
+
<div style={{
|
|
256
|
+
position: 'absolute', left: CX - ringR, top: CY - ringR, width: ringR * 2, height: ringR * 2, borderRadius: '50%', boxSizing: 'border-box', opacity: ringOp,
|
|
257
|
+
border: `${ringW.toFixed(2)}px solid ${alpha(L.accent, 0.9)}`,
|
|
258
|
+
boxShadow: `0 0 ${(18 + ringP * 30).toFixed(0)}px ${alpha(L.accent, 0.35)}, inset 0 0 ${(18 + ringP * 30).toFixed(0)}px ${alpha(L.accent, 0.2)}`,
|
|
259
|
+
}} />
|
|
260
|
+
)}
|
|
261
|
+
</div>
|
|
262
|
+
</AbsoluteFill>
|
|
263
|
+
);
|
|
264
|
+
};
|