dsh-drawai 0.3.3 → 0.4.0
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/LICENSE +4142 -0
- package/README.md +43 -10
- package/lib/audio-media.js +147 -0
- package/lib/audio-service.js +66 -0
- package/lib/canvas-format.js +134 -0
- package/lib/client.js +5283 -223
- package/lib/comfyui-default-workflow.mjs +1825 -0
- package/lib/comfyui-workflow.mjs +426 -0
- package/lib/document-commands.js +12 -0
- package/lib/document-core.js +29 -0
- package/lib/drawing-tasks.js +26 -0
- package/lib/imagegen.mjs +596 -0
- package/lib/index.js +1758 -129
- package/lib/media.js +26 -13
- package/lib/mgstyle-core.js +75 -0
- package/lib/motion/apply.js +180 -0
- package/lib/motion/asset-pack-lock.js +10 -0
- package/lib/motion/asset-pack.js +335 -0
- package/lib/motion/assets.js +290 -0
- package/lib/motion/audio.js +103 -0
- package/lib/motion/audiolevel.js +63 -0
- package/lib/motion/audiomix.js +144 -0
- package/lib/motion/beats.js +337 -0
- package/lib/motion/builtin-assets.js +62 -0
- package/lib/motion/canvas-spec.js +442 -0
- package/lib/motion/capture.js +95 -0
- package/lib/motion/cards.js +80 -0
- package/lib/motion/collect.js +447 -0
- package/lib/motion/delivery.js +112 -0
- package/lib/motion/edge-speech.py +90 -0
- package/lib/motion/entry.jsx +73 -0
- package/lib/motion/export.js +200 -0
- package/lib/motion/ffmpeg.js +42 -0
- package/lib/motion/fonts.js +71 -0
- package/lib/motion/jobs.js +113 -0
- package/lib/motion/json.js +4 -0
- package/lib/motion/media-catalog.js +59 -0
- package/lib/motion/mgstyles/BRIEF-TEMPLATE.md +63 -0
- package/lib/motion/mgstyles/briefs/01-flat-vector.md +104 -0
- package/lib/motion/mgstyles/briefs/02-line-art.md +97 -0
- package/lib/motion/mgstyles/briefs/03-isometric.md +108 -0
- package/lib/motion/mgstyles/briefs/05-cel-boil.md +145 -0
- package/lib/motion/mgstyles/briefs/06-collage.md +149 -0
- package/lib/motion/mgstyles/briefs/07-liquid.md +106 -0
- package/lib/motion/mgstyles/briefs/08-morph.md +111 -0
- package/lib/motion/mgstyles/briefs/09-bauhaus.md +150 -0
- package/lib/motion/mgstyles/briefs/10-synthwave.md +151 -0
- package/lib/motion/mgstyles/briefs/12-aurora-glass.md +147 -0
- package/lib/motion/mgstyles/briefs/18-hanazi.md +140 -0
- package/lib/motion/mgstyles/briefs/19-paperclip.md +156 -0
- package/lib/motion/mgstyles/briefs/20-pixel.md +118 -0
- package/lib/motion/mgstyles/briefs/22-hud.md +118 -0
- package/lib/motion/mgstyles/catalog.d/01-flat-vector.json +34 -0
- package/lib/motion/mgstyles/catalog.d/02-line-art.json +34 -0
- package/lib/motion/mgstyles/catalog.d/03-isometric.json +35 -0
- package/lib/motion/mgstyles/catalog.d/05-cel-boil.json +28 -0
- package/lib/motion/mgstyles/catalog.d/06-collage.json +28 -0
- package/lib/motion/mgstyles/catalog.d/07-liquid.json +28 -0
- package/lib/motion/mgstyles/catalog.d/08-morph.json +28 -0
- package/lib/motion/mgstyles/catalog.d/09-bauhaus.json +28 -0
- package/lib/motion/mgstyles/catalog.d/10-synthwave.json +28 -0
- package/lib/motion/mgstyles/catalog.d/12-aurora-glass.json +28 -0
- package/lib/motion/mgstyles/catalog.d/18-hanazi.json +28 -0
- package/lib/motion/mgstyles/catalog.d/19-paperclip.json +28 -0
- package/lib/motion/mgstyles/catalog.d/20-pixel.json +28 -0
- package/lib/motion/mgstyles/catalog.d/22-hud.json +28 -0
- package/lib/motion/mgstyles/catalog.json +1356 -0
- package/lib/motion/mgstyles/upstream/README.md +147 -0
- package/lib/motion/mgstyles/upstream/README.zh-CN.md +147 -0
- package/lib/motion/mgstyles/upstream/demos/01-flat-vector/cues.json +1 -0
- package/lib/motion/mgstyles/upstream/demos/01-flat-vector/index.html +712 -0
- package/lib/motion/mgstyles/upstream/demos/02-line-art/cues.json +331 -0
- package/lib/motion/mgstyles/upstream/demos/02-line-art/film.js +676 -0
- package/lib/motion/mgstyles/upstream/demos/02-line-art/index.html +18 -0
- package/lib/motion/mgstyles/upstream/demos/02-line-art/tools/dump_timing.mjs +26 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/cues.json +109 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/index.html +25 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/anim.js +82 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/main.js +219 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/night5.js +180 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/render.js +202 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/title.js +167 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/title5.js +294 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/ui.js +141 -0
- package/lib/motion/mgstyles/upstream/demos/03-isometric/js/world.js +1399 -0
- package/lib/motion/mgstyles/upstream/demos/05-cel-boil/cues.json +157 -0
- package/lib/motion/mgstyles/upstream/demos/05-cel-boil/index.html +34 -0
- package/lib/motion/mgstyles/upstream/demos/05-cel-boil/js/engine.js +326 -0
- package/lib/motion/mgstyles/upstream/demos/05-cel-boil/js/scene.js +2036 -0
- package/lib/motion/mgstyles/upstream/demos/06-collage/assets/gen/layout.json +157 -0
- package/lib/motion/mgstyles/upstream/demos/06-collage/cues.json +80 -0
- package/lib/motion/mgstyles/upstream/demos/06-collage/index.html +889 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/cues.json +100 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/index.html +108 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/engine.js +153 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/links.js +64 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/lookdev.js +46 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/scene.js +963 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/shaders.js +647 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/textsdf.js +114 -0
- package/lib/motion/mgstyles/upstream/demos/07-liquid/js/type.js +50 -0
- package/lib/motion/mgstyles/upstream/demos/08-morph/cues.json +131 -0
- package/lib/motion/mgstyles/upstream/demos/08-morph/glyphs.json +1 -0
- package/lib/motion/mgstyles/upstream/demos/08-morph/index.html +901 -0
- package/lib/motion/mgstyles/upstream/demos/09-bauhaus/cues.json +270 -0
- package/lib/motion/mgstyles/upstream/demos/09-bauhaus/film.js +697 -0
- package/lib/motion/mgstyles/upstream/demos/09-bauhaus/index.html +12 -0
- package/lib/motion/mgstyles/upstream/demos/10-synthwave/cues.json +44 -0
- package/lib/motion/mgstyles/upstream/demos/10-synthwave/index.html +1028 -0
- package/lib/motion/mgstyles/upstream/demos/12-aurora-glass/cues.json +67 -0
- package/lib/motion/mgstyles/upstream/demos/12-aurora-glass/index.html +16 -0
- package/lib/motion/mgstyles/upstream/demos/12-aurora-glass/main.js +967 -0
- package/lib/motion/mgstyles/upstream/demos/12-aurora-glass/shaders.js +468 -0
- package/lib/motion/mgstyles/upstream/demos/18-hanazi/cues.json +117 -0
- package/lib/motion/mgstyles/upstream/demos/18-hanazi/index.html +541 -0
- package/lib/motion/mgstyles/upstream/demos/19-paperclip/assets/countries-110m.json +1 -0
- package/lib/motion/mgstyles/upstream/demos/19-paperclip/assets/stickers/meta.json +34 -0
- package/lib/motion/mgstyles/upstream/demos/19-paperclip/cues.json +285 -0
- package/lib/motion/mgstyles/upstream/demos/19-paperclip/index.html +599 -0
- package/lib/motion/mgstyles/upstream/demos/20-pixel/cues.json +42 -0
- package/lib/motion/mgstyles/upstream/demos/20-pixel/film.js +914 -0
- package/lib/motion/mgstyles/upstream/demos/20-pixel/index.html +18 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/cues.json +108 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/index.html +125 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/holo.js +275 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/hud.js +855 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/post.js +150 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/util.js +65 -0
- package/lib/motion/mgstyles/upstream/demos/22-hud/js/v5.js +142 -0
- package/lib/motion/mgstyles/upstream/harness/render.mjs +319 -0
- package/lib/motion/mgstyles/upstream/manifest.json +269 -0
- package/lib/motion/mgstyles/upstream/prompts/01-flat-vector.md +98 -0
- package/lib/motion/mgstyles/upstream/prompts/02-line-art.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/03-isometric.md +97 -0
- package/lib/motion/mgstyles/upstream/prompts/05-cel-boil.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/06-collage.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/07-liquid.md +98 -0
- package/lib/motion/mgstyles/upstream/prompts/08-morph.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/09-bauhaus.md +96 -0
- package/lib/motion/mgstyles/upstream/prompts/10-synthwave.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/12-aurora-glass.md +96 -0
- package/lib/motion/mgstyles/upstream/prompts/18-hanazi.md +95 -0
- package/lib/motion/mgstyles/upstream/prompts/19-paperclip.md +96 -0
- package/lib/motion/mgstyles/upstream/prompts/20-pixel.md +96 -0
- package/lib/motion/mgstyles/upstream/prompts/22-hud.md +95 -0
- package/lib/motion/mgstyles/upstream/rubric.md +51 -0
- package/lib/motion/mgstyles/upstream/template.md +36 -0
- package/lib/motion/pixelqa.js +198 -0
- package/lib/motion/preview.js +95 -0
- package/lib/motion/project.js +395 -0
- package/lib/motion/qa.js +290 -0
- package/lib/motion/reference-media.jsx +10 -0
- package/lib/motion/render-settings.js +112 -0
- package/lib/motion/render.js +159 -0
- package/lib/motion/scene-kit.js +183 -0
- package/lib/motion/sfx.js +232 -0
- package/lib/motion/shotcraft/ClipCard.tsx +204 -0
- package/lib/motion/shotcraft/catalog.json +2461 -0
- package/lib/motion/shotcraft/upstream/SKILL.md +286 -0
- package/lib/motion/shotcraft/upstream/assets/lib/Caption.tsx +54 -0
- package/lib/motion/shotcraft/upstream/assets/lib/ClipCard.tsx +200 -0
- package/lib/motion/shotcraft/upstream/assets/lib/DigitRoll.tsx +45 -0
- package/lib/motion/shotcraft/upstream/assets/lib/FlashCut.tsx +20 -0
- package/lib/motion/shotcraft/upstream/assets/lib/FlatPanel.tsx +65 -0
- package/lib/motion/shotcraft/upstream/assets/lib/PageCam.tsx +151 -0
- package/lib/motion/shotcraft/upstream/assets/lib/VerticalTicker.tsx +129 -0
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/camera.tsx +75 -0
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/motion.ts +40 -0
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/rand.ts +11 -0
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/shake.ts +10 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/__pycache__/sfx-source.cpython-313.pyc +0 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/build-readme-cover.mjs +49 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/capture-template.mjs +210 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/sfx-source.py +423 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/smoke-render-demos.py +170 -0
- package/lib/motion/shotcraft/upstream/assets/scripts/test_sfx_source.py +157 -0
- package/lib/motion/shotcraft/upstream/demos/README.md +120 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Brand.tsx +112 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Fixtures.tsx +647 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Look.tsx +316 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Motion.tsx +82 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/PageCam2D.tsx +115 -0
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Polish.tsx +243 -0
- package/lib/motion/shotcraft/upstream/demos/_textures/live-layout.json +389 -0
- package/lib/motion/shotcraft/upstream/demos/camera/basic-3d-scene/Basic3DScene.tsx +250 -0
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashImpactReal.tsx +305 -0
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashZoomReal.tsx +246 -0
- package/lib/motion/shotcraft/upstream/demos/camera/cursor-flyover/CursorFlyover.tsx +390 -0
- package/lib/motion/shotcraft/upstream/demos/camera/depth-layer-moves/MultiplaneReal.tsx +138 -0
- package/lib/motion/shotcraft/upstream/demos/camera/graze-face-tour/GrazeFaceTour.tsx +542 -0
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/OverheadTabletopDrop.tsx +315 -0
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/TiltReveal.tsx +299 -0
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/DroneDiveLanding.tsx +173 -0
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/ExplodedView.tsx +348 -0
- package/lib/motion/shotcraft/upstream/demos/camera/steep-tilt-glide/SteepTiltGlide.tsx +366 -0
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/BulletTimeFreezeOrbit.tsx +279 -0
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/PullBackIsolation.tsx +184 -0
- package/lib/motion/shotcraft/upstream/demos/camera/terminal-3d/Terminal3D.tsx +390 -0
- package/lib/motion/shotcraft/upstream/demos/data/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +155 -0
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/AxisRescaleShockV2.tsx +303 -0
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/OscilloscopeStreamV2.tsx +290 -0
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/UnitDotSwarmRegroupV2.tsx +278 -0
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/NeedleSweepSelftest.tsx +307 -0
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/TapeScrollFixedPointer.tsx +215 -0
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/BrakeReticleLock.tsx +299 -0
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/ChangelogScrollBrake.tsx +232 -0
- package/lib/motion/shotcraft/upstream/demos/data/timeline-travel/TimelineTravel.tsx +290 -0
- package/lib/motion/shotcraft/upstream/demos/effects/assemble-then-type-flyin/AssembleThenTypeFlyin.tsx +273 -0
- package/lib/motion/shotcraft/upstream/demos/effects/aurora-bloom-bg-flip/AuroraBloomBgFlip.tsx +167 -0
- package/lib/motion/shotcraft/upstream/demos/effects/brand-frame-snap/BrandFrameSnap.tsx +536 -0
- package/lib/motion/shotcraft/upstream/demos/effects/fui-hud-moves/ReticleLockOn.tsx +164 -0
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/FlylineArc.tsx +175 -0
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/GlowOrbAmbient.tsx +197 -0
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/OrbFlylineRelay.tsx +241 -0
- package/lib/motion/shotcraft/upstream/demos/effects/icon-performance-moves/AttentionBounce.tsx +279 -0
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/AnimeImpact.tsx +230 -0
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/HitCounter.tsx +345 -0
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SheenSweepRetry.tsx +275 -0
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SpotlightSweepReveal.tsx +229 -0
- package/lib/motion/shotcraft/upstream/demos/effects/radial-ripple-phone-chips/RadialRipplePhoneChips.tsx +312 -0
- package/lib/motion/shotcraft/upstream/demos/effects/riso-print-hits/RisoMisregistrationHit.tsx +222 -0
- package/lib/motion/shotcraft/upstream/demos/effects/scan-bracket-sweep/ScanBracketSweep.tsx +295 -0
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-annotate-focus/ScanlineAnnotateFocus.tsx +329 -0
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-assemble-flyin/ScanlineAssembleFlyin.tsx +315 -0
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ImpactBurstKit.tsx +264 -0
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/KanadaPerspectiveSnap.tsx +260 -0
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ScoreSlam.tsx +263 -0
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/CornerSpotlightReveal.tsx +123 -0
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +187 -0
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/SlideSpotlightPan.tsx +175 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/autolayout-gap-dial/AutolayoutGapDial.tsx +305 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/DiagramCascadeBuild.tsx +350 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +352 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/chip-grid-single-select-blackout/ChipGridSingleSelectBlackout.tsx +218 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/collab-cursor-moves/CursorCastEnsemble.tsx +297 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/glass-pill-dictation-typing/GlassPillDictationTyping.tsx +157 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +218 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/picker-carousel-feature-cycle/PickerCarouselFeatureCycle.tsx +202 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/segmented-thumb-hero/SegmentedThumbHero.tsx +265 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/PaletteThemeRipple.tsx +457 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/ThemeSweepToggle.tsx +446 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/type-and-filter/TypeAndFilter.tsx +249 -0
- package/lib/motion/shotcraft/upstream/demos/interaction/voice-waveform-live/VoiceWaveformLive.tsx +278 -0
- package/lib/motion/shotcraft/upstream/demos/opening/crane-rise-reveal/CraneRiseReveal.tsx +332 -0
- package/lib/motion/shotcraft/upstream/demos/opening/dataviz-landscape-open/DatavizLandscapeOpen.tsx +358 -0
- package/lib/motion/shotcraft/upstream/demos/opening/fracture/Fracture.tsx +201 -0
- package/lib/motion/shotcraft/upstream/demos/opening/icon-field-colorize/IconFieldColorize.tsx +200 -0
- package/lib/motion/shotcraft/upstream/demos/opening/letterspace-materialize/LetterspaceMaterialize.tsx +208 -0
- package/lib/motion/shotcraft/upstream/demos/opening/magician-card-flourish/MagicianCardFlourish.tsx +341 -0
- package/lib/motion/shotcraft/upstream/demos/opening/orbit-ring-title-open/OrbitRingTitleOpen.tsx +389 -0
- package/lib/motion/shotcraft/upstream/demos/opening/spotlight-hero-card/SpotlightHeroCard.tsx +293 -0
- package/lib/motion/shotcraft/upstream/demos/opening/stroke-segment-build/StrokeSegmentBuild.tsx +183 -0
- package/lib/motion/shotcraft/upstream/demos/opening/text-as-mask/TextAsMask.tsx +245 -0
- package/lib/motion/shotcraft/upstream/demos/outro/grain-dissolve/GrainDissolve.tsx +222 -0
- package/lib/motion/shotcraft/upstream/demos/outro/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx +223 -0
- package/lib/motion/shotcraft/upstream/demos/outro/neon-triple-marquee/NeonTripleMarquee.tsx +217 -0
- package/lib/motion/shotcraft/upstream/demos/outro/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx +343 -0
- package/lib/motion/shotcraft/upstream/demos/outro/ui-strip-away-outro/UiStripAwayOutro.tsx +357 -0
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/IconFlipBloomLogo.tsx +187 -0
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/InputMorphsIntoLogo.tsx +333 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-cut-moves/PaparazziFlash.tsx +274 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +270 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/panel-grid-moves/ComicPanelSplit.tsx +430 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx +252 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/rhythm-interrupt-moves/JumpCutPunchIn.tsx +106 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/sakuga-timing-shift/SakugaTimingShift.tsx +288 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/speed-ramp-freeze/FreezeAnnotateReal.tsx +362 -0
- package/lib/motion/shotcraft/upstream/demos/rhythm/trailer-grammar-moves/TrailerBumper.tsx +168 -0
- package/lib/motion/shotcraft/upstream/demos/transition/bottom-push-stack-wipe/BottomPushStackWipe.tsx +310 -0
- package/lib/motion/shotcraft/upstream/demos/transition/card-flip-reveal/CardFlipReveal.tsx +261 -0
- package/lib/motion/shotcraft/upstream/demos/transition/card-flock-tumble/CardFlockTumble.tsx +459 -0
- package/lib/motion/shotcraft/upstream/demos/transition/circle-match-iris/CircleMatchIris.tsx +294 -0
- package/lib/motion/shotcraft/upstream/demos/transition/gradient-transition/GradientTransition.tsx +161 -0
- package/lib/motion/shotcraft/upstream/demos/transition/line-carry-transition/LineCarryTransition.tsx +248 -0
- package/lib/motion/shotcraft/upstream/demos/transition/mosaic-reframe/MosaicReframe.tsx +359 -0
- package/lib/motion/shotcraft/upstream/demos/transition/page-turn-transitions/BarnDoorSplit.tsx +227 -0
- package/lib/motion/shotcraft/upstream/demos/transition/print-texture-transitions/InkBleedReveal.tsx +162 -0
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/PortalWipeV2.tsx +248 -0
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/WhipBrakeReal.tsx +186 -0
- package/lib/motion/shotcraft/upstream/demos/transition/tear-streak-transitions/GlitchDisplace.tsx +355 -0
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/InvisibleCut.tsx +272 -0
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/LightLeakBurn.tsx +262 -0
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/VersusSlam.tsx +217 -0
- package/lib/motion/shotcraft/upstream/demos/transition/transition-travel/LetterformZoom.tsx +285 -0
- package/lib/motion/shotcraft/upstream/demos/transition/white-flash-logo-simplify-cut/WhiteFlashLogoSimplifyCut.tsx +205 -0
- package/lib/motion/shotcraft/upstream/demos/transition/wipe-transitions/BlindsSlice.tsx +178 -0
- package/lib/motion/shotcraft/upstream/demos/typography/blur-slide/BlurSlide.tsx +147 -0
- package/lib/motion/shotcraft/upstream/demos/typography/brace-expand/BraceExpand.tsx +143 -0
- package/lib/motion/shotcraft/upstream/demos/typography/brand-ink-open/BrandInkOpen.tsx +134 -0
- package/lib/motion/shotcraft/upstream/demos/typography/countdown-arc-scatter/CountdownArcScatter.tsx +217 -0
- package/lib/motion/shotcraft/upstream/demos/typography/flying-words/FlyingWords.tsx +198 -0
- package/lib/motion/shotcraft/upstream/demos/typography/glitch-cycle/GlitchCycle.tsx +221 -0
- package/lib/motion/shotcraft/upstream/demos/typography/gradient-word-sweep/GradientWordSweep.tsx +312 -0
- package/lib/motion/shotcraft/upstream/demos/typography/lead-word-zoom-assemble/LeadWordZoomAssemble.tsx +261 -0
- package/lib/motion/shotcraft/upstream/demos/typography/marker-underline-title/MarkerUnderlineTitle.tsx +121 -0
- package/lib/motion/shotcraft/upstream/demos/typography/outline-word-fill/OutlineWordFill.tsx +153 -0
- package/lib/motion/shotcraft/upstream/demos/typography/paper-title-card/PaperTitleCard.tsx +179 -0
- package/lib/motion/shotcraft/upstream/demos/typography/pill-chip-slot-cycle-handled/PillChipSlotCycleHandled.tsx +140 -0
- package/lib/motion/shotcraft/upstream/demos/typography/pill-slot-cycle/PillSlotCycle.tsx +309 -0
- package/lib/motion/shotcraft/upstream/demos/typography/text-column-converge/TextColumnConverge.tsx +191 -0
- package/lib/motion/shotcraft/upstream/demos/typography/title-demote-to-label/TitleDemoteToLabel.tsx +292 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/LetterformDriftAssembly.tsx +135 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/SplitTextStagger.tsx +124 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/TextOnPath.tsx +255 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-entrance-moves/LetterDropPhysics.tsx +173 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/FontWeightPump.tsx +225 -0
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/KaraokeFillSync.tsx +141 -0
- package/lib/motion/shotcraft/upstream/demos/typography/typewriter-moves/TypewriterErrorRetype.tsx +137 -0
- package/lib/motion/shotcraft/upstream/demos/typography/vertical-word-roll-blur-cycle/VerticalWordRollBlurCycle.tsx +147 -0
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-filmstrip/WordRelayFilmstrip.tsx +409 -0
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-geometry/WordRelayGeometry.tsx +280 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/avatar-bracket-carousel/AvatarBracketCarousel.tsx +271 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/bezier-source-converge-merge/BezierSourceConvergeMerge.tsx +385 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/card-stack/CardStack.tsx +312 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/carousel-3d/Carousel3D.tsx +303 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/clipcard-looping/ClipCardLooping.tsx +77 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/cloner-depth-echo/ClonerDepthEcho.tsx +311 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/deck-deal-flyin/DeckDealFlyin.tsx +307 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/doc-park-left-pill-deal/DocParkLeftPillDeal.tsx +349 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/document-typewriter-reveal/DocumentTypewriterReveal.tsx +255 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/draw-svg-trace/DrawSvgTrace.tsx +244 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/element-body-moves/ContactShadowLift.tsx +217 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/integration-hub-map/IntegrationHubMap.tsx +652 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-reveal/ListReveal.tsx +153 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-stack-press/ListStackPress.tsx +238 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-forerun/NeonFrameForerun.tsx +324 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +354 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/PageWaterfallWall.tsx +101 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/VerticalTicker.tsx +129 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/product-card-progressive-assemble/ProductCardProgressiveAssemble.tsx +297 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/radial-wave/RadialWave.tsx +57 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/research-card-stack-scroll/ResearchCardStackScroll.tsx +155 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/row-embed/RowEmbed.tsx +175 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/value-stagger-gradient/ValueStaggerGradient.tsx +153 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/BentoLightUp.tsx +146 -0
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/WireframeDrawOn.tsx +226 -0
- package/lib/motion/shotcraft/upstream/gallery/api/library.json +1 -0
- package/lib/motion/shotcraft/upstream/manifest.json +2715 -0
- package/lib/motion/shotcraft/upstream/references/aesthetic-rules.md +193 -0
- package/lib/motion/shotcraft/upstream/references/final-review.md +121 -0
- package/lib/motion/shotcraft/upstream/references/guided-free-creation.md +199 -0
- package/lib/motion/shotcraft/upstream/references/jianying-export.md +183 -0
- package/lib/motion/shotcraft/upstream/references/music-beat-sync.md +257 -0
- package/lib/motion/shotcraft/upstream/references/pipeline.md +382 -0
- package/lib/motion/shotcraft/upstream/references/publish-upload-post.md +111 -0
- package/lib/motion/shotcraft/upstream/references/sequences/promo-energy-arc.md +50 -0
- package/lib/motion/shotcraft/upstream/references/sfx-sourcing.md +95 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/basic-3d-scene.md +41 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/crash-zoom-punch.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/cursor-flyover.md +39 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/depth-layer-moves.md +39 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/graze-face-tour.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/overhead-camera-moves.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/space-camera-moves.md +46 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/steep-tilt-glide.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/tension-camera-moves.md +43 -0
- package/lib/motion/shotcraft/upstream/references/shots/camera/terminal-3d.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/before-after-slider-scrub.md +48 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/chart-live-moves.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/gauge-readout-moves.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/scroll-brake-moves.md +46 -0
- package/lib/motion/shotcraft/upstream/references/shots/data/timeline-travel.md +44 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/assemble-then-type-flyin.md +63 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/aurora-bloom-bg-flip.md +54 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/brand-frame-snap.md +58 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/fui-hud-moves.md +35 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/glow-flyline-moves.md +53 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/icon-performance-moves.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/impact-feedback.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/light-play-moves.md +46 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/radial-ripple-phone-chips.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/riso-print-hits.md +49 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/scan-bracket-sweep.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-annotate-focus.md +53 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-assemble-flyin.md +53 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/slam-entrance-moves.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/effects/spotlight-sweep-moves.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/autolayout-gap-dial.md +60 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/canvas-materialize-moves.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/chip-grid-single-select-blackout.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/collab-cursor-moves.md +41 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/glass-pill-dictation-typing.md +53 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/hashtag-to-pill-materialize.md +60 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/picker-carousel-feature-cycle.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/segmented-thumb-hero.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/theme-switch-moves.md +47 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/type-and-filter.md +37 -0
- package/lib/motion/shotcraft/upstream/references/shots/interaction/voice-waveform-live.md +54 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/brand-ink-open.md +36 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/crane-rise-reveal.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/dataviz-landscape-open.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/fracture.md +40 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/icon-field-colorize.md +60 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/letterspace-materialize.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/magician-card-flourish.md +73 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/orbit-ring-title-open.md +87 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/spotlight-hero-card.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/stroke-segment-build.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/opening/text-as-mask.md +59 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/grain-dissolve.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/logo-shrink-wordmark-lockup.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/neon-triple-marquee.md +59 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/outro-group-photo-launch.md +39 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-strip-away-outro.md +61 -0
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-to-brand-morph.md +52 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-cut-moves.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-step-list-theme-cycle.md +66 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/panel-grid-moves.md +43 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/quad-split-parallel-scenes.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/rhythm-interrupt-moves.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/sakuga-timing-shift.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/speed-ramp-freeze.md +44 -0
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/trailer-grammar-moves.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/bottom-push-stack-wipe.md +63 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flip-reveal.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flock-tumble.md +63 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/circle-match-iris.md +58 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/gradient-transition.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/line-carry-transition.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/mosaic-reframe.md +49 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/page-turn-transitions.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/print-texture-transitions.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/shot-transitions.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/tear-streak-transitions.md +48 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-hidden-cut.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-travel.md +43 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/white-flash-logo-simplify-cut.md +41 -0
- package/lib/motion/shotcraft/upstream/references/shots/transition/wipe-transitions.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/blur-slide.md +59 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/brace-expand.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/countdown-arc-scatter.md +65 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/document-typewriter-reveal.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/flying-words.md +64 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/glitch-cycle.md +64 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/gradient-word-sweep.md +54 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/lead-word-zoom-assemble.md +91 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/marker-underline-title.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/outline-word-fill.md +66 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/paper-title-card.md +38 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-chip-slot-cycle-handled.md +66 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-slot-cycle.md +58 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/text-column-converge.md +61 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/title-demote-to-label.md +64 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-assembly-moves.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-entrance-moves.md +41 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-rhythm-sync.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/typewriter-moves.md +42 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/vertical-word-roll-blur-cycle.md +63 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-filmstrip.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-geometry.md +75 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/avatar-bracket-carousel.md +59 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/bezier-source-converge-merge.md +67 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/card-stack.md +60 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/carousel-3d.md +66 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/cloner-depth-echo.md +40 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/deck-deal-flyin.md +45 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/doc-park-left-pill-deal.md +62 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/draw-svg-trace.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/element-body-moves.md +37 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/integration-hub-map.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-reveal.md +50 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-stack-press.md +43 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-forerun.md +55 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-orbit-drop.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/page-waterfall-wall.md +51 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/product-card-progressive-assemble.md +56 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/radial-wave.md +49 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/research-card-stack-scroll.md +57 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/row-embed.md +36 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/value-stagger-gradient.md +64 -0
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/wall-reveal-moves.md +47 -0
- package/lib/motion/shotcraft/upstream/references/sound-design.md +170 -0
- package/lib/motion/shotcraft/upstream/references/workbench.md +157 -0
- package/lib/motion/shotcraft/upstream/template/TEMPLATE.md +103 -0
- package/lib/motion/shotcraft/upstream/template/THEMES.md +44 -0
- package/lib/motion/shotcraft/upstream/template/package.json +20 -0
- package/lib/motion/shotcraft/upstream/template/remotion.config.ts +6 -0
- package/lib/motion/shotcraft/upstream/template/src/Root.tsx +17 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/Caption.tsx +65 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/DigitRoll.tsx +48 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/FlashCut.tsx +24 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/Main.tsx +192 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/PaperTitleCard.tsx +111 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/PageCam.tsx +150 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneDetail.tsx +158 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneFlyIn.tsx +468 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOpen.tsx +552 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOutroLive.tsx +411 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/ScenePapers.tsx +200 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneWbr.tsx +324 -0
- package/lib/motion/shotcraft/upstream/template/src/aifl/live-layout.json +389 -0
- package/lib/motion/shotcraft/upstream/template/src/index.ts +4 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/ThemedFilm.tsx +7 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/manifest.tsx +68 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.json +1 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.ts +24 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/palettes.json +74 -0
- package/lib/motion/shotcraft/upstream/template/src/themes/visual-theme.tsx +91 -0
- package/lib/motion/shotcraft/upstream/template/src/workbench.ts +213 -0
- package/lib/motion/shotcraft/upstream/template/tsconfig.json +15 -0
- package/lib/motion/spec.js +113 -0
- package/lib/motion/style-engine.js +153 -0
- package/lib/motion/style-frames.js +268 -0
- package/lib/motion/sync.js +214 -0
- package/lib/motion/theme.js +121 -0
- package/lib/motion/voice.js +417 -0
- package/lib/motion-agent-files.js +82 -0
- package/lib/motion-agent-protocol.js +66 -0
- package/lib/motion-agent-tools.js +196 -0
- package/lib/motion-agent.js +171 -0
- package/lib/motion-capture.js +92 -0
- package/lib/motion-core.js +238 -0
- package/lib/motion-film-review.js +71 -0
- package/lib/motion-library.js +210 -0
- package/lib/motion-planner.js +254 -0
- package/lib/motion-project.js +80 -0
- package/lib/motion-render-worker.js +145 -0
- package/lib/motion-session.js +32 -0
- package/lib/motion-source.js +49 -0
- package/lib/motion-tasks.js +452 -0
- package/lib/motion-vision.js +43 -0
- package/lib/mxfile.js +27 -7
- package/lib/routing/node-runtime.js +14 -0
- package/lib/routing/router.js +211 -0
- package/lib/routing/vendor/README.md +96 -0
- package/lib/routing/vendor/libavoid-routing.js +753 -0
- package/lib/routing/vendor/libavoid.min.js +59 -0
- package/lib/shotcard-core.js +39 -0
- package/lib/shotcard-reference.js +56 -0
- package/lib/style-kernel.js +37 -3
- package/lib/task-patches.js +26 -2
- package/lib/video-export.js +17 -2
- package/package.json +29 -4
package/lib/motion/shotcraft/upstream/demos/transition/page-turn-transitions/BarnDoorSplit.tsx
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// 对开门裂幕(barn-door-split-reveal)——旧页从正中裂成两扇门向外加速让位,新页从门缝里迎上来。
|
|
2
|
+
//
|
|
3
|
+
// 第二轮重设计(余烬 · 版本更替发布):
|
|
4
|
+
// - look = ember(暖黑 · 橙)。语义是"新旧交替":旧页 = video-shotcraft 的现行版「Shotcraft 3」(示意版本号),
|
|
5
|
+
// 冷灰、无强调色、像一块熄了火的金属板;新页 = 「Shotcraft 4」发布海报,暖黑舞台 + 余烬橙,眉题前挂镜刻标志。
|
|
6
|
+
// 两页同一版式、同一槽位(眉题 / 220px 字标 / 副题 / 三枚数据),所以门一开,"3"的位置上站着"4"——取代关系一眼可读。
|
|
7
|
+
// - 门是有厚度的实体板:内缘 10px 切面在门缝光里被照亮(橙色轮廓光),门面靠近裂缝处被光染暖;
|
|
8
|
+
// 门缝里透出的是新页的光——先是一条发丝亮线自中点向上下描出(预告裂点),再撑开一道光缝,
|
|
9
|
+
// 门滑走时新页带着一次过曝光束(屏幕混合,随门远去衰减)显影。
|
|
10
|
+
// - 运动:裂缝预张 ease-in(预备)接门 ease-in 加速 1000px("让位"不是"被推走"),按速度挂横向运动模糊;
|
|
11
|
+
// 新页 1.08→1 迎上来(snappy,晚门 2f 起跳);落定后副题逐词升起、三枚数据从旧值滚到新值
|
|
12
|
+
// (渲染 64s → 11.8s、手 K 关键帧 12 → 0:数字本身讲出"新版更省事",均为示意值)。
|
|
13
|
+
//
|
|
14
|
+
// 时间表(30fps,共 150f):
|
|
15
|
+
// 0–24 旧页建立:冷灰海报,相机极缓推近 1→1.015;第 0 帧即完整画面
|
|
16
|
+
// 20–30 预告:中缝发丝亮线自中点向上下描出(snappy 10f),两侧门面被光染暖
|
|
17
|
+
// 30–40 预备:缝隙 ease-in 撑开 0→16px,光缝变亮
|
|
18
|
+
// 40–64 主动作:两扇门各 translateX ∓1000(ease-in 24f)+ 横向运动模糊
|
|
19
|
+
// 42–78 新页 1.08→1 迎上(snappy 36f);过曝光束 40–74 衰减
|
|
20
|
+
// 64–110 跟随:副题逐词升起(64)、三枚数据错峰滚到新值(72–104)
|
|
21
|
+
// 110–150 hold:余烬缓缓上浮、字标光呼吸、相机极缓推近 1.8%,尾帧是完整的发布海报
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { useCurrentFrame } from 'remotion';
|
|
24
|
+
import { EASE, FONT, SpeedBlur, bezier, mix, ramp, velocity } from '../../_fixtures/Polish';
|
|
25
|
+
import { Dust, LOOKS, Stage, TextReveal, alpha, glow, stagger, type } from '../../_fixtures/Look';
|
|
26
|
+
import { ShotcraftMark } from '../../_fixtures/Brand';
|
|
27
|
+
|
|
28
|
+
export const BARN_DOOR_SPLIT_DURATION = 150;
|
|
29
|
+
|
|
30
|
+
const L = LOOKS.ember;
|
|
31
|
+
// 旧页:冷灰金属板(刻意不用强调色)
|
|
32
|
+
const OLD = { bg0: '#1d1f23', bg1: '#141518', ink: '#9a9ea7', ink2: '#6f737b', ink3: '#4a4d54', line: 'rgba(255,255,255,0.07)' };
|
|
33
|
+
|
|
34
|
+
const CRACK = 20; // 发丝亮线起
|
|
35
|
+
const GAP = 30; // 缝隙预张起
|
|
36
|
+
const SLIDE = 40; // 门开始加速
|
|
37
|
+
const SLIDE_D = 24;
|
|
38
|
+
const SLIDE_EASE = bezier(0.42, 0, 0.8, 0.25); // ease-in(≈cubic-in 偏猛):起步可见、越走越快,不是最后一帧才消失
|
|
39
|
+
|
|
40
|
+
const gapAt = (f: number) => 16 * ramp(f, GAP, 10, EASE.exit);
|
|
41
|
+
const slideAt = (f: number) => 1000 * ramp(f, SLIDE, SLIDE_D, SLIDE_EASE);
|
|
42
|
+
const doorAt = (f: number) => gapAt(f) / 2 + slideAt(f); // 单扇外移量
|
|
43
|
+
|
|
44
|
+
// 三枚数据:旧值 → 新值(示意值)
|
|
45
|
+
const STATS = [
|
|
46
|
+
{ from: 64, to: 11.8, dec: 1, unit: 's', label: 'Median render' },
|
|
47
|
+
{ from: 12, to: 0, dec: 0, unit: '', label: 'Manual keyframes' },
|
|
48
|
+
{ from: 6, to: 30, dec: 0, unit: '', label: 'Preview fps' },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
// 两页共用的版式骨架:眉题 / 字标 / 副题 / 数据行(同槽位 = 取代关系)
|
|
52
|
+
const Layout: React.FC<{
|
|
53
|
+
kicker: React.ReactNode; mark: React.ReactNode; sub: React.ReactNode; stats: React.ReactNode;
|
|
54
|
+
}> = ({ kicker, mark, sub, stats }) => (
|
|
55
|
+
<div style={{ position: 'absolute', inset: 0, display: 'flex', flexDirection: 'column', alignItems: 'center', fontFamily: FONT.sans }}>
|
|
56
|
+
<div style={{ marginTop: 214, height: 40 }}>{kicker}</div>
|
|
57
|
+
<div style={{ marginTop: 26, height: 230, display: 'flex', alignItems: 'center' }}>{mark}</div>
|
|
58
|
+
<div style={{ marginTop: 34, height: 60 }}>{sub}</div>
|
|
59
|
+
<div style={{ marginTop: 92 }}>{stats}</div>
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
const StatRow: React.FC<{ cells: { value: string; label: string; color: string; labelColor: string; line: string; o?: number; y?: number }[] }> = ({ cells }) => (
|
|
64
|
+
<div style={{ display: 'flex', gap: 56 }}>
|
|
65
|
+
{cells.map((c, k) => (
|
|
66
|
+
<div key={k} style={{ width: 300, borderTop: `1px solid ${c.line}`, paddingTop: 26, opacity: c.o ?? 1, transform: `translateY(${(c.y ?? 0).toFixed(2)}px)` }}>
|
|
67
|
+
<div style={{ ...type(72, 700), color: c.color, letterSpacing: '-0.04em' }}>{c.value}</div>
|
|
68
|
+
<div style={{ ...type(30, 500), color: c.labelColor, marginTop: 10 }}>{c.label}</div>
|
|
69
|
+
</div>
|
|
70
|
+
))}
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
// 旧页:Shotcraft 3(冷灰海报)
|
|
75
|
+
const OldPage: React.FC = () => (
|
|
76
|
+
<div style={{ position: 'absolute', inset: 0, background: `radial-gradient(ellipse 70% 60% at 50% 30%, #25272c 0%, ${OLD.bg0} 45%, ${OLD.bg1} 100%)` }}>
|
|
77
|
+
{/* 板面的细横纹:拉丝金属的质地(极淡) */}
|
|
78
|
+
<div style={{ position: 'absolute', inset: 0, opacity: 0.5, background: 'repeating-linear-gradient(180deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 4px)' }} />
|
|
79
|
+
<Layout
|
|
80
|
+
kicker={<span style={{ ...type(30, 650, { caps: true }), letterSpacing: '0.22em', color: OLD.ink3 }}>Current release</span>}
|
|
81
|
+
mark={<span style={{ ...type(220, 760), color: OLD.ink, letterSpacing: '-0.055em' }}>Shotcraft 3</span>}
|
|
82
|
+
sub={<span style={{ ...type(48, 450), color: OLD.ink2 }}>Shot recipes for product films.</span>}
|
|
83
|
+
stats={<StatRow cells={STATS.map((s) => ({
|
|
84
|
+
value: `${s.from.toFixed(s.dec)}${s.unit}`, label: s.label, color: OLD.ink, labelColor: OLD.ink3, line: OLD.line,
|
|
85
|
+
}))} />}
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
// 新页:Shotcraft 4(余烬舞台上的发布海报)
|
|
91
|
+
const NewPage: React.FC<{ frame: number }> = ({ frame }) => {
|
|
92
|
+
const statP = (k: number) => ramp(frame, 72 + stagger(k, 3, 12, EASE.out), 26, EASE.snappy);
|
|
93
|
+
const breath = 0.85 + 0.15 * Math.sin(frame / 16);
|
|
94
|
+
return (
|
|
95
|
+
<>
|
|
96
|
+
<Layout
|
|
97
|
+
kicker={
|
|
98
|
+
<span style={{ display: 'inline-flex', alignItems: 'center', gap: 18 }}>
|
|
99
|
+
<ShotcraftMark size={44} tone="dark" />
|
|
100
|
+
<span style={{ ...type(30, 700, { caps: true }), letterSpacing: '0.22em', color: L.accent }}>Introducing</span>
|
|
101
|
+
</span>
|
|
102
|
+
}
|
|
103
|
+
mark={
|
|
104
|
+
<span style={{ ...type(220, 800), letterSpacing: '-0.055em', color: L.ink, position: 'relative' }}>
|
|
105
|
+
Shotcraft{' '}
|
|
106
|
+
<span style={{
|
|
107
|
+
backgroundImage: `linear-gradient(180deg, ${L.accent2} 0%, ${L.accent} 70%, #e0471a 100%)`,
|
|
108
|
+
WebkitBackgroundClip: 'text', backgroundClip: 'text', color: 'transparent',
|
|
109
|
+
filter: `drop-shadow(0 0 ${(30 * breath).toFixed(1)}px ${alpha(L.accent, 0.55)})`,
|
|
110
|
+
}}>4</span>
|
|
111
|
+
</span>
|
|
112
|
+
}
|
|
113
|
+
sub={
|
|
114
|
+
<span style={{ ...type(48, 450), color: L.ink2 }}>
|
|
115
|
+
<TextReveal text="One prompt to a finished promo." start={64} by="word" variant="rise" each={18} gap={3} />
|
|
116
|
+
</span>
|
|
117
|
+
}
|
|
118
|
+
stats={<StatRow cells={STATS.map((s, k) => {
|
|
119
|
+
const p = statP(k);
|
|
120
|
+
const v = mix(s.from, s.to, p);
|
|
121
|
+
return {
|
|
122
|
+
value: `${v.toFixed(s.dec)}${s.unit}`, label: s.label,
|
|
123
|
+
color: L.ink,
|
|
124
|
+
labelColor: L.ink2, line: alpha(L.accent, 0.35),
|
|
125
|
+
o: ramp(frame, 66 + k * 4, 12, EASE.out), y: mix(18, 0, ramp(frame, 66 + k * 4, 18, EASE.snappy)),
|
|
126
|
+
};
|
|
127
|
+
})} />}
|
|
128
|
+
/>
|
|
129
|
+
</>
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
// 门:960 宽视口里装一整页旧页(右门内层左移 960 对位拼合)+ 内缘切面 + 裂缝光染
|
|
134
|
+
// (门不投影到新页上:光从门后来,影子落向镜头一侧,投在门缝里只会把光压灰)
|
|
135
|
+
const Door: React.FC<{ side: 'left' | 'right'; offset: number; light: number; edge: number }> = ({ side, offset, light, edge }) => {
|
|
136
|
+
const inner = side === 'left' ? 'right' : 'left';
|
|
137
|
+
const toward = side === 'left' ? 'to left' : 'to right';
|
|
138
|
+
return (
|
|
139
|
+
<div style={{
|
|
140
|
+
position: 'absolute', top: 0, left: side === 'left' ? 0 : 960, width: 960, height: 1080, overflow: 'hidden',
|
|
141
|
+
transform: `translateX(${side === 'left' ? -offset : offset}px)`,
|
|
142
|
+
}}>
|
|
143
|
+
<div style={{ position: 'absolute', top: 0, left: side === 'left' ? 0 : -960, width: 1920, height: 1080 }}>
|
|
144
|
+
<OldPage />
|
|
145
|
+
</div>
|
|
146
|
+
{/* 门面被裂缝光染暖:靠缝最亮,向外 520px 衰减 */}
|
|
147
|
+
{light > 0.01 && (
|
|
148
|
+
<div style={{
|
|
149
|
+
position: 'absolute', top: 0, bottom: 0, [inner]: 0, width: 620, mixBlendMode: 'screen', opacity: light,
|
|
150
|
+
background: `linear-gradient(${toward}, ${alpha(L.light, 0.5)} 0%, ${alpha(L.light, 0.14)} 30%, ${alpha(L.light, 0)} 100%)`,
|
|
151
|
+
}} />
|
|
152
|
+
)}
|
|
153
|
+
{/* 板材切面:10px 厚度带,被门缝光照亮(亮 → 暖 → 暗) */}
|
|
154
|
+
{edge > 0.01 && (
|
|
155
|
+
<div style={{
|
|
156
|
+
position: 'absolute', top: 0, bottom: 0, [inner]: 0, width: 10, opacity: edge,
|
|
157
|
+
background: `linear-gradient(${toward}, #ffe2c2 0%, ${L.accent} 35%, #5a2410 100%)`,
|
|
158
|
+
}} />
|
|
159
|
+
)}
|
|
160
|
+
</div>
|
|
161
|
+
);
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export const BarnDoorSplit: React.FC = () => {
|
|
165
|
+
const frame = useCurrentFrame();
|
|
166
|
+
const door = doorAt(frame);
|
|
167
|
+
const vx = velocity(doorAt, frame);
|
|
168
|
+
|
|
169
|
+
// 预告亮线:自中点向上下描出;缝隙一撑开就并入光缝
|
|
170
|
+
const crack = ramp(frame, CRACK, 10, EASE.snappy);
|
|
171
|
+
const seamLight = ramp(frame, CRACK, 12, EASE.out); // 门面光染 / 切面亮度
|
|
172
|
+
const edge = frame >= GAP ? 1 : 0;
|
|
173
|
+
// 过曝光束:随门远去衰减
|
|
174
|
+
const flash = ramp(frame, GAP, 12, EASE.exit) * (1 - ramp(frame, SLIDE + 6, 30, EASE.out));
|
|
175
|
+
const bP = ramp(frame, SLIDE + 2, 36, EASE.snappy);
|
|
176
|
+
const bScale = mix(1.08, 1, bP) * mix(1, 1.018, ramp(frame, 78, 72, EASE.smooth)); // 落定后再极缓推近,hold 段不死
|
|
177
|
+
const push = mix(1, 1.015, ramp(frame, 0, SLIDE, EASE.smooth));
|
|
178
|
+
const doorsGone = frame > SLIDE + SLIDE_D;
|
|
179
|
+
const showNew = frame >= GAP;
|
|
180
|
+
// 门面光染:门滑开后随之减弱(门离光源越远越暗)
|
|
181
|
+
const doorLight = seamLight * (1 - ramp(frame, SLIDE, 14, EASE.out) * 0.6);
|
|
182
|
+
|
|
183
|
+
return (
|
|
184
|
+
<div style={{ position: 'absolute', inset: 0, overflow: 'hidden', background: L.bg[2] }}>
|
|
185
|
+
{/* 新页:只画一个 Stage 做舞台底;门缝一开才挂载 */}
|
|
186
|
+
{showNew && (
|
|
187
|
+
<div style={{ position: 'absolute', inset: 0, transform: `scale(${bScale.toFixed(5)})`, transformOrigin: '50% 46%' }}>
|
|
188
|
+
<Stage look={L} keyLight={{ x: 0.5, y: 0.12 }} fill={{ x: 0.5, y: 1.08 }} breathe={0.6}>
|
|
189
|
+
<Dust look={L} count={28} seed={4} drift={0.35} opacity={0.55} color={L.accent2} />
|
|
190
|
+
</Stage>
|
|
191
|
+
{/* 字标后的暖光晕 */}
|
|
192
|
+
<div style={{
|
|
193
|
+
position: 'absolute', left: 960 - 700, top: 366 - 260, width: 1400, height: 520,
|
|
194
|
+
background: `radial-gradient(ellipse 50% 50% at 50% 50%, ${alpha(L.accent, 0.16)} 0%, ${alpha(L.accent, 0)} 70%)`,
|
|
195
|
+
}} />
|
|
196
|
+
<NewPage frame={frame} />
|
|
197
|
+
{/* 过曝光束:门缝里涌进来的光 */}
|
|
198
|
+
{flash > 0.01 && (
|
|
199
|
+
<div style={{
|
|
200
|
+
position: 'absolute', top: 0, bottom: 0, left: 960 - (door + 160), width: 2 * (door + 160), mixBlendMode: 'screen', opacity: flash,
|
|
201
|
+
background: `linear-gradient(90deg, ${alpha(L.light, 0)} 0%, ${alpha(L.light, 0.55)} 40%, ${alpha('#ffe6cc', 0.85)} 50%, ${alpha(L.light, 0.55)} 60%, ${alpha(L.light, 0)} 100%)`,
|
|
202
|
+
}} />
|
|
203
|
+
)}
|
|
204
|
+
</div>
|
|
205
|
+
)}
|
|
206
|
+
|
|
207
|
+
{!doorsGone && (
|
|
208
|
+
<div style={{ position: 'absolute', inset: 0, transform: `scale(${push.toFixed(5)})`, transformOrigin: '50% 50%' }}>
|
|
209
|
+
<SpeedBlur vx={-vx} amount={0.09} max={22}>
|
|
210
|
+
<Door side="left" offset={door} light={doorLight} edge={edge} />
|
|
211
|
+
</SpeedBlur>
|
|
212
|
+
<SpeedBlur vx={vx} amount={0.09} max={22}>
|
|
213
|
+
<Door side="right" offset={door} light={doorLight} edge={edge} />
|
|
214
|
+
</SpeedBlur>
|
|
215
|
+
{/* 裂点预告:发丝亮线 + 泛光,自中点向上下描出 */}
|
|
216
|
+
{crack > 0 && frame < SLIDE + 4 && (
|
|
217
|
+
<div style={{
|
|
218
|
+
position: 'absolute', left: 960 - 1, top: 0, width: 2, height: 1080, transform: `scaleY(${crack.toFixed(4)})`,
|
|
219
|
+
background: 'linear-gradient(180deg, rgba(255,226,194,0) 0%, #ffe2c2 22%, #fff6ec 50%, #ffe2c2 78%, rgba(255,226,194,0) 100%)',
|
|
220
|
+
boxShadow: glow(L.accent, 0.9), opacity: 1 - ramp(frame, SLIDE, 4, EASE.out),
|
|
221
|
+
}} />
|
|
222
|
+
)}
|
|
223
|
+
</div>
|
|
224
|
+
)}
|
|
225
|
+
</div>
|
|
226
|
+
);
|
|
227
|
+
};
|
package/lib/motion/shotcraft/upstream/demos/transition/print-texture-transitions/InkBleedReveal.tsx
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
// 墨渗揭示(ink-bleed-reveal)——水墨转场(轨道遮罩法)。
|
|
2
|
+
// 旧景:暖白纸面上的章节扉页(等宽小字章号 + 衬线大标题 + 细线 + 副题),纸纹静态颗粒;
|
|
3
|
+
// 新景 FakeDashboard(A) 放进 SVG <foreignObject>,套 <mask>:落墨点 (800,420) 的白圆当轨道遮罩。
|
|
4
|
+
// 墨的三层(自外向内):①湿晕——纸被水洇湿的一圈极淡暗环(大半径、重羽化);
|
|
5
|
+
// ②墨边——深靛墨色的须状渗边,半径领先新景 20–42px:外沿半透明重羽化、内芯浓,读作"湿墨";
|
|
6
|
+
// ③新景——在墨边后面"显影"出来,内容始终清晰,scale 1.035→1 轻收(显影感)。
|
|
7
|
+
// 三层遮罩圆共用 feTurbulence(baseFrequency 0.02, octaves 3, seed 7 固定) + feDisplacementMap
|
|
8
|
+
// (scale 60→160 随帧涨)造须状渗边——filter 只揉遮罩形状,不揉画面。
|
|
9
|
+
// 节拍:0–14 hold 旧景 → 14–22 墨滴落点(小墨点过冲落下)→ 20–98 半径 0→1450
|
|
10
|
+
// (Easing.out(quad))叠 ±8% 低频正弦扰动(帧 78–98 衰减到 0,洇满全屏)→
|
|
11
|
+
// 100–130 摘掉 mask 直接铺新景,真静止 30f。
|
|
12
|
+
import React, { useId } from 'react';
|
|
13
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
14
|
+
import { FakeDashboard } from '../../_fixtures/Fixtures';
|
|
15
|
+
import { EASE, FONT, ramp, mix, Grain } from '../../_fixtures/Polish';
|
|
16
|
+
|
|
17
|
+
export const INK_BLEED_REVEAL_DURATION = 130;
|
|
18
|
+
|
|
19
|
+
const SERIF = 'ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif';
|
|
20
|
+
const PAPER = '#f3efe6'; // 暖白纸
|
|
21
|
+
const INK = '#1a1c29'; // 带一点靛的墨色(不用纯黑)
|
|
22
|
+
const PAPER_INK = '#2a2620'; // 印在纸上的字色
|
|
23
|
+
|
|
24
|
+
// 旧景:章节扉页(纸 + 印刷字)——标题是 video-shotcraft 品牌短句,副题是宣传语
|
|
25
|
+
const PaperPage: React.FC = () => (
|
|
26
|
+
<div style={{
|
|
27
|
+
position: 'absolute', inset: 0, background: `radial-gradient(ellipse 80% 70% at 42% 38%, #f8f5ee 0%, ${PAPER} 55%, #e9e4d8 100%)`,
|
|
28
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
29
|
+
}}>
|
|
30
|
+
<div style={{ textAlign: 'center', color: PAPER_INK }}>
|
|
31
|
+
<div style={{ fontFamily: FONT.mono, fontSize: 22, letterSpacing: '0.32em', color: '#8a8173', marginBottom: 34 }}>
|
|
32
|
+
CHAPTER 02
|
|
33
|
+
</div>
|
|
34
|
+
<div style={{ fontFamily: SERIF, fontSize: 112, fontWeight: 500, lineHeight: 1.04, letterSpacing: '-0.025em' }}>
|
|
35
|
+
Frame motion.
|
|
36
|
+
<br />
|
|
37
|
+
<span style={{ fontStyle: 'italic' }}>Craft the shot.</span>
|
|
38
|
+
</div>
|
|
39
|
+
<div style={{ width: 120, height: 1.5, background: '#b7ab97', margin: '44px auto 30px' }} />
|
|
40
|
+
<div style={{ fontFamily: SERIF, fontSize: 34, color: '#6f675a', letterSpacing: '-0.005em' }}>
|
|
41
|
+
Every shot, tuned in one place.
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
{/* 纸纹:静态颗粒(step 极大 = 不换帧,静止段像素恒定) */}
|
|
45
|
+
<Grain opacity={0.07} step={100000} freq={0.9} blend="multiply" />
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export const InkBleedReveal: React.FC = () => {
|
|
50
|
+
const frame = useCurrentFrame();
|
|
51
|
+
// 滤镜/mask ID 按实例生成,多实例同场不串引(useId 的 «:» 在 url() 里非法,需清洗)
|
|
52
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
53
|
+
const bleedId = `inkBleed-${uid}`;
|
|
54
|
+
const featherId = `inkFeather-${uid}`;
|
|
55
|
+
const haloId = `inkHalo-${uid}`;
|
|
56
|
+
const maskNew = `inkMaskNew-${uid}`;
|
|
57
|
+
const maskInk = `inkMaskInk-${uid}`;
|
|
58
|
+
const maskHalo = `inkMaskHalo-${uid}`;
|
|
59
|
+
|
|
60
|
+
// 墨滴落点:画面中心偏左上
|
|
61
|
+
const cx = 800;
|
|
62
|
+
const cy = 420;
|
|
63
|
+
|
|
64
|
+
// 基础半径:帧 20–98,0 → 1450px(最远角 ~1300px + 渗边位移余量 150px)
|
|
65
|
+
const baseR = interpolate(frame, [20, 98], [0, 1450], {
|
|
66
|
+
easing: Easing.out(Easing.quad),
|
|
67
|
+
extrapolateLeft: 'clamp',
|
|
68
|
+
extrapolateRight: 'clamp',
|
|
69
|
+
});
|
|
70
|
+
// ±8% 低频正弦扰动 = 快慢不匀的洇开;帧 78–98 幅度衰减到 0,保证吃满后能真静止
|
|
71
|
+
const wobbleEnv = interpolate(frame, [78, 98], [1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
72
|
+
const r = Math.max(0, baseR * (1 + 0.08 * Math.sin(frame * 0.32) * wobbleEnv));
|
|
73
|
+
// 墨边领先量:起笔时窄(20px)、洇开中段最宽(~42px)——墨在纸上先跑、画面后显
|
|
74
|
+
const lead = 20 + 22 * Math.sin(Math.PI * ramp(frame, 20, 78, EASE.linear));
|
|
75
|
+
const rInk = r > 0.5 ? r + lead : 0; // 墨边外沿(半透明、羽化重)
|
|
76
|
+
const rCore = r > 0.5 ? r + lead * 0.45 : 0; // 墨芯(浓、羽化轻)
|
|
77
|
+
// 湿晕:比墨边再外扩 ~110px,极淡
|
|
78
|
+
const rHalo = r > 0.5 ? r + lead + 110 : 0;
|
|
79
|
+
|
|
80
|
+
// 渗边发散度:displacement scale 60 → 160(边缘越洇越散、指尖分叉越长)
|
|
81
|
+
const dispScale = interpolate(frame, [20, 98], [60, 160], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
82
|
+
|
|
83
|
+
// 墨滴:14–22f 一个小墨点过冲落下,随后被洇开的墨边吞没
|
|
84
|
+
const drop = ramp(frame, 14, 8, EASE.overshoot);
|
|
85
|
+
const dropR = 16 * drop;
|
|
86
|
+
|
|
87
|
+
// 新景显影:scale 1.035 → 1(20–100f,ease-out),摘罩前必须精确回到 1
|
|
88
|
+
const develop = mix(1.035, 1, ramp(frame, 20, 80, EASE.out));
|
|
89
|
+
|
|
90
|
+
// 帧 100 起 mask 已全白:摘掉 SVG 直接铺新景,确保结尾像素级真静止
|
|
91
|
+
const settled = frame >= 100;
|
|
92
|
+
|
|
93
|
+
return (
|
|
94
|
+
<div style={{ width: 1920, height: 1080, background: PAPER, position: 'relative', overflow: 'hidden' }}>
|
|
95
|
+
{!settled && <PaperPage />}
|
|
96
|
+
|
|
97
|
+
{settled ? (
|
|
98
|
+
<div style={{ position: 'absolute', inset: 0 }}>
|
|
99
|
+
<FakeDashboard variant="A" />
|
|
100
|
+
</div>
|
|
101
|
+
) : (
|
|
102
|
+
<svg width={1920} height={1080} viewBox="0 0 1920 1080" style={{ position: 'absolute', inset: 0, display: 'block' }}>
|
|
103
|
+
<defs>
|
|
104
|
+
{/* filter 只挂在 mask 的圆上——揉的是遮罩边,不是画面内容 */}
|
|
105
|
+
<filter id={bleedId} x="-40%" y="-40%" width="180%" height="180%">
|
|
106
|
+
<feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="3" seed="7" result="noise" />
|
|
107
|
+
<feDisplacementMap in="SourceGraphic" in2="noise" scale={dispScale} xChannelSelector="R" yChannelSelector="G" />
|
|
108
|
+
</filter>
|
|
109
|
+
{/* 墨边:同一套须状位移 + 1.6px 羽化 = 湿墨的软边 */}
|
|
110
|
+
<filter id={featherId} x="-40%" y="-40%" width="180%" height="180%">
|
|
111
|
+
<feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="3" seed="7" result="noise" />
|
|
112
|
+
<feDisplacementMap in="SourceGraphic" in2="noise" scale={dispScale * 1.08} xChannelSelector="R" yChannelSelector="G" result="d" />
|
|
113
|
+
<feGaussianBlur in="d" stdDeviation="3.2" />
|
|
114
|
+
</filter>
|
|
115
|
+
<filter id={`${featherId}c`} x="-40%" y="-40%" width="180%" height="180%">
|
|
116
|
+
<feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="3" seed="7" result="noise" />
|
|
117
|
+
<feDisplacementMap in="SourceGraphic" in2="noise" scale={dispScale * 1.03} xChannelSelector="R" yChannelSelector="G" result="d" />
|
|
118
|
+
<feGaussianBlur in="d" stdDeviation="1" />
|
|
119
|
+
</filter>
|
|
120
|
+
{/* 湿晕:重羽化,只留一圈若有若无的暗 */}
|
|
121
|
+
<filter id={haloId} x="-40%" y="-40%" width="180%" height="180%">
|
|
122
|
+
<feTurbulence type="fractalNoise" baseFrequency="0.012" numOctaves="2" seed="7" result="noise" />
|
|
123
|
+
<feDisplacementMap in="SourceGraphic" in2="noise" scale={dispScale * 1.3} xChannelSelector="R" yChannelSelector="G" result="d" />
|
|
124
|
+
<feGaussianBlur in="d" stdDeviation="34" />
|
|
125
|
+
</filter>
|
|
126
|
+
<mask id={maskHalo} maskUnits="userSpaceOnUse" x="0" y="0" width="1920" height="1080">
|
|
127
|
+
<rect x="0" y="0" width="1920" height="1080" fill="black" />
|
|
128
|
+
{rHalo > 0 && <circle cx={cx} cy={cy} r={rHalo} fill="white" filter={`url(#${haloId})`} />}
|
|
129
|
+
</mask>
|
|
130
|
+
<mask id={maskInk} maskUnits="userSpaceOnUse" x="0" y="0" width="1920" height="1080">
|
|
131
|
+
<rect x="0" y="0" width="1920" height="1080" fill="black" />
|
|
132
|
+
{rInk > 0 && <circle cx={cx} cy={cy} r={rInk} fill="white" filter={`url(#${featherId})`} />}
|
|
133
|
+
{dropR > 0.5 && <circle cx={cx} cy={cy} r={dropR} fill="white" />}
|
|
134
|
+
</mask>
|
|
135
|
+
<mask id={`${maskInk}c`} maskUnits="userSpaceOnUse" x="0" y="0" width="1920" height="1080">
|
|
136
|
+
<rect x="0" y="0" width="1920" height="1080" fill="black" />
|
|
137
|
+
{rCore > 0 && <circle cx={cx} cy={cy} r={rCore} fill="white" filter={`url(#${featherId}c)`} />}
|
|
138
|
+
{dropR > 0.5 && <circle cx={cx} cy={cy} r={dropR * 0.86} fill="white" />}
|
|
139
|
+
</mask>
|
|
140
|
+
<mask id={maskNew} maskUnits="userSpaceOnUse" x="0" y="0" width="1920" height="1080">
|
|
141
|
+
<rect x="0" y="0" width="1920" height="1080" fill="black" />
|
|
142
|
+
{r > 0.5 && <circle cx={cx} cy={cy} r={r} fill="white" filter={`url(#${bleedId})`} />}
|
|
143
|
+
</mask>
|
|
144
|
+
</defs>
|
|
145
|
+
{/* ① 湿晕 */}
|
|
146
|
+
<rect x="0" y="0" width="1920" height="1080" fill="#5a4e3a" opacity={0.12} mask={`url(#${maskHalo})`} />
|
|
147
|
+
{/* ② 墨边(含落点墨滴) */}
|
|
148
|
+
<rect x="0" y="0" width="1920" height="1080" fill={INK} opacity={0.42} mask={`url(#${maskInk})`} />
|
|
149
|
+
<rect x="0" y="0" width="1920" height="1080" fill={INK} opacity={0.86} mask={`url(#${maskInk}c)`} />
|
|
150
|
+
{/* ③ 新景显影 */}
|
|
151
|
+
<g mask={`url(#${maskNew})`}>
|
|
152
|
+
<foreignObject x="0" y="0" width="1920" height="1080">
|
|
153
|
+
<div style={{ width: 1920, height: 1080, transform: `scale(${develop})`, transformOrigin: `${cx}px ${cy}px` }}>
|
|
154
|
+
<FakeDashboard variant="A" />
|
|
155
|
+
</div>
|
|
156
|
+
</foreignObject>
|
|
157
|
+
</g>
|
|
158
|
+
</svg>
|
|
159
|
+
)}
|
|
160
|
+
</div>
|
|
161
|
+
);
|
|
162
|
+
};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// portal-wipe 穿窗入景(纵深款)——网格里一张卡放大成全屏窗口,窗内是被点开那张卡的"世界",
|
|
2
|
+
// 只 2 层视差(远景面板 0.08 + 近景 2 枚浮卡 0.3,不加 blur),穿窗完成后 8f 缓停 → 静止读清新景。
|
|
3
|
+
//
|
|
4
|
+
// 第二轮重设计(瓷白工作台 → 钴蓝预测世界):
|
|
5
|
+
// - look = porcelain(冷白 · 钴蓝)。不再用通用灰阶 FakeDashboard:外景是为镜头设计的 video-shotcraft
|
|
6
|
+
// 「Workspace」主页(眉题前挂字标)——96px 问候标题 + 3×2 张「影片项目」卡,每张卡有自己的程序化封面
|
|
7
|
+
// (同心圆 / 柱 / 点阵 / 斜纹 / 弧 / 波形)、40px 标题与 32px 元信息。目标卡 = 第 2 行居中的
|
|
8
|
+
// 「Premiere Forecast」(发布片的观看量预测,钴蓝封面 + 三道波形)。
|
|
9
|
+
// - 语义闭环:目标卡的**封面就是窗内世界的样子**——窗内是深钴蓝空间,三道同款波形放大成背景地貌;
|
|
10
|
+
// 远景层 = 一块玻璃预测面板(64px 标题 + 面积图:实线历史 + 虚线预测区间 + TODAY 标线),
|
|
11
|
+
// 近景层 = 两枚浮卡(+18.4% vs last launch / 94% confidence 环),落点压住面板两角,做出前后景。
|
|
12
|
+
// - 运动:目标卡先悬浮抬起作预备(−10px、1.03×、阴影变大变虚),邻卡同时退暗;窗放大 40f 用
|
|
13
|
+
// bezier(0.7,0,0.3,1) 先慢后快再缓收;窗内整景 0.42→1 与窗几何同一个 t;面积图的线随 t 画出、
|
|
14
|
+
// 与穿窗同时完成;视差散开 Easing.out(cubic) 在穿窗完成后 8f 内速度归零,之后画面真静止。
|
|
15
|
+
//
|
|
16
|
+
// 时间表(30fps,共 140f):
|
|
17
|
+
// 0–14 hold:Workspace 主页建立(第 0 帧即完整画面)
|
|
18
|
+
// 14–26 预备:目标卡抬起、邻卡退暗 18%
|
|
19
|
+
// 26–66 窗放大 40f:卡变全屏窗,卡面 0–28% 行程内渐隐露出窗内世界(再慢会被拉成巨字残影)
|
|
20
|
+
// 42–74 近/远两层视差散开(66f 穿窗完成后 8f 缓停)
|
|
21
|
+
// 74–140 静止 hold 66f:新世界完整可读
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
24
|
+
import { EASE, FONT, ramp, mix, softShadow } from '../../_fixtures/Polish';
|
|
25
|
+
import { LOOKS, Stage, alpha, type } from '../../_fixtures/Look';
|
|
26
|
+
import { ShotcraftWordmark } from '../../_fixtures/Brand';
|
|
27
|
+
|
|
28
|
+
export const PORTAL_WIPE_V2_DURATION = 140;
|
|
29
|
+
|
|
30
|
+
const L = LOOKS.porcelain;
|
|
31
|
+
const COBALT = { deep: '#040a26', mid: '#0b1a5c', hi: '#2f5bff', glow: '#7d9bff', mint: '#3fe0c5' };
|
|
32
|
+
|
|
33
|
+
// ───────── 外景:Workspace 网格 ─────────
|
|
34
|
+
const TILE = { w: 520, h: 300, gap: 32, cover: 176 };
|
|
35
|
+
const GRID_X = (1920 - (3 * TILE.w + 2 * TILE.gap)) / 2;
|
|
36
|
+
const GRID_Y = 330;
|
|
37
|
+
type Space = { name: string; meta: string; art: 'rings' | 'bars' | 'dots' | 'stripes' | 'waves' | 'arcs'; c: [string, string] };
|
|
38
|
+
const SPACES: Space[] = [
|
|
39
|
+
{ name: 'Launch Film', meta: 'Promo · 12 shots', art: 'rings', c: ['#ff9a6b', '#ff5f6d'] },
|
|
40
|
+
{ name: 'Changelog Reel', meta: 'Release · 8 shots', art: 'bars', c: ['#4fd1a5', '#1f9e89'] },
|
|
41
|
+
{ name: 'Onboarding Tour', meta: 'Explainer · 21 shots', art: 'dots', c: ['#b9a2ff', '#7a5cff'] },
|
|
42
|
+
{ name: 'Ink Press Teaser', meta: 'Template · 5 shots', art: 'stripes', c: ['#f2c879', '#d99a3e'] },
|
|
43
|
+
{ name: 'Premiere Forecast', meta: 'Analytics · 9 films', art: 'waves', c: ['#3d6bff', '#0f2a9e'] },
|
|
44
|
+
{ name: 'Render Queue', meta: 'Renders · 14 jobs', art: 'arcs', c: ['#5cc8e8', '#2a7fb8'] },
|
|
45
|
+
];
|
|
46
|
+
const TARGET = 4;
|
|
47
|
+
const slotOf = (i: number) => ({ x: GRID_X + (i % 3) * (TILE.w + TILE.gap), y: GRID_Y + Math.floor(i / 3) * (TILE.h + TILE.gap) });
|
|
48
|
+
|
|
49
|
+
// 三道波形(封面与窗内世界共用同一组曲线 = 语义闭环)
|
|
50
|
+
const wavePath = (w: number, h: number, k: number, phase: number) => {
|
|
51
|
+
const pts: string[] = [];
|
|
52
|
+
for (let i = 0; i <= 48; i++) {
|
|
53
|
+
const x = (i / 48) * w;
|
|
54
|
+
const y = h * (0.62 - 0.1 * k) + Math.sin(i / 48 * Math.PI * 2.2 + phase + k * 0.9) * h * 0.11 - (i / 48) * h * 0.16;
|
|
55
|
+
pts.push(`${i ? 'L' : 'M'}${x.toFixed(1)} ${y.toFixed(1)}`);
|
|
56
|
+
}
|
|
57
|
+
return pts.join(' ');
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const Cover: React.FC<{ s: Space; w: number; h: number }> = ({ s, w, h }) => {
|
|
61
|
+
const stroke = 'rgba(255,255,255,0.55)';
|
|
62
|
+
let art: React.ReactNode = null;
|
|
63
|
+
if (s.art === 'rings') art = [0, 1, 2, 3, 4].map((k) => <circle key={k} cx={w * 0.78} cy={h * 0.62} r={30 + k * 34} fill="none" stroke={stroke} strokeWidth={2} opacity={1 - k * 0.16} />);
|
|
64
|
+
if (s.art === 'bars') art = Array.from({ length: 9 }, (_, k) => { const bh = h * (0.25 + 0.5 * Math.abs(Math.sin(k * 1.3 + 0.6))); return <rect key={k} x={w * 0.42 + k * 30} y={h - bh} width={16} height={bh} rx={4} fill="rgba(255,255,255,0.42)" />; });
|
|
65
|
+
if (s.art === 'dots') art = Array.from({ length: 40 }, (_, k) => <circle key={k} cx={w * 0.46 + (k % 10) * 26} cy={h * 0.2 + Math.floor(k / 10) * 32} r={4 + ((k * 7) % 5)} fill="rgba(255,255,255,0.45)" />);
|
|
66
|
+
if (s.art === 'stripes') art = Array.from({ length: 12 }, (_, k) => <line key={k} x1={w * 0.3 + k * 34} y1={h + 10} x2={w * 0.3 + k * 34 + 120} y2={-10} stroke={stroke} strokeWidth={10} opacity={0.5} />);
|
|
67
|
+
if (s.art === 'arcs') art = [0, 1, 2, 3].map((k) => <path key={k} d={`M ${w * 0.35} ${h + 4} A ${90 + k * 46} ${90 + k * 46} 0 0 1 ${w * 0.35 + 2 * (90 + k * 46)} ${h + 4}`} fill="none" stroke={stroke} strokeWidth={2.5} />);
|
|
68
|
+
if (s.art === 'waves') art = [0, 1, 2].map((k) => <path key={k} d={wavePath(w, h, k, 0)} fill="none" stroke={k === 0 ? COBALT.mint : stroke} strokeWidth={k === 0 ? 4 : 2.5} />);
|
|
69
|
+
return (
|
|
70
|
+
<div style={{ position: 'absolute', left: 0, top: 0, width: w, height: h, background: `linear-gradient(135deg, ${s.c[0]} 0%, ${s.c[1]} 100%)`, overflow: 'hidden' }}>
|
|
71
|
+
<svg width={w} height={h} style={{ position: 'absolute', inset: 0 }}>{art}</svg>
|
|
72
|
+
<div style={{ position: 'absolute', inset: 0, background: 'linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 40%)' }} />
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const Tile: React.FC<{ s: Space }> = ({ s }) => (
|
|
78
|
+
<div style={{ position: 'absolute', inset: 0, borderRadius: 22, overflow: 'hidden', background: L.surface, border: `1px solid ${L.line}` }}>
|
|
79
|
+
<Cover s={s} w={TILE.w} h={TILE.cover} />
|
|
80
|
+
<div style={{ position: 'absolute', left: 26, top: TILE.cover + 22, ...type(40, 650), color: L.ink, whiteSpace: 'nowrap' }}>{s.name}</div>
|
|
81
|
+
<div style={{ position: 'absolute', left: 26, top: TILE.cover + 74, ...type(32, 450), color: L.ink3, whiteSpace: 'nowrap' }}>{s.meta}</div>
|
|
82
|
+
</div>
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
// ───────── 窗内世界:钴蓝预测空间 ─────────
|
|
86
|
+
// 预测曲线:确定性序列(0–39 历史实线,39–59 预测虚线 + 区间带)
|
|
87
|
+
const SERIES = Array.from({ length: 60 }, (_, i) => 0.28 + i * 0.007 + 0.065 * Math.sin(i * 0.55) + 0.02 * Math.sin(i * 1.7 + 1));
|
|
88
|
+
const NOW = 39;
|
|
89
|
+
const CH = { x: 64, y: 196, w: 1112, h: 360 };
|
|
90
|
+
const px = (i: number) => CH.x + (i / 59) * CH.w;
|
|
91
|
+
const py = (v: number) => CH.y + CH.h * (1 - v);
|
|
92
|
+
const line = (a: number, b: number) => SERIES.slice(a, b + 1).map((v, k) => `${k ? 'L' : 'M'}${px(a + k).toFixed(1)} ${py(v).toFixed(1)}`).join(' ');
|
|
93
|
+
const BAND = (() => {
|
|
94
|
+
const up = SERIES.slice(NOW).map((v, k) => `${k ? 'L' : 'M'}${px(NOW + k).toFixed(1)} ${py(v + 0.02 + k * 0.006).toFixed(1)}`).join(' ');
|
|
95
|
+
const dn = SERIES.slice(NOW).map((v, k) => [px(NOW + k), py(v - 0.02 - k * 0.006)] as const).reverse().map(([x, y]) => `L${x.toFixed(1)} ${y.toFixed(1)}`).join(' ');
|
|
96
|
+
return `${up} ${dn} Z`;
|
|
97
|
+
})();
|
|
98
|
+
const AREA = `${line(0, NOW)} L${px(NOW).toFixed(1)} ${CH.y + CH.h} L${px(0).toFixed(1)} ${CH.y + CH.h} Z`;
|
|
99
|
+
|
|
100
|
+
const glass: React.CSSProperties = {
|
|
101
|
+
background: 'linear-gradient(180deg, rgba(160,185,255,0.13) 0%, rgba(120,150,255,0.05) 100%)',
|
|
102
|
+
border: '1px solid rgba(190,210,255,0.18)',
|
|
103
|
+
boxShadow: `inset 0 1px 0 rgba(255,255,255,0.16), 0 50px 120px -30px rgba(0,2,20,0.8), 0 14px 36px rgba(0,2,20,0.45)`,
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const ForecastPanel: React.FC<{ draw: number }> = ({ draw }) => (
|
|
107
|
+
<div style={{ position: 'absolute', left: 340, top: 200, width: 1240, height: 660, borderRadius: 30, overflow: 'hidden', ...glass }}>
|
|
108
|
+
<div style={{ position: 'absolute', left: 64, top: 52, ...type(28, 600, { mono: true }), color: COBALT.glow, letterSpacing: '0.16em' }}>PROJECT · ANALYTICS</div>
|
|
109
|
+
<div style={{ position: 'absolute', left: 64, top: 96, ...type(64, 700), color: '#f2f5ff' }}>Premiere Forecast</div>
|
|
110
|
+
<div style={{ position: 'absolute', right: 64, top: 112, display: 'flex', gap: 34, ...type(32, 500), color: '#a9b8e8' }}>
|
|
111
|
+
<span><span style={{ display: 'inline-block', width: 28, height: 4, borderRadius: 2, background: COBALT.mint, verticalAlign: 'middle', marginRight: 12 }} />Views</span>
|
|
112
|
+
<span><span style={{ display: 'inline-block', width: 28, height: 4, borderRadius: 2, borderTop: `3px dashed ${COBALT.glow}`, verticalAlign: 'middle', marginRight: 12 }} />Next 90 days</span>
|
|
113
|
+
</div>
|
|
114
|
+
<svg width={1240} height={660} style={{ position: 'absolute', inset: 0 }}>
|
|
115
|
+
<defs>
|
|
116
|
+
<linearGradient id="pw-area" x1="0" y1="0" x2="0" y2="1">
|
|
117
|
+
<stop offset="0" stopColor={COBALT.mint} stopOpacity={0.32} />
|
|
118
|
+
<stop offset="1" stopColor={COBALT.mint} stopOpacity={0} />
|
|
119
|
+
</linearGradient>
|
|
120
|
+
<clipPath id="pw-draw"><rect x={0} y={0} width={CH.x + CH.w * draw + 4} height={660} /></clipPath>
|
|
121
|
+
</defs>
|
|
122
|
+
{[0, 1, 2, 3].map((k) => <line key={k} x1={CH.x} x2={CH.x + CH.w} y1={CH.y + (CH.h / 3) * k} y2={CH.y + (CH.h / 3) * k} stroke="rgba(190,210,255,0.1)" strokeWidth={1.5} />)}
|
|
123
|
+
<g clipPath="url(#pw-draw)">
|
|
124
|
+
<path d={AREA} fill="url(#pw-area)" />
|
|
125
|
+
<path d={BAND} fill={alpha(COBALT.glow, 0.16)} />
|
|
126
|
+
<path d={line(0, NOW)} fill="none" stroke={COBALT.mint} strokeWidth={5} strokeLinejoin="round" strokeLinecap="round" />
|
|
127
|
+
<path d={line(NOW, 59)} fill="none" stroke={COBALT.glow} strokeWidth={4} strokeDasharray="12 10" strokeLinecap="round" />
|
|
128
|
+
</g>
|
|
129
|
+
{draw > 0.66 && (
|
|
130
|
+
<g opacity={Math.min(1, (draw - 0.66) * 6)}>
|
|
131
|
+
<line x1={px(NOW)} x2={px(NOW)} y1={CH.y - 16} y2={CH.y + CH.h} stroke="rgba(230,238,255,0.45)" strokeWidth={1.5} strokeDasharray="4 6" />
|
|
132
|
+
<circle cx={px(NOW)} cy={py(SERIES[NOW])} r={10} fill={COBALT.deep} stroke={COBALT.mint} strokeWidth={4} />
|
|
133
|
+
<text x={px(NOW) + 16} y={CH.y - 2} fontFamily={FONT.mono} fontSize={24} fill="#a9b8e8" letterSpacing="0.12em">TODAY</text>
|
|
134
|
+
</g>
|
|
135
|
+
)}
|
|
136
|
+
</svg>
|
|
137
|
+
<div style={{ position: 'absolute', left: 64, bottom: 46, right: 64, display: 'flex', justifyContent: 'space-between', ...type(28, 500, { mono: true }), color: '#6f7fae' }}>
|
|
138
|
+
<span /><span>MAY</span><span>JUN</span><span>JUL</span><span>AUG</span><span>SEP</span>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
// 近景两枚浮卡的**终点**(散开 ×1.3 之后),按 960/540 中心反推散开前的位置
|
|
144
|
+
const NEAR_K = 1.3;
|
|
145
|
+
const nearPos = (x: number, y: number) => ({ x: 960 + (x - 960) / NEAR_K, y: 540 + (y - 540) / NEAR_K });
|
|
146
|
+
const CHIP_A = nearPos(1380, 64); // 右上:压住面板右上角
|
|
147
|
+
const CHIP_B = nearPos(104, 790); // 左下:压住面板左下角
|
|
148
|
+
|
|
149
|
+
const World: React.FC<{ spread: number; draw: number }> = ({ spread, draw }) => (
|
|
150
|
+
<AbsoluteFill style={{ background: `radial-gradient(ellipse 80% 70% at 50% 30%, ${COBALT.mid} 0%, #071244 50%, ${COBALT.deep} 100%)` }}>
|
|
151
|
+
{/* 背景地貌:封面同款三道波形放大成世界的地平线 */}
|
|
152
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0, opacity: 0.5 }}>
|
|
153
|
+
{[0, 1, 2].map((k) => <path key={k} d={wavePath(1920, 1080, k, 0)} transform="translate(0 210)" fill="none" stroke={k === 0 ? COBALT.mint : COBALT.glow} strokeOpacity={k === 0 ? 0.35 : 0.22} strokeWidth={k === 0 ? 3 : 2} />)}
|
|
154
|
+
</svg>
|
|
155
|
+
<div style={{ position: 'absolute', inset: 0, background: `radial-gradient(ellipse 40% 34% at 50% 18%, ${alpha(COBALT.hi, 0.35)} 0%, ${alpha(COBALT.hi, 0)} 100%)` }} />
|
|
156
|
+
{/* 远景层(系数 0.08) */}
|
|
157
|
+
<div style={{ position: 'absolute', inset: 0, transform: `scale(${(1 + spread * 0.08).toFixed(4)})`, transformOrigin: '960px 540px' }}>
|
|
158
|
+
<ForecastPanel draw={draw} />
|
|
159
|
+
</div>
|
|
160
|
+
{/* 近景层(系数 0.3):两枚浮卡 */}
|
|
161
|
+
<div style={{ position: 'absolute', inset: 0, transform: `scale(${(1 + spread * (NEAR_K - 1)).toFixed(4)})`, transformOrigin: '960px 540px' }}>
|
|
162
|
+
<div style={{ position: 'absolute', left: CHIP_A.x, top: CHIP_A.y, width: 400 / NEAR_K, height: 200 / NEAR_K, borderRadius: 22 / NEAR_K, ...glass, background: 'linear-gradient(180deg, rgba(30,55,160,0.92), rgba(14,30,110,0.92))' }}>
|
|
163
|
+
<div style={{ position: 'absolute', left: 30 / NEAR_K, top: 26 / NEAR_K, ...type(84 / NEAR_K, 750), color: COBALT.mint }}>+18.4%</div>
|
|
164
|
+
<div style={{ position: 'absolute', left: 32 / NEAR_K, top: 128 / NEAR_K, ...type(32 / NEAR_K, 500), color: '#c3cff5' }}>vs last launch</div>
|
|
165
|
+
</div>
|
|
166
|
+
<div style={{ position: 'absolute', left: CHIP_B.x, top: CHIP_B.y, width: 420 / NEAR_K, height: 180 / NEAR_K, borderRadius: 22 / NEAR_K, ...glass, background: 'linear-gradient(180deg, rgba(30,55,160,0.92), rgba(14,30,110,0.92))' }}>
|
|
167
|
+
<svg width={120 / NEAR_K} height={120 / NEAR_K} viewBox="0 0 120 120" style={{ position: 'absolute', left: 28 / NEAR_K, top: 30 / NEAR_K }}>
|
|
168
|
+
<circle cx={60} cy={60} r={48} fill="none" stroke="rgba(190,210,255,0.16)" strokeWidth={12} />
|
|
169
|
+
<circle cx={60} cy={60} r={48} fill="none" stroke={COBALT.glow} strokeWidth={12} strokeLinecap="round" strokeDasharray={`${(2 * Math.PI * 48 * 0.94).toFixed(1)} 400`} transform="rotate(-90 60 60)" />
|
|
170
|
+
</svg>
|
|
171
|
+
<div style={{ position: 'absolute', left: 172 / NEAR_K, top: 34 / NEAR_K, ...type(64 / NEAR_K, 750), color: '#f2f5ff' }}>94%</div>
|
|
172
|
+
<div style={{ position: 'absolute', left: 174 / NEAR_K, top: 108 / NEAR_K, ...type(32 / NEAR_K, 500), color: '#c3cff5' }}>confidence</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</AbsoluteFill>
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
export const PortalWipeV2: React.FC = () => {
|
|
179
|
+
const frame = useCurrentFrame();
|
|
180
|
+
|
|
181
|
+
// 预备:目标卡悬浮抬起、邻卡退暗
|
|
182
|
+
const hover = ramp(frame, 14, 12, EASE.snappy);
|
|
183
|
+
const slot = slotOf(TARGET);
|
|
184
|
+
const s0 = 1 + 0.03 * hover;
|
|
185
|
+
const c0 = { x: slot.x - (TILE.w * (s0 - 1)) / 2, y: slot.y - 10 * hover - (TILE.h * (s0 - 1)) / 2, w: TILE.w * s0, h: TILE.h * s0, r: 22 };
|
|
186
|
+
|
|
187
|
+
// 窗放大:40f 先慢后快再缓收
|
|
188
|
+
const t = interpolate(frame, [26, 66], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.bezier(0.7, 0, 0.3, 1) });
|
|
189
|
+
const x = mix(c0.x, 0, t), y = mix(c0.y, 0, t), w = mix(c0.w, 1920, t), h = mix(c0.h, 1080, t), r = mix(c0.r, 0, t);
|
|
190
|
+
// 视差散开:穿窗完成(66f)后 8f 内速度归零(74f)
|
|
191
|
+
const spread = interpolate(frame, [42, 74], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic) });
|
|
192
|
+
const innerScale = mix(0.42, 1, t);
|
|
193
|
+
const draw = ramp(frame, 34, 32, EASE.swift); // 曲线与穿窗同时画完
|
|
194
|
+
const elev = (4 + 18 * hover) * (1 - t) + 56 * Math.sin(Math.PI * Math.min(1, t * 1.1)) * (1 - t);
|
|
195
|
+
const oldDim = 0.26 * ramp(frame, 26, 34, EASE.out);
|
|
196
|
+
const neighbours = 1 - 0.18 * hover;
|
|
197
|
+
|
|
198
|
+
return (
|
|
199
|
+
<AbsoluteFill style={{ background: L.bg[1], overflow: 'hidden' }}>
|
|
200
|
+
{/* 外景:Workspace 主页(穿窗完成后不再渲染) */}
|
|
201
|
+
{t < 1 && (
|
|
202
|
+
<>
|
|
203
|
+
<Stage look={L} keyLight={{ x: 0.35, y: 0.0 }} fill={{ x: 0.9, y: 0.95 }} />
|
|
204
|
+
<div style={{ position: 'absolute', left: GRID_X, top: 104, height: 52, display: 'flex', alignItems: 'center', gap: 24 }}>
|
|
205
|
+
<ShotcraftWordmark size={30} tone="light" color={L.ink} markScale={1.7} gap={14} />
|
|
206
|
+
<span style={{ width: 1.5, height: 30, background: L.line }} />
|
|
207
|
+
<span style={{ ...type(30, 600, { mono: true }), color: L.accent, letterSpacing: '0.18em' }}>WORKSPACE</span>
|
|
208
|
+
</div>
|
|
209
|
+
<div style={{ position: 'absolute', left: GRID_X - 4, top: 168, ...type(96, 720), color: L.ink }}>Good morning, Mara.</div>
|
|
210
|
+
<div style={{ position: 'absolute', right: GRID_X, top: 196, ...type(36, 500), color: L.ink2 }}>6 projects · 2 rendered today</div>
|
|
211
|
+
{SPACES.map((s, i) => {
|
|
212
|
+
if (i === TARGET) return null;
|
|
213
|
+
const p = slotOf(i);
|
|
214
|
+
return (
|
|
215
|
+
<div key={s.name} style={{ position: 'absolute', left: p.x, top: p.y, width: TILE.w, height: TILE.h, opacity: neighbours, borderRadius: 22, boxShadow: softShadow(6, { color: L.shadow, strength: 0.9 }) }}>
|
|
216
|
+
<Tile s={s} />
|
|
217
|
+
</div>
|
|
218
|
+
);
|
|
219
|
+
})}
|
|
220
|
+
{oldDim > 0.002 && <AbsoluteFill style={{ background: alpha(COBALT.deep, oldDim) }} />}
|
|
221
|
+
</>
|
|
222
|
+
)}
|
|
223
|
+
|
|
224
|
+
{/* 窗(放大的卡)——内藏新世界 */}
|
|
225
|
+
<div style={{
|
|
226
|
+
position: 'absolute', left: x, top: y, width: w, height: h, borderRadius: r, overflow: 'hidden',
|
|
227
|
+
boxShadow: t < 1 ? softShadow(elev, { color: L.shadow, strength: 1.6 }) : 'none',
|
|
228
|
+
}}>
|
|
229
|
+
{t > 0 && (
|
|
230
|
+
<div style={{
|
|
231
|
+
position: 'absolute', width: 1920, height: 1080, left: '50%', top: '50%',
|
|
232
|
+
transform: `translate(-50%, -50%) scale(${innerScale.toFixed(4)})`, overflow: 'hidden',
|
|
233
|
+
}}>
|
|
234
|
+
<World spread={spread} draw={draw} />
|
|
235
|
+
</div>
|
|
236
|
+
)}
|
|
237
|
+
{/* 卡正面:放大初期渐隐,露出窗内世界 */}
|
|
238
|
+
{t < 0.3 && (
|
|
239
|
+
<div style={{ position: 'absolute', inset: 0, opacity: Math.max(0, 1 - t * 3.6) }}>
|
|
240
|
+
<div style={{ position: 'absolute', left: 0, top: 0, width: TILE.w, height: TILE.h, transform: `scale(${(w / TILE.w).toFixed(4)}, ${(h / TILE.h).toFixed(4)})`, transformOrigin: '0 0' }}>
|
|
241
|
+
<Tile s={SPACES[TARGET]} />
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
)}
|
|
245
|
+
</div>
|
|
246
|
+
</AbsoluteFill>
|
|
247
|
+
);
|
|
248
|
+
};
|