dsh-drawai 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/lib/client.js +142 -16
- package/lib/index.js +7945 -7719
- package/lib/motion/asset-pack.js +394 -394
- package/lib/motion/assets.js +291 -291
- package/lib/motion/demo-assets-lock.js +10 -10
- package/lib/motion/mgstyles/briefs/23-ink-wash.md +147 -0
- package/lib/motion/mgstyles/catalog.d/23-ink-wash.json +28 -0
- package/lib/motion/mgstyles/catalog.json +127 -14
- package/lib/motion/mgstyles/upstream/demos/23-ink-wash/brush.js +149 -0
- package/lib/motion/mgstyles/upstream/demos/23-ink-wash/film.js +202 -0
- package/lib/motion/mgstyles/upstream/manifest.json +28 -3
- package/lib/motion/mgstyles/upstream/prompts/23-ink-wash.md +59 -0
- package/lib/motion/mgstyles/vendor/README.md +28 -28
- package/lib/motion/mgstyles/vendor/modules/d3/LICENSE +13 -13
- package/lib/motion/mgstyles/vendor/modules/d3/dist/d3.min.js +2 -2
- package/lib/motion/mgstyles/vendor/modules/opentype.js/LICENSE +20 -20
- package/lib/motion/mgstyles/vendor/modules/opentype.js/dist/opentype.mjs +14460 -14460
- package/lib/motion/mgstyles/vendor/modules/simplex-noise/LICENSE +21 -21
- package/lib/motion/mgstyles/vendor/modules/simplex-noise/dist/esm/simplex-noise.js +465 -465
- package/lib/motion/mgstyles/vendor/modules/topojson-client/LICENSE +13 -13
- package/lib/motion/mgstyles/vendor/modules/topojson-client/dist/topojson-client.min.js +2 -2
- package/lib/motion/project.js +5 -1
- package/lib/motion/qa.js +116 -6
- package/lib/motion/render.js +179 -179
- package/lib/motion/scene-kit.js +1 -1
- package/lib/motion/shotcraft/upstream/SKILL.md +286 -286
- package/lib/motion/shotcraft/upstream/assets/lib/Caption.tsx +54 -54
- package/lib/motion/shotcraft/upstream/assets/lib/ClipCard.tsx +200 -200
- package/lib/motion/shotcraft/upstream/assets/lib/DigitRoll.tsx +45 -45
- package/lib/motion/shotcraft/upstream/assets/lib/FlashCut.tsx +20 -20
- package/lib/motion/shotcraft/upstream/assets/lib/FlatPanel.tsx +65 -65
- package/lib/motion/shotcraft/upstream/assets/lib/PageCam.tsx +151 -151
- package/lib/motion/shotcraft/upstream/assets/lib/VerticalTicker.tsx +129 -129
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/camera.tsx +75 -75
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/motion.ts +40 -40
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/rand.ts +11 -11
- package/lib/motion/shotcraft/upstream/assets/lib/helpers/shake.ts +10 -10
- package/lib/motion/shotcraft/upstream/assets/scripts/build-readme-cover.mjs +49 -49
- package/lib/motion/shotcraft/upstream/assets/scripts/capture-template.mjs +210 -210
- package/lib/motion/shotcraft/upstream/assets/scripts/sfx-source.py +423 -423
- package/lib/motion/shotcraft/upstream/assets/scripts/smoke-render-demos.py +170 -170
- package/lib/motion/shotcraft/upstream/assets/scripts/test_sfx_source.py +157 -157
- package/lib/motion/shotcraft/upstream/demos/README.md +120 -120
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Brand.tsx +112 -112
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Fixtures.tsx +647 -647
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Look.tsx +316 -316
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Motion.tsx +82 -82
- package/lib/motion/shotcraft/upstream/demos/_fixtures/PageCam2D.tsx +115 -115
- package/lib/motion/shotcraft/upstream/demos/_fixtures/Polish.tsx +243 -243
- package/lib/motion/shotcraft/upstream/demos/_textures/live-layout.json +388 -388
- package/lib/motion/shotcraft/upstream/demos/camera/basic-3d-scene/Basic3DScene.tsx +250 -250
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashImpactReal.tsx +305 -305
- package/lib/motion/shotcraft/upstream/demos/camera/crash-zoom-punch/CrashZoomReal.tsx +246 -246
- package/lib/motion/shotcraft/upstream/demos/camera/cursor-flyover/CursorFlyover.tsx +390 -390
- package/lib/motion/shotcraft/upstream/demos/camera/depth-layer-moves/MultiplaneReal.tsx +138 -138
- package/lib/motion/shotcraft/upstream/demos/camera/graze-face-tour/GrazeFaceTour.tsx +542 -542
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/OverheadTabletopDrop.tsx +315 -315
- package/lib/motion/shotcraft/upstream/demos/camera/overhead-camera-moves/TiltReveal.tsx +299 -299
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/DroneDiveLanding.tsx +173 -173
- package/lib/motion/shotcraft/upstream/demos/camera/space-camera-moves/ExplodedView.tsx +348 -348
- package/lib/motion/shotcraft/upstream/demos/camera/steep-tilt-glide/SteepTiltGlide.tsx +366 -366
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/BulletTimeFreezeOrbit.tsx +279 -279
- package/lib/motion/shotcraft/upstream/demos/camera/tension-camera-moves/PullBackIsolation.tsx +184 -184
- package/lib/motion/shotcraft/upstream/demos/camera/terminal-3d/Terminal3D.tsx +390 -390
- package/lib/motion/shotcraft/upstream/demos/data/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +155 -155
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/AxisRescaleShockV2.tsx +303 -303
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/OscilloscopeStreamV2.tsx +290 -290
- package/lib/motion/shotcraft/upstream/demos/data/chart-live-moves/UnitDotSwarmRegroupV2.tsx +278 -278
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/NeedleSweepSelftest.tsx +307 -307
- package/lib/motion/shotcraft/upstream/demos/data/gauge-readout-moves/TapeScrollFixedPointer.tsx +215 -215
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/BrakeReticleLock.tsx +299 -299
- package/lib/motion/shotcraft/upstream/demos/data/scroll-brake-moves/ChangelogScrollBrake.tsx +232 -232
- package/lib/motion/shotcraft/upstream/demos/data/timeline-travel/TimelineTravel.tsx +290 -290
- package/lib/motion/shotcraft/upstream/demos/effects/assemble-then-type-flyin/AssembleThenTypeFlyin.tsx +273 -273
- package/lib/motion/shotcraft/upstream/demos/effects/aurora-bloom-bg-flip/AuroraBloomBgFlip.tsx +167 -167
- package/lib/motion/shotcraft/upstream/demos/effects/brand-frame-snap/BrandFrameSnap.tsx +536 -536
- package/lib/motion/shotcraft/upstream/demos/effects/fui-hud-moves/ReticleLockOn.tsx +164 -164
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/FlylineArc.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/GlowOrbAmbient.tsx +197 -197
- package/lib/motion/shotcraft/upstream/demos/effects/glow-flyline-moves/OrbFlylineRelay.tsx +241 -241
- package/lib/motion/shotcraft/upstream/demos/effects/icon-performance-moves/AttentionBounce.tsx +279 -279
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/AnimeImpact.tsx +230 -230
- package/lib/motion/shotcraft/upstream/demos/effects/impact-feedback/HitCounter.tsx +345 -345
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SheenSweepRetry.tsx +275 -275
- package/lib/motion/shotcraft/upstream/demos/effects/light-play-moves/SpotlightSweepReveal.tsx +229 -229
- package/lib/motion/shotcraft/upstream/demos/effects/radial-ripple-phone-chips/RadialRipplePhoneChips.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/effects/riso-print-hits/RisoMisregistrationHit.tsx +222 -222
- package/lib/motion/shotcraft/upstream/demos/effects/scan-bracket-sweep/ScanBracketSweep.tsx +295 -295
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-annotate-focus/ScanlineAnnotateFocus.tsx +329 -329
- package/lib/motion/shotcraft/upstream/demos/effects/scanline-assemble-flyin/ScanlineAssembleFlyin.tsx +315 -315
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ImpactBurstKit.tsx +264 -264
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/KanadaPerspectiveSnap.tsx +260 -260
- package/lib/motion/shotcraft/upstream/demos/effects/slam-entrance-moves/ScoreSlam.tsx +263 -263
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/CornerSpotlightReveal.tsx +123 -123
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +187 -187
- package/lib/motion/shotcraft/upstream/demos/effects/spotlight-sweep-moves/SlideSpotlightPan.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/interaction/autolayout-gap-dial/AutolayoutGapDial.tsx +305 -305
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/DiagramCascadeBuild.tsx +350 -350
- package/lib/motion/shotcraft/upstream/demos/interaction/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +352 -352
- package/lib/motion/shotcraft/upstream/demos/interaction/chip-grid-single-select-blackout/ChipGridSingleSelectBlackout.tsx +218 -218
- package/lib/motion/shotcraft/upstream/demos/interaction/collab-cursor-moves/CursorCastEnsemble.tsx +297 -297
- package/lib/motion/shotcraft/upstream/demos/interaction/glass-pill-dictation-typing/GlassPillDictationTyping.tsx +157 -157
- package/lib/motion/shotcraft/upstream/demos/interaction/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +218 -218
- package/lib/motion/shotcraft/upstream/demos/interaction/picker-carousel-feature-cycle/PickerCarouselFeatureCycle.tsx +202 -202
- package/lib/motion/shotcraft/upstream/demos/interaction/segmented-thumb-hero/SegmentedThumbHero.tsx +265 -265
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/PaletteThemeRipple.tsx +457 -457
- package/lib/motion/shotcraft/upstream/demos/interaction/theme-switch-moves/ThemeSweepToggle.tsx +446 -446
- package/lib/motion/shotcraft/upstream/demos/interaction/type-and-filter/TypeAndFilter.tsx +249 -249
- package/lib/motion/shotcraft/upstream/demos/interaction/voice-waveform-live/VoiceWaveformLive.tsx +278 -278
- package/lib/motion/shotcraft/upstream/demos/opening/crane-rise-reveal/CraneRiseReveal.tsx +332 -332
- package/lib/motion/shotcraft/upstream/demos/opening/dataviz-landscape-open/DatavizLandscapeOpen.tsx +358 -358
- package/lib/motion/shotcraft/upstream/demos/opening/fracture/Fracture.tsx +201 -201
- package/lib/motion/shotcraft/upstream/demos/opening/icon-field-colorize/IconFieldColorize.tsx +200 -200
- package/lib/motion/shotcraft/upstream/demos/opening/letterspace-materialize/LetterspaceMaterialize.tsx +208 -208
- package/lib/motion/shotcraft/upstream/demos/opening/magician-card-flourish/MagicianCardFlourish.tsx +341 -341
- package/lib/motion/shotcraft/upstream/demos/opening/orbit-ring-title-open/OrbitRingTitleOpen.tsx +389 -389
- package/lib/motion/shotcraft/upstream/demos/opening/spotlight-hero-card/SpotlightHeroCard.tsx +293 -293
- package/lib/motion/shotcraft/upstream/demos/opening/stroke-segment-build/StrokeSegmentBuild.tsx +183 -183
- package/lib/motion/shotcraft/upstream/demos/opening/text-as-mask/TextAsMask.tsx +245 -245
- package/lib/motion/shotcraft/upstream/demos/outro/grain-dissolve/GrainDissolve.tsx +222 -222
- package/lib/motion/shotcraft/upstream/demos/outro/logo-shrink-wordmark-lockup/LogoShrinkWordmarkLockup.tsx +223 -223
- package/lib/motion/shotcraft/upstream/demos/outro/neon-triple-marquee/NeonTripleMarquee.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/outro/outro-group-photo-launch/OutroGroupPhotoLaunch.tsx +343 -343
- package/lib/motion/shotcraft/upstream/demos/outro/ui-strip-away-outro/UiStripAwayOutro.tsx +357 -357
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/IconFlipBloomLogo.tsx +187 -187
- package/lib/motion/shotcraft/upstream/demos/outro/ui-to-brand-morph/InputMorphsIntoLogo.tsx +333 -333
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-cut-moves/PaparazziFlash.tsx +274 -274
- package/lib/motion/shotcraft/upstream/demos/rhythm/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +270 -270
- package/lib/motion/shotcraft/upstream/demos/rhythm/panel-grid-moves/ComicPanelSplit.tsx +430 -430
- package/lib/motion/shotcraft/upstream/demos/rhythm/quad-split-parallel-scenes/QuadSplitParallelScenes.tsx +252 -252
- package/lib/motion/shotcraft/upstream/demos/rhythm/rhythm-interrupt-moves/JumpCutPunchIn.tsx +106 -106
- package/lib/motion/shotcraft/upstream/demos/rhythm/sakuga-timing-shift/SakugaTimingShift.tsx +288 -288
- package/lib/motion/shotcraft/upstream/demos/rhythm/speed-ramp-freeze/FreezeAnnotateReal.tsx +362 -362
- package/lib/motion/shotcraft/upstream/demos/rhythm/trailer-grammar-moves/TrailerBumper.tsx +168 -168
- package/lib/motion/shotcraft/upstream/demos/transition/bottom-push-stack-wipe/BottomPushStackWipe.tsx +310 -310
- package/lib/motion/shotcraft/upstream/demos/transition/card-flip-reveal/CardFlipReveal.tsx +261 -261
- package/lib/motion/shotcraft/upstream/demos/transition/card-flock-tumble/CardFlockTumble.tsx +459 -459
- package/lib/motion/shotcraft/upstream/demos/transition/circle-match-iris/CircleMatchIris.tsx +294 -294
- package/lib/motion/shotcraft/upstream/demos/transition/gradient-transition/GradientTransition.tsx +161 -161
- package/lib/motion/shotcraft/upstream/demos/transition/line-carry-transition/LineCarryTransition.tsx +248 -248
- package/lib/motion/shotcraft/upstream/demos/transition/mosaic-reframe/MosaicReframe.tsx +359 -359
- package/lib/motion/shotcraft/upstream/demos/transition/page-turn-transitions/BarnDoorSplit.tsx +227 -227
- package/lib/motion/shotcraft/upstream/demos/transition/print-texture-transitions/InkBleedReveal.tsx +162 -162
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/PortalWipeV2.tsx +248 -248
- package/lib/motion/shotcraft/upstream/demos/transition/shot-transitions/WhipBrakeReal.tsx +186 -186
- package/lib/motion/shotcraft/upstream/demos/transition/tear-streak-transitions/GlitchDisplace.tsx +355 -355
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/InvisibleCut.tsx +272 -272
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/LightLeakBurn.tsx +262 -262
- package/lib/motion/shotcraft/upstream/demos/transition/transition-hidden-cut/VersusSlam.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/transition/transition-travel/LetterformZoom.tsx +285 -285
- package/lib/motion/shotcraft/upstream/demos/transition/white-flash-logo-simplify-cut/WhiteFlashLogoSimplifyCut.tsx +205 -205
- package/lib/motion/shotcraft/upstream/demos/transition/wipe-transitions/BlindsSlice.tsx +178 -178
- package/lib/motion/shotcraft/upstream/demos/typography/blur-slide/BlurSlide.tsx +147 -147
- package/lib/motion/shotcraft/upstream/demos/typography/brace-expand/BraceExpand.tsx +143 -143
- package/lib/motion/shotcraft/upstream/demos/typography/brand-ink-open/BrandInkOpen.tsx +134 -134
- package/lib/motion/shotcraft/upstream/demos/typography/countdown-arc-scatter/CountdownArcScatter.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/typography/flying-words/FlyingWords.tsx +198 -198
- package/lib/motion/shotcraft/upstream/demos/typography/glitch-cycle/GlitchCycle.tsx +221 -221
- package/lib/motion/shotcraft/upstream/demos/typography/gradient-word-sweep/GradientWordSweep.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/typography/lead-word-zoom-assemble/LeadWordZoomAssemble.tsx +261 -261
- package/lib/motion/shotcraft/upstream/demos/typography/marker-underline-title/MarkerUnderlineTitle.tsx +121 -121
- package/lib/motion/shotcraft/upstream/demos/typography/outline-word-fill/OutlineWordFill.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/typography/paper-title-card/PaperTitleCard.tsx +179 -179
- package/lib/motion/shotcraft/upstream/demos/typography/pill-chip-slot-cycle-handled/PillChipSlotCycleHandled.tsx +140 -140
- package/lib/motion/shotcraft/upstream/demos/typography/pill-slot-cycle/PillSlotCycle.tsx +309 -309
- package/lib/motion/shotcraft/upstream/demos/typography/text-column-converge/TextColumnConverge.tsx +191 -191
- package/lib/motion/shotcraft/upstream/demos/typography/title-demote-to-label/TitleDemoteToLabel.tsx +292 -292
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/LetterformDriftAssembly.tsx +135 -135
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/SplitTextStagger.tsx +124 -124
- package/lib/motion/shotcraft/upstream/demos/typography/type-assembly-moves/TextOnPath.tsx +255 -255
- package/lib/motion/shotcraft/upstream/demos/typography/type-entrance-moves/LetterDropPhysics.tsx +173 -173
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/FontWeightPump.tsx +225 -225
- package/lib/motion/shotcraft/upstream/demos/typography/type-rhythm-sync/KaraokeFillSync.tsx +141 -141
- package/lib/motion/shotcraft/upstream/demos/typography/typewriter-moves/TypewriterErrorRetype.tsx +137 -137
- package/lib/motion/shotcraft/upstream/demos/typography/vertical-word-roll-blur-cycle/VerticalWordRollBlurCycle.tsx +147 -147
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-filmstrip/WordRelayFilmstrip.tsx +409 -409
- package/lib/motion/shotcraft/upstream/demos/typography/word-relay-geometry/WordRelayGeometry.tsx +280 -280
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/avatar-bracket-carousel/AvatarBracketCarousel.tsx +271 -271
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/bezier-source-converge-merge/BezierSourceConvergeMerge.tsx +385 -385
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/card-stack/CardStack.tsx +312 -312
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/carousel-3d/Carousel3D.tsx +303 -303
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/clipcard-looping/ClipCardLooping.tsx +77 -77
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/cloner-depth-echo/ClonerDepthEcho.tsx +311 -311
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/deck-deal-flyin/DeckDealFlyin.tsx +307 -307
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/doc-park-left-pill-deal/DocParkLeftPillDeal.tsx +349 -349
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/document-typewriter-reveal/DocumentTypewriterReveal.tsx +255 -255
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/draw-svg-trace/DrawSvgTrace.tsx +244 -244
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/element-body-moves/ContactShadowLift.tsx +217 -217
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/integration-hub-map/IntegrationHubMap.tsx +652 -652
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-reveal/ListReveal.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/list-stack-press/ListStackPress.tsx +238 -238
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-forerun/NeonFrameForerun.tsx +324 -324
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +354 -354
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/PageWaterfallWall.tsx +101 -101
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/page-waterfall-wall/VerticalTicker.tsx +129 -129
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/product-card-progressive-assemble/ProductCardProgressiveAssemble.tsx +297 -297
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/radial-wave/RadialWave.tsx +57 -57
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/research-card-stack-scroll/ResearchCardStackScroll.tsx +155 -155
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/row-embed/RowEmbed.tsx +175 -175
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/value-stagger-gradient/ValueStaggerGradient.tsx +153 -153
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/BentoLightUp.tsx +146 -146
- package/lib/motion/shotcraft/upstream/demos/ui-entrance/wall-reveal-moves/WireframeDrawOn.tsx +226 -226
- package/lib/motion/shotcraft/upstream/gallery/api/library.json +1 -1
- package/lib/motion/shotcraft/upstream/references/aesthetic-rules.md +193 -193
- package/lib/motion/shotcraft/upstream/references/final-review.md +121 -121
- package/lib/motion/shotcraft/upstream/references/guided-free-creation.md +199 -199
- package/lib/motion/shotcraft/upstream/references/jianying-export.md +183 -183
- package/lib/motion/shotcraft/upstream/references/music-beat-sync.md +257 -257
- package/lib/motion/shotcraft/upstream/references/pipeline.md +382 -382
- package/lib/motion/shotcraft/upstream/references/publish-upload-post.md +111 -111
- package/lib/motion/shotcraft/upstream/references/sequences/promo-energy-arc.md +50 -50
- package/lib/motion/shotcraft/upstream/references/sfx-sourcing.md +95 -95
- package/lib/motion/shotcraft/upstream/references/shots/camera/basic-3d-scene.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/camera/crash-zoom-punch.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/camera/cursor-flyover.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/camera/depth-layer-moves.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/camera/graze-face-tour.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/camera/overhead-camera-moves.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/camera/space-camera-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/camera/steep-tilt-glide.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/camera/tension-camera-moves.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/camera/terminal-3d.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/data/before-after-slider-scrub.md +48 -48
- package/lib/motion/shotcraft/upstream/references/shots/data/chart-live-moves.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/data/gauge-readout-moves.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/data/scroll-brake-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/data/timeline-travel.md +44 -44
- package/lib/motion/shotcraft/upstream/references/shots/effects/assemble-then-type-flyin.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/effects/aurora-bloom-bg-flip.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/effects/brand-frame-snap.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/effects/fui-hud-moves.md +35 -35
- package/lib/motion/shotcraft/upstream/references/shots/effects/glow-flyline-moves.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/icon-performance-moves.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/effects/impact-feedback.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/effects/light-play-moves.md +46 -46
- package/lib/motion/shotcraft/upstream/references/shots/effects/radial-ripple-phone-chips.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/effects/riso-print-hits.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/effects/scan-bracket-sweep.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-annotate-focus.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/scanline-assemble-flyin.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/effects/slam-entrance-moves.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/effects/spotlight-sweep-moves.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/interaction/autolayout-gap-dial.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/interaction/canvas-materialize-moves.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/interaction/chip-grid-single-select-blackout.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/interaction/collab-cursor-moves.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/interaction/glass-pill-dictation-typing.md +53 -53
- package/lib/motion/shotcraft/upstream/references/shots/interaction/hashtag-to-pill-materialize.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/interaction/picker-carousel-feature-cycle.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/interaction/segmented-thumb-hero.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/interaction/theme-switch-moves.md +47 -47
- package/lib/motion/shotcraft/upstream/references/shots/interaction/type-and-filter.md +37 -37
- package/lib/motion/shotcraft/upstream/references/shots/interaction/voice-waveform-live.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/opening/brand-ink-open.md +36 -36
- package/lib/motion/shotcraft/upstream/references/shots/opening/crane-rise-reveal.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/opening/dataviz-landscape-open.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/opening/fracture.md +40 -40
- package/lib/motion/shotcraft/upstream/references/shots/opening/icon-field-colorize.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/opening/letterspace-materialize.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/opening/magician-card-flourish.md +73 -73
- package/lib/motion/shotcraft/upstream/references/shots/opening/orbit-ring-title-open.md +87 -87
- package/lib/motion/shotcraft/upstream/references/shots/opening/spotlight-hero-card.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/opening/stroke-segment-build.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/opening/text-as-mask.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/outro/grain-dissolve.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/outro/logo-shrink-wordmark-lockup.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/outro/neon-triple-marquee.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/outro/outro-group-photo-launch.md +39 -39
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-strip-away-outro.md +61 -61
- package/lib/motion/shotcraft/upstream/references/shots/outro/ui-to-brand-morph.md +52 -52
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-cut-moves.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/beat-step-list-theme-cycle.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/panel-grid-moves.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/quad-split-parallel-scenes.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/rhythm-interrupt-moves.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/sakuga-timing-shift.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/speed-ramp-freeze.md +44 -44
- package/lib/motion/shotcraft/upstream/references/shots/rhythm/trailer-grammar-moves.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/transition/bottom-push-stack-wipe.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flip-reveal.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/transition/card-flock-tumble.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/transition/circle-match-iris.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/transition/gradient-transition.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/transition/line-carry-transition.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/transition/mosaic-reframe.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/transition/page-turn-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/transition/print-texture-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/transition/shot-transitions.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/transition/tear-streak-transitions.md +48 -48
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-hidden-cut.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/transition/transition-travel.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/transition/white-flash-logo-simplify-cut.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/transition/wipe-transitions.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/blur-slide.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/typography/brace-expand.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/typography/countdown-arc-scatter.md +65 -65
- package/lib/motion/shotcraft/upstream/references/shots/typography/document-typewriter-reveal.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/flying-words.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/glitch-cycle.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/gradient-word-sweep.md +54 -54
- package/lib/motion/shotcraft/upstream/references/shots/typography/lead-word-zoom-assemble.md +91 -91
- package/lib/motion/shotcraft/upstream/references/shots/typography/marker-underline-title.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/typography/outline-word-fill.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/typography/paper-title-card.md +38 -38
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-chip-slot-cycle-handled.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/typography/pill-slot-cycle.md +58 -58
- package/lib/motion/shotcraft/upstream/references/shots/typography/text-column-converge.md +61 -61
- package/lib/motion/shotcraft/upstream/references/shots/typography/title-demote-to-label.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-assembly-moves.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-entrance-moves.md +41 -41
- package/lib/motion/shotcraft/upstream/references/shots/typography/type-rhythm-sync.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/typography/typewriter-moves.md +42 -42
- package/lib/motion/shotcraft/upstream/references/shots/typography/vertical-word-roll-blur-cycle.md +63 -63
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-filmstrip.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/typography/word-relay-geometry.md +75 -75
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/avatar-bracket-carousel.md +59 -59
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/bezier-source-converge-merge.md +67 -67
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/card-stack.md +60 -60
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/carousel-3d.md +66 -66
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/cloner-depth-echo.md +40 -40
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/deck-deal-flyin.md +45 -45
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/doc-park-left-pill-deal.md +62 -62
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/draw-svg-trace.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/element-body-moves.md +37 -37
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/integration-hub-map.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-reveal.md +50 -50
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/list-stack-press.md +43 -43
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-forerun.md +55 -55
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/neon-frame-orbit-drop.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/page-waterfall-wall.md +51 -51
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/product-card-progressive-assemble.md +56 -56
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/radial-wave.md +49 -49
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/research-card-stack-scroll.md +57 -57
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/row-embed.md +36 -36
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/value-stagger-gradient.md +64 -64
- package/lib/motion/shotcraft/upstream/references/shots/ui-entrance/wall-reveal-moves.md +47 -47
- package/lib/motion/shotcraft/upstream/references/sound-design.md +170 -170
- package/lib/motion/shotcraft/upstream/references/workbench.md +157 -157
- package/lib/motion/shotcraft/upstream/template/TEMPLATE.md +103 -103
- package/lib/motion/shotcraft/upstream/template/THEMES.md +44 -44
- package/lib/motion/shotcraft/upstream/template/package.json +20 -20
- package/lib/motion/shotcraft/upstream/template/remotion.config.ts +6 -6
- package/lib/motion/shotcraft/upstream/template/src/Root.tsx +17 -17
- package/lib/motion/shotcraft/upstream/template/src/aifl/Caption.tsx +65 -65
- package/lib/motion/shotcraft/upstream/template/src/aifl/DigitRoll.tsx +48 -48
- package/lib/motion/shotcraft/upstream/template/src/aifl/FlashCut.tsx +24 -24
- package/lib/motion/shotcraft/upstream/template/src/aifl/Main.tsx +192 -192
- package/lib/motion/shotcraft/upstream/template/src/aifl/PaperTitleCard.tsx +111 -111
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/PageCam.tsx +150 -150
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneDetail.tsx +158 -158
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneFlyIn.tsx +468 -468
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOpen.tsx +552 -552
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneOutroLive.tsx +411 -411
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/ScenePapers.tsx +200 -200
- package/lib/motion/shotcraft/upstream/template/src/aifl/live/SceneWbr.tsx +324 -324
- package/lib/motion/shotcraft/upstream/template/src/aifl/live-layout.json +388 -388
- package/lib/motion/shotcraft/upstream/template/src/index.ts +4 -4
- package/lib/motion/shotcraft/upstream/template/src/themes/ThemedFilm.tsx +7 -7
- package/lib/motion/shotcraft/upstream/template/src/themes/manifest.tsx +68 -68
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.json +1 -1
- package/lib/motion/shotcraft/upstream/template/src/themes/palette-assets.ts +24 -24
- package/lib/motion/shotcraft/upstream/template/src/themes/palettes.json +74 -74
- package/lib/motion/shotcraft/upstream/template/src/themes/visual-theme.tsx +91 -91
- package/lib/motion/shotcraft/upstream/template/src/workbench.ts +213 -213
- package/lib/motion/shotcraft/upstream/template/tsconfig.json +15 -15
- package/lib/motion/style-frames.js +306 -306
- package/lib/motion/sync.js +214 -214
- package/lib/motion-library.js +1 -1
- package/lib/motion-project.js +105 -105
- package/lib/motion-render-worker.js +174 -174
- package/lib/routing/router.js +222 -222
- package/lib/routing/vendor/README.md +96 -96
- package/lib/routing/vendor/libavoid-routing.js +753 -753
- package/lib/routing/vendor/libavoid.min.js +59 -59
- package/lib/svg-export.js +1344 -0
- package/lib/video-trace-pool.js +128 -128
- package/package.json +3 -2
- package/LICENSE +0 -4175
|
@@ -1,261 +1,261 @@
|
|
|
1
|
-
// 功能卡 3D 翻面揭示(card-flip-reveal)——Apple bento 翻转段。
|
|
2
|
-
// 手法不变:一排功能卡逐张错峰沿 Y 轴翻 180°(perspective + 双面 backface hidden),正面是功能界面,
|
|
3
|
-
// 背面是它带来的大号结论数字(语义成对);翻转末端过冲再回落,侧棱最薄处有一道随角度走的受光。
|
|
4
|
-
//
|
|
5
|
-
// 第二轮重设计(设计决定)
|
|
6
|
-
// - look = graphite(近单色暗场,白为强调、香槟金点缀)。正面是暗色功能卡,背面是亮瓷白结论卡:
|
|
7
|
-
// 翻面 = 从暗到亮的反相,"所以呢?"的答案被打亮,三张翻完画面从一排暗卡变成一排白色数字海报。
|
|
8
|
-
// - 内容:video-shotcraft 的三项能力——Prompt(一句话写片)/ Recipes(镜头配方)/ Library(配方库搜索),
|
|
9
|
-
// 正面画成为镜头设计的大字 UI(≥ 28px),背面 158px 数字 3.2× / −41% / 0.2s + 34px 结论,上方一组「之前 / 用上之后」对照条在落定后收短。
|
|
10
|
-
// - 卡片竖版 480×620(bento 比例),三卡 1536px 宽占画宽 80%;左上 84px 标题 + 金色眉题;
|
|
11
|
-
// 卡片立在一面暗色镜面地板上——每张卡在地板里有一份同步翻转的倒影(遮罩渐隐),空间一下就成立了。
|
|
12
|
-
// - 翻转动作:4f 预备(反向后仰 −10°)→ 16f 加速翻到 194°(bezier 0.55,0,0.3,1)→ 物理弹簧落回 180°;
|
|
13
|
-
// 翻转中卡片离地抬起(scale +6%)、面随偏离主光的角度变暗(|cos θ| 着色),侧棱 60–120° 有一道
|
|
14
|
-
// 随角度从左扫到右的窄受光(物理光照,不是额外的扫光特效)。背面数字在落定时由 1.08 收到 1,标签晚 4f。
|
|
15
|
-
//
|
|
16
|
-
// 时间表(30fps,150f)
|
|
17
|
-
// 0–16 暗卡一排已在画面,眉题 + 标题逐行升起,相机全程 1 → 1.03 极缓推近
|
|
18
|
-
// 22–48 卡 0:22 预备 → 26–42 翻转 → 42–52 弹簧落定,数字收拢、标签升起
|
|
19
|
-
// 34–60 卡 1(错峰 12f)
|
|
20
|
-
// 46–72 卡 2
|
|
21
|
-
// 72–150 全部落定后 hold ~78f(R1),尾帧是三张白色结论卡的海报
|
|
22
|
-
import React from 'react';
|
|
23
|
-
import { AbsoluteFill, useCurrentFrame } from 'remotion';
|
|
24
|
-
import { EASE, FONT, bezier, mix, ramp } from '../../_fixtures/Polish';
|
|
25
|
-
import { LOOKS, Stage, TextReveal, alpha, springAt, type } from '../../_fixtures/Look';
|
|
26
|
-
import { BRAND } from '../../_fixtures/Brand';
|
|
27
|
-
|
|
28
|
-
export const CARD_FLIP_REVEAL_DURATION = 150;
|
|
29
|
-
|
|
30
|
-
const L = LOOKS.graphite;
|
|
31
|
-
const GOLD = L.accent2;
|
|
32
|
-
const CW = 480;
|
|
33
|
-
const CH = 620;
|
|
34
|
-
const GAP = 48;
|
|
35
|
-
const X0 = (1920 - (CW * 3 + GAP * 2)) / 2; // 192
|
|
36
|
-
const Y = 330;
|
|
37
|
-
const FLIP0 = 22;
|
|
38
|
-
const STAGGER = 12;
|
|
39
|
-
const PRE = 4; // 预备帧
|
|
40
|
-
const FLIP = 16; // 翻转帧
|
|
41
|
-
const PEAK_DEG = 194;
|
|
42
|
-
|
|
43
|
-
const flipEase = bezier(0.55, 0, 0.3, 1);
|
|
44
|
-
|
|
45
|
-
// 卡 i 在帧 f 的翻转角:0 → −10(预备)→ 194(加速翻转)→ 180(弹簧落定)
|
|
46
|
-
const angleAt = (f: number, i: number) => {
|
|
47
|
-
const s = FLIP0 + i * STAGGER;
|
|
48
|
-
if (f < s + PRE) return -10 * ramp(f, s, PRE, EASE.out);
|
|
49
|
-
if (f < s + PRE + FLIP) return mix(-10, PEAK_DEG, ramp(f, s + PRE, FLIP, flipEase));
|
|
50
|
-
return PEAK_DEG - (PEAK_DEG - 180) * springAt(f, s + PRE + FLIP, { damping: 15, stiffness: 190 });
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const FEATURES = [
|
|
54
|
-
{ name: 'Prompt', desc: 'One line in, a whole film out.', value: '3.2×', label: 'faster first cut', bars: [1, 0.31], unit: ['48 min', '15 min'] },
|
|
55
|
-
{ name: 'Recipes', desc: 'Camera moves, pre-tuned.', value: '−41%', label: 'time spent keyframing', bars: [1, 0.59], unit: ['6.1 h', '3.6 h'] },
|
|
56
|
-
{ name: 'Library', desc: 'Every shot, one search away.', value: '0.2s', label: 'to find the right move', bars: [1, 0.06], unit: ['3.4 s', '0.2 s'] },
|
|
57
|
-
];
|
|
58
|
-
|
|
59
|
-
// ───────────── 正面 UI(暗色、大字) ─────────────
|
|
60
|
-
const FrontUI: React.FC<{ i: number; frame: number }> = ({ i, frame }) => {
|
|
61
|
-
const ink = L.ink, ink2 = L.ink2, ink3 = L.ink3;
|
|
62
|
-
if (i === 0) {
|
|
63
|
-
const caret = Math.floor(frame / 9) % 2 === 0;
|
|
64
|
-
return (
|
|
65
|
-
<div style={{ fontSize: 30, lineHeight: 1.42, color: ink2, fontWeight: 450 }}>
|
|
66
|
-
<div style={{ color: ink }}>Make a 30s launch film,</div>
|
|
67
|
-
<div style={{ color: ink }}>
|
|
68
|
-
open on a crash zoom<span style={{ display: 'inline-block', width: 3, height: 34, verticalAlign: -6, background: caret ? GOLD : 'transparent', marginLeft: 2 }} />
|
|
69
|
-
<span style={{ color: alpha(ink, 0.32) }}> and</span>
|
|
70
|
-
</div>
|
|
71
|
-
<div style={{ color: alpha(ink, 0.32) }}>end on the logo sting.</div>
|
|
72
|
-
<div style={{ display: 'flex', alignItems: 'center', gap: 12, marginTop: 26 }}>
|
|
73
|
-
<div style={{ height: 40, padding: '0 14px', borderRadius: 10, boxShadow: `inset 0 0 0 2px ${alpha(ink, 0.22)}`, display: 'flex', alignItems: 'center', fontFamily: FONT.mono, fontSize: 22, fontWeight: 600, color: ink }}>Tab</div>
|
|
74
|
-
<div style={{ fontSize: 24, color: ink3 }}>to accept</div>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
if (i === 1) {
|
|
80
|
-
return (
|
|
81
|
-
<div>
|
|
82
|
-
<div style={{ display: 'flex', alignItems: 'center' }}>
|
|
83
|
-
{['#8a8f99', '#c9b48a', '#6f7480', '#a8acb4'].map((c, k) => (
|
|
84
|
-
<div key={k} style={{ width: 48, height: 48, borderRadius: 24, background: c, marginLeft: k ? -12 : 0, boxShadow: `0 0 0 3px ${L.surface}` }} />
|
|
85
|
-
))}
|
|
86
|
-
<div style={{ marginLeft: 16, fontSize: 24, color: ink3 }}>Recipe · crash zoom</div>
|
|
87
|
-
</div>
|
|
88
|
-
{['Push 1 → 1.6 in 6f', 'Blur rides the snap', 'Land on the downbeat'].map((t, k) => (
|
|
89
|
-
<div key={k} style={{ display: 'flex', alignItems: 'center', gap: 14, marginTop: k ? 18 : 30 }}>
|
|
90
|
-
<div style={{ width: 8, height: 8, borderRadius: 4, background: k === 0 ? GOLD : alpha(ink, 0.4) }} />
|
|
91
|
-
<div style={{ fontSize: 30, color: ink, fontWeight: 500 }}>{t}</div>
|
|
92
|
-
</div>
|
|
93
|
-
))}
|
|
94
|
-
</div>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
return (
|
|
98
|
-
<div>
|
|
99
|
-
<div style={{ height: 70, borderRadius: 18, background: L.surface2, boxShadow: `inset 0 0 0 1.5px ${alpha(ink, 0.12)}`, display: 'flex', alignItems: 'center', gap: 14, padding: '0 22px' }}>
|
|
100
|
-
<svg width={26} height={26} viewBox="0 0 26 26"><circle cx={11} cy={11} r={8} fill="none" stroke={ink2} strokeWidth={2.6} /><path d="M17 17l6 6" stroke={ink2} strokeWidth={2.6} strokeLinecap="round" /></svg>
|
|
101
|
-
<div style={{ fontSize: 30, color: ink, fontWeight: 500 }}>crash zoom</div>
|
|
102
|
-
</div>
|
|
103
|
-
{[['Crash zoom punch', 'Card'], ['Zoom-through', 'Card'], ['Dolly zoom', 'Style']].map(([t, k2], k) => (
|
|
104
|
-
<div key={k} style={{ display: 'flex', alignItems: 'center', gap: 16, marginTop: k ? 14 : 26, padding: '0 6px' }}>
|
|
105
|
-
<div style={{ width: 36, height: 44, borderRadius: 7, background: alpha(ink, k === 0 ? 0.9 : 0.16) }} />
|
|
106
|
-
<div style={{ fontSize: 28, color: k === 0 ? ink : ink2, fontWeight: k === 0 ? 650 : 450 }}>{t}</div>
|
|
107
|
-
<div style={{ marginLeft: 'auto', fontSize: 22, color: ink3 }}>{k2}</div>
|
|
108
|
-
</div>
|
|
109
|
-
))}
|
|
110
|
-
</div>
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
// 受光着色:面偏离正面越多越暗;60–120° 区间一道随角度从左扫到右的窄受光(只在侧棱最薄附近)
|
|
115
|
-
const FaceLight: React.FC<{ angle: number; dark: boolean }> = ({ angle, dark }) => {
|
|
116
|
-
const c = Math.abs(Math.cos((angle * Math.PI) / 180));
|
|
117
|
-
const shade = (1 - c) * (dark ? 0.55 : 0.4);
|
|
118
|
-
const band = Math.max(0, 1 - Math.abs(angle - 90) / 34);
|
|
119
|
-
const pos = mix(-20, 120, Math.min(1, Math.max(0, (angle - 56) / 68)));
|
|
120
|
-
return (
|
|
121
|
-
<>
|
|
122
|
-
<div style={{ position: 'absolute', inset: 0, background: '#000', opacity: shade }} />
|
|
123
|
-
{band > 0.01 && (
|
|
124
|
-
<div style={{
|
|
125
|
-
position: 'absolute', inset: 0, opacity: band * (dark ? 0.5 : 0.35),
|
|
126
|
-
background: `linear-gradient(100deg, rgba(255,255,255,0) ${pos - 12}%, rgba(255,255,255,0.9) ${pos}%, rgba(255,255,255,0) ${pos + 12}%)`,
|
|
127
|
-
}} />
|
|
128
|
-
)}
|
|
129
|
-
</>
|
|
130
|
-
);
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
const FlipCard: React.FC<{ i: number; frame: number }> = ({ i, frame }) => {
|
|
134
|
-
const angle = angleAt(frame, i);
|
|
135
|
-
const f = FEATURES[i];
|
|
136
|
-
const s = FLIP0 + i * STAGGER;
|
|
137
|
-
const lift = Math.max(0, Math.sin((Math.min(180, Math.max(0, angle)) * Math.PI) / 180));
|
|
138
|
-
const land = s + PRE + FLIP;
|
|
139
|
-
const num = springAt(frame, land - 2, { damping: 18, stiffness: 160 });
|
|
140
|
-
const lab = ramp(frame, land + 2, 14, EASE.snappy);
|
|
141
|
-
return (
|
|
142
|
-
<div style={{ position: 'absolute', inset: 0, perspective: 1600 }}>
|
|
143
|
-
<div style={{
|
|
144
|
-
position: 'absolute', inset: 0, transformStyle: 'preserve-3d',
|
|
145
|
-
transform: `translateZ(${(lift * 60).toFixed(2)}px) rotateY(${angle.toFixed(3)}deg)`,
|
|
146
|
-
}}>
|
|
147
|
-
{/* 正面:暗色功能卡 */}
|
|
148
|
-
<div style={{
|
|
149
|
-
position: 'absolute', inset: 0, backfaceVisibility: 'hidden', borderRadius: 34, overflow: 'hidden',
|
|
150
|
-
background: `linear-gradient(180deg, #1d1e22 0%, ${L.surface} 48%, #111214 100%)`,
|
|
151
|
-
boxShadow: `inset 0 0 0 1.5px ${alpha('#ffffff', 0.09)}, inset 0 2px 0 ${alpha('#ffffff', 0.08)}`,
|
|
152
|
-
fontFamily: FONT.sans,
|
|
153
|
-
}}>
|
|
154
|
-
<div style={{ position: 'absolute', left: 40, top: 40, display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
155
|
-
<div style={{ fontFamily: FONT.mono, fontSize: 22, fontWeight: 600, color: L.ink3 }}>0{i + 1}</div>
|
|
156
|
-
<div style={{ ...type(22, 700, { caps: true }), color: L.ink2, letterSpacing: '0.16em' }}>Feature</div>
|
|
157
|
-
</div>
|
|
158
|
-
<div style={{ position: 'absolute', left: 40, right: 40, top: 112 }}>
|
|
159
|
-
<FrontUI i={i} frame={frame} />
|
|
160
|
-
</div>
|
|
161
|
-
<div style={{ position: 'absolute', left: 40, right: 40, bottom: 40 }}>
|
|
162
|
-
<div style={{ ...type(52, 750), color: L.ink }}>{f.name}</div>
|
|
163
|
-
<div style={{ ...type(28, 450), color: L.ink2, marginTop: 10 }}>{f.desc}</div>
|
|
164
|
-
</div>
|
|
165
|
-
<FaceLight angle={angle} dark />
|
|
166
|
-
</div>
|
|
167
|
-
{/* 背面:瓷白结论卡 */}
|
|
168
|
-
<div style={{
|
|
169
|
-
position: 'absolute', inset: 0, backfaceVisibility: 'hidden', transform: 'rotateY(180deg)', borderRadius: 34, overflow: 'hidden',
|
|
170
|
-
background: 'linear-gradient(180deg, #fbfaf7 0%, #f1f0ec 100%)',
|
|
171
|
-
boxShadow: `inset 0 0 0 1.5px rgba(0,0,0,0.06), inset 0 2px 0 rgba(255,255,255,0.9)`,
|
|
172
|
-
fontFamily: FONT.sans, color: '#0d0d0f',
|
|
173
|
-
}}>
|
|
174
|
-
<div style={{ position: 'absolute', left: 40, top: 40, display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
175
|
-
<div style={{ width: 12, height: 12, borderRadius: 6, background: '#b8925a' }} />
|
|
176
|
-
<div style={{ ...type(22, 700, { caps: true }), color: '#6b6a66', letterSpacing: '0.16em' }}>{f.name}</div>
|
|
177
|
-
</div>
|
|
178
|
-
{/* 对照条:之前 / 用上之后(落定后才长出来) */}
|
|
179
|
-
<div style={{ position: 'absolute', left: 40, right: 40, top: 112 }}>
|
|
180
|
-
{(['Before', `With ${BRAND.short}`] as const).map((t, k) => {
|
|
181
|
-
const g = k === 0 ? 1 : ramp(frame, land + 4, 18, EASE.snappy);
|
|
182
|
-
const w = k === 0 ? f.bars[0] : mix(f.bars[0], f.bars[1], g);
|
|
183
|
-
return (
|
|
184
|
-
<div key={t} style={{ marginTop: k ? 26 : 0 }}>
|
|
185
|
-
<div style={{ display: 'flex', alignItems: 'baseline' }}>
|
|
186
|
-
<div style={{ ...type(22, 700, { caps: true }), color: k ? '#0d0d0f' : '#8a8984', letterSpacing: '0.14em' }}>{t}</div>
|
|
187
|
-
<div style={{ marginLeft: 'auto', fontFamily: FONT.mono, fontSize: 24, fontWeight: 600, color: k ? '#0d0d0f' : '#8a8984', opacity: k ? lab : 1 }}>{f.unit[k]}</div>
|
|
188
|
-
</div>
|
|
189
|
-
<div style={{ height: 16, borderRadius: 8, marginTop: 10, background: 'rgba(0,0,0,0.06)', overflow: 'hidden' }}>
|
|
190
|
-
<div style={{ width: `${(w * 100).toFixed(2)}%`, height: '100%', borderRadius: 8, background: k ? '#0d0d0f' : 'rgba(0,0,0,0.18)' }} />
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
);
|
|
194
|
-
})}
|
|
195
|
-
</div>
|
|
196
|
-
<div style={{ position: 'absolute', left: 36, right: 30, bottom: 128 }}>
|
|
197
|
-
<div style={{
|
|
198
|
-
...type(158, 800), letterSpacing: '-0.06em', lineHeight: 0.9, color: '#0d0d0f', whiteSpace: 'nowrap',
|
|
199
|
-
transform: `scale(${mix(1.08, 1, num).toFixed(4)})`, transformOrigin: 'left bottom',
|
|
200
|
-
}}>{f.value}</div>
|
|
201
|
-
</div>
|
|
202
|
-
<div style={{
|
|
203
|
-
position: 'absolute', left: 40, right: 40, bottom: 48, ...type(34, 550), color: '#3d3c39',
|
|
204
|
-
opacity: lab, transform: `translateY(${((1 - lab) * 14).toFixed(2)}px)`,
|
|
205
|
-
}}>{f.label}</div>
|
|
206
|
-
<FaceLight angle={180 - angle} dark={false} />
|
|
207
|
-
</div>
|
|
208
|
-
</div>
|
|
209
|
-
</div>
|
|
210
|
-
);
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
export const CardFlipReveal: React.FC = () => {
|
|
214
|
-
const frame = useCurrentFrame();
|
|
215
|
-
const push = 1 + 0.03 * ramp(frame, 0, 150, EASE.smooth);
|
|
216
|
-
return (
|
|
217
|
-
<AbsoluteFill style={{ overflow: 'hidden' }}>
|
|
218
|
-
<Stage look={L} keyLight={{ x: 0.5, y: -0.05 }} fill={{ x: 0.5, y: 1.1 }} horizon={0.88} intensity={0.9}>
|
|
219
|
-
{/* 镜面地板:地平线以下略亮的反射面 */}
|
|
220
|
-
<div style={{
|
|
221
|
-
position: 'absolute', left: 0, right: 0, top: Y + CH, bottom: 0,
|
|
222
|
-
background: `linear-gradient(180deg, ${alpha('#ffffff', 0.035)} 0%, ${alpha('#ffffff', 0)} 60%)`,
|
|
223
|
-
borderTop: `1px solid ${alpha('#ffffff', 0.06)}`,
|
|
224
|
-
}} />
|
|
225
|
-
</Stage>
|
|
226
|
-
<AbsoluteFill style={{ transform: `scale(${push.toFixed(4)})`, transformOrigin: '50% 60%' }}>
|
|
227
|
-
{/* 标题 */}
|
|
228
|
-
<div style={{ position: 'absolute', left: X0, top: 118, fontFamily: FONT.sans }}>
|
|
229
|
-
<div style={{ ...type(26, 700, { caps: true }), color: GOLD, letterSpacing: '0.18em' }}>
|
|
230
|
-
<TextReveal text={`${BRAND.name} · Launch results`} by="word" variant="blur" start={0} each={14} gap={2} />
|
|
231
|
-
</div>
|
|
232
|
-
<div style={{ ...type(84, 760), color: L.ink, marginTop: 18 }}>
|
|
233
|
-
<TextReveal text="Three features. Three outcomes." by="word" variant="rise" start={2} each={18} gap={2.5} />
|
|
234
|
-
</div>
|
|
235
|
-
</div>
|
|
236
|
-
{[0, 1, 2].map((i) => (
|
|
237
|
-
<React.Fragment key={i}>
|
|
238
|
-
{/* 倒影:同一张卡竖直镜像,遮罩渐隐 */}
|
|
239
|
-
<div style={{
|
|
240
|
-
position: 'absolute', left: X0 + i * (CW + GAP), top: Y + CH + 6, width: CW, height: CH,
|
|
241
|
-
transform: 'scaleY(-1)', transformOrigin: 'center', opacity: 0.22,
|
|
242
|
-
WebkitMaskImage: 'linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 26%)',
|
|
243
|
-
maskImage: 'linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 26%)',
|
|
244
|
-
}}>
|
|
245
|
-
<FlipCard i={i} frame={frame} />
|
|
246
|
-
</div>
|
|
247
|
-
{/* 接地影 */}
|
|
248
|
-
<div style={{
|
|
249
|
-
position: 'absolute', left: X0 + i * (CW + GAP) + 30, width: CW - 60, top: Y + CH - 18, height: 36, borderRadius: '50%',
|
|
250
|
-
background: 'radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,0.7), rgba(0,0,0,0) 70%)',
|
|
251
|
-
transform: `scaleX(${Math.max(0.12, Math.abs(Math.cos((angleAt(frame, i) * Math.PI) / 180))).toFixed(3)})`,
|
|
252
|
-
}} />
|
|
253
|
-
<div style={{ position: 'absolute', left: X0 + i * (CW + GAP), top: Y, width: CW, height: CH }}>
|
|
254
|
-
<FlipCard i={i} frame={frame} />
|
|
255
|
-
</div>
|
|
256
|
-
</React.Fragment>
|
|
257
|
-
))}
|
|
258
|
-
</AbsoluteFill>
|
|
259
|
-
</AbsoluteFill>
|
|
260
|
-
);
|
|
261
|
-
};
|
|
1
|
+
// 功能卡 3D 翻面揭示(card-flip-reveal)——Apple bento 翻转段。
|
|
2
|
+
// 手法不变:一排功能卡逐张错峰沿 Y 轴翻 180°(perspective + 双面 backface hidden),正面是功能界面,
|
|
3
|
+
// 背面是它带来的大号结论数字(语义成对);翻转末端过冲再回落,侧棱最薄处有一道随角度走的受光。
|
|
4
|
+
//
|
|
5
|
+
// 第二轮重设计(设计决定)
|
|
6
|
+
// - look = graphite(近单色暗场,白为强调、香槟金点缀)。正面是暗色功能卡,背面是亮瓷白结论卡:
|
|
7
|
+
// 翻面 = 从暗到亮的反相,"所以呢?"的答案被打亮,三张翻完画面从一排暗卡变成一排白色数字海报。
|
|
8
|
+
// - 内容:video-shotcraft 的三项能力——Prompt(一句话写片)/ Recipes(镜头配方)/ Library(配方库搜索),
|
|
9
|
+
// 正面画成为镜头设计的大字 UI(≥ 28px),背面 158px 数字 3.2× / −41% / 0.2s + 34px 结论,上方一组「之前 / 用上之后」对照条在落定后收短。
|
|
10
|
+
// - 卡片竖版 480×620(bento 比例),三卡 1536px 宽占画宽 80%;左上 84px 标题 + 金色眉题;
|
|
11
|
+
// 卡片立在一面暗色镜面地板上——每张卡在地板里有一份同步翻转的倒影(遮罩渐隐),空间一下就成立了。
|
|
12
|
+
// - 翻转动作:4f 预备(反向后仰 −10°)→ 16f 加速翻到 194°(bezier 0.55,0,0.3,1)→ 物理弹簧落回 180°;
|
|
13
|
+
// 翻转中卡片离地抬起(scale +6%)、面随偏离主光的角度变暗(|cos θ| 着色),侧棱 60–120° 有一道
|
|
14
|
+
// 随角度从左扫到右的窄受光(物理光照,不是额外的扫光特效)。背面数字在落定时由 1.08 收到 1,标签晚 4f。
|
|
15
|
+
//
|
|
16
|
+
// 时间表(30fps,150f)
|
|
17
|
+
// 0–16 暗卡一排已在画面,眉题 + 标题逐行升起,相机全程 1 → 1.03 极缓推近
|
|
18
|
+
// 22–48 卡 0:22 预备 → 26–42 翻转 → 42–52 弹簧落定,数字收拢、标签升起
|
|
19
|
+
// 34–60 卡 1(错峰 12f)
|
|
20
|
+
// 46–72 卡 2
|
|
21
|
+
// 72–150 全部落定后 hold ~78f(R1),尾帧是三张白色结论卡的海报
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { AbsoluteFill, useCurrentFrame } from 'remotion';
|
|
24
|
+
import { EASE, FONT, bezier, mix, ramp } from '../../_fixtures/Polish';
|
|
25
|
+
import { LOOKS, Stage, TextReveal, alpha, springAt, type } from '../../_fixtures/Look';
|
|
26
|
+
import { BRAND } from '../../_fixtures/Brand';
|
|
27
|
+
|
|
28
|
+
export const CARD_FLIP_REVEAL_DURATION = 150;
|
|
29
|
+
|
|
30
|
+
const L = LOOKS.graphite;
|
|
31
|
+
const GOLD = L.accent2;
|
|
32
|
+
const CW = 480;
|
|
33
|
+
const CH = 620;
|
|
34
|
+
const GAP = 48;
|
|
35
|
+
const X0 = (1920 - (CW * 3 + GAP * 2)) / 2; // 192
|
|
36
|
+
const Y = 330;
|
|
37
|
+
const FLIP0 = 22;
|
|
38
|
+
const STAGGER = 12;
|
|
39
|
+
const PRE = 4; // 预备帧
|
|
40
|
+
const FLIP = 16; // 翻转帧
|
|
41
|
+
const PEAK_DEG = 194;
|
|
42
|
+
|
|
43
|
+
const flipEase = bezier(0.55, 0, 0.3, 1);
|
|
44
|
+
|
|
45
|
+
// 卡 i 在帧 f 的翻转角:0 → −10(预备)→ 194(加速翻转)→ 180(弹簧落定)
|
|
46
|
+
const angleAt = (f: number, i: number) => {
|
|
47
|
+
const s = FLIP0 + i * STAGGER;
|
|
48
|
+
if (f < s + PRE) return -10 * ramp(f, s, PRE, EASE.out);
|
|
49
|
+
if (f < s + PRE + FLIP) return mix(-10, PEAK_DEG, ramp(f, s + PRE, FLIP, flipEase));
|
|
50
|
+
return PEAK_DEG - (PEAK_DEG - 180) * springAt(f, s + PRE + FLIP, { damping: 15, stiffness: 190 });
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const FEATURES = [
|
|
54
|
+
{ name: 'Prompt', desc: 'One line in, a whole film out.', value: '3.2×', label: 'faster first cut', bars: [1, 0.31], unit: ['48 min', '15 min'] },
|
|
55
|
+
{ name: 'Recipes', desc: 'Camera moves, pre-tuned.', value: '−41%', label: 'time spent keyframing', bars: [1, 0.59], unit: ['6.1 h', '3.6 h'] },
|
|
56
|
+
{ name: 'Library', desc: 'Every shot, one search away.', value: '0.2s', label: 'to find the right move', bars: [1, 0.06], unit: ['3.4 s', '0.2 s'] },
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
// ───────────── 正面 UI(暗色、大字) ─────────────
|
|
60
|
+
const FrontUI: React.FC<{ i: number; frame: number }> = ({ i, frame }) => {
|
|
61
|
+
const ink = L.ink, ink2 = L.ink2, ink3 = L.ink3;
|
|
62
|
+
if (i === 0) {
|
|
63
|
+
const caret = Math.floor(frame / 9) % 2 === 0;
|
|
64
|
+
return (
|
|
65
|
+
<div style={{ fontSize: 30, lineHeight: 1.42, color: ink2, fontWeight: 450 }}>
|
|
66
|
+
<div style={{ color: ink }}>Make a 30s launch film,</div>
|
|
67
|
+
<div style={{ color: ink }}>
|
|
68
|
+
open on a crash zoom<span style={{ display: 'inline-block', width: 3, height: 34, verticalAlign: -6, background: caret ? GOLD : 'transparent', marginLeft: 2 }} />
|
|
69
|
+
<span style={{ color: alpha(ink, 0.32) }}> and</span>
|
|
70
|
+
</div>
|
|
71
|
+
<div style={{ color: alpha(ink, 0.32) }}>end on the logo sting.</div>
|
|
72
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 12, marginTop: 26 }}>
|
|
73
|
+
<div style={{ height: 40, padding: '0 14px', borderRadius: 10, boxShadow: `inset 0 0 0 2px ${alpha(ink, 0.22)}`, display: 'flex', alignItems: 'center', fontFamily: FONT.mono, fontSize: 22, fontWeight: 600, color: ink }}>Tab</div>
|
|
74
|
+
<div style={{ fontSize: 24, color: ink3 }}>to accept</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
if (i === 1) {
|
|
80
|
+
return (
|
|
81
|
+
<div>
|
|
82
|
+
<div style={{ display: 'flex', alignItems: 'center' }}>
|
|
83
|
+
{['#8a8f99', '#c9b48a', '#6f7480', '#a8acb4'].map((c, k) => (
|
|
84
|
+
<div key={k} style={{ width: 48, height: 48, borderRadius: 24, background: c, marginLeft: k ? -12 : 0, boxShadow: `0 0 0 3px ${L.surface}` }} />
|
|
85
|
+
))}
|
|
86
|
+
<div style={{ marginLeft: 16, fontSize: 24, color: ink3 }}>Recipe · crash zoom</div>
|
|
87
|
+
</div>
|
|
88
|
+
{['Push 1 → 1.6 in 6f', 'Blur rides the snap', 'Land on the downbeat'].map((t, k) => (
|
|
89
|
+
<div key={k} style={{ display: 'flex', alignItems: 'center', gap: 14, marginTop: k ? 18 : 30 }}>
|
|
90
|
+
<div style={{ width: 8, height: 8, borderRadius: 4, background: k === 0 ? GOLD : alpha(ink, 0.4) }} />
|
|
91
|
+
<div style={{ fontSize: 30, color: ink, fontWeight: 500 }}>{t}</div>
|
|
92
|
+
</div>
|
|
93
|
+
))}
|
|
94
|
+
</div>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
return (
|
|
98
|
+
<div>
|
|
99
|
+
<div style={{ height: 70, borderRadius: 18, background: L.surface2, boxShadow: `inset 0 0 0 1.5px ${alpha(ink, 0.12)}`, display: 'flex', alignItems: 'center', gap: 14, padding: '0 22px' }}>
|
|
100
|
+
<svg width={26} height={26} viewBox="0 0 26 26"><circle cx={11} cy={11} r={8} fill="none" stroke={ink2} strokeWidth={2.6} /><path d="M17 17l6 6" stroke={ink2} strokeWidth={2.6} strokeLinecap="round" /></svg>
|
|
101
|
+
<div style={{ fontSize: 30, color: ink, fontWeight: 500 }}>crash zoom</div>
|
|
102
|
+
</div>
|
|
103
|
+
{[['Crash zoom punch', 'Card'], ['Zoom-through', 'Card'], ['Dolly zoom', 'Style']].map(([t, k2], k) => (
|
|
104
|
+
<div key={k} style={{ display: 'flex', alignItems: 'center', gap: 16, marginTop: k ? 14 : 26, padding: '0 6px' }}>
|
|
105
|
+
<div style={{ width: 36, height: 44, borderRadius: 7, background: alpha(ink, k === 0 ? 0.9 : 0.16) }} />
|
|
106
|
+
<div style={{ fontSize: 28, color: k === 0 ? ink : ink2, fontWeight: k === 0 ? 650 : 450 }}>{t}</div>
|
|
107
|
+
<div style={{ marginLeft: 'auto', fontSize: 22, color: ink3 }}>{k2}</div>
|
|
108
|
+
</div>
|
|
109
|
+
))}
|
|
110
|
+
</div>
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// 受光着色:面偏离正面越多越暗;60–120° 区间一道随角度从左扫到右的窄受光(只在侧棱最薄附近)
|
|
115
|
+
const FaceLight: React.FC<{ angle: number; dark: boolean }> = ({ angle, dark }) => {
|
|
116
|
+
const c = Math.abs(Math.cos((angle * Math.PI) / 180));
|
|
117
|
+
const shade = (1 - c) * (dark ? 0.55 : 0.4);
|
|
118
|
+
const band = Math.max(0, 1 - Math.abs(angle - 90) / 34);
|
|
119
|
+
const pos = mix(-20, 120, Math.min(1, Math.max(0, (angle - 56) / 68)));
|
|
120
|
+
return (
|
|
121
|
+
<>
|
|
122
|
+
<div style={{ position: 'absolute', inset: 0, background: '#000', opacity: shade }} />
|
|
123
|
+
{band > 0.01 && (
|
|
124
|
+
<div style={{
|
|
125
|
+
position: 'absolute', inset: 0, opacity: band * (dark ? 0.5 : 0.35),
|
|
126
|
+
background: `linear-gradient(100deg, rgba(255,255,255,0) ${pos - 12}%, rgba(255,255,255,0.9) ${pos}%, rgba(255,255,255,0) ${pos + 12}%)`,
|
|
127
|
+
}} />
|
|
128
|
+
)}
|
|
129
|
+
</>
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
const FlipCard: React.FC<{ i: number; frame: number }> = ({ i, frame }) => {
|
|
134
|
+
const angle = angleAt(frame, i);
|
|
135
|
+
const f = FEATURES[i];
|
|
136
|
+
const s = FLIP0 + i * STAGGER;
|
|
137
|
+
const lift = Math.max(0, Math.sin((Math.min(180, Math.max(0, angle)) * Math.PI) / 180));
|
|
138
|
+
const land = s + PRE + FLIP;
|
|
139
|
+
const num = springAt(frame, land - 2, { damping: 18, stiffness: 160 });
|
|
140
|
+
const lab = ramp(frame, land + 2, 14, EASE.snappy);
|
|
141
|
+
return (
|
|
142
|
+
<div style={{ position: 'absolute', inset: 0, perspective: 1600 }}>
|
|
143
|
+
<div style={{
|
|
144
|
+
position: 'absolute', inset: 0, transformStyle: 'preserve-3d',
|
|
145
|
+
transform: `translateZ(${(lift * 60).toFixed(2)}px) rotateY(${angle.toFixed(3)}deg)`,
|
|
146
|
+
}}>
|
|
147
|
+
{/* 正面:暗色功能卡 */}
|
|
148
|
+
<div style={{
|
|
149
|
+
position: 'absolute', inset: 0, backfaceVisibility: 'hidden', borderRadius: 34, overflow: 'hidden',
|
|
150
|
+
background: `linear-gradient(180deg, #1d1e22 0%, ${L.surface} 48%, #111214 100%)`,
|
|
151
|
+
boxShadow: `inset 0 0 0 1.5px ${alpha('#ffffff', 0.09)}, inset 0 2px 0 ${alpha('#ffffff', 0.08)}`,
|
|
152
|
+
fontFamily: FONT.sans,
|
|
153
|
+
}}>
|
|
154
|
+
<div style={{ position: 'absolute', left: 40, top: 40, display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
155
|
+
<div style={{ fontFamily: FONT.mono, fontSize: 22, fontWeight: 600, color: L.ink3 }}>0{i + 1}</div>
|
|
156
|
+
<div style={{ ...type(22, 700, { caps: true }), color: L.ink2, letterSpacing: '0.16em' }}>Feature</div>
|
|
157
|
+
</div>
|
|
158
|
+
<div style={{ position: 'absolute', left: 40, right: 40, top: 112 }}>
|
|
159
|
+
<FrontUI i={i} frame={frame} />
|
|
160
|
+
</div>
|
|
161
|
+
<div style={{ position: 'absolute', left: 40, right: 40, bottom: 40 }}>
|
|
162
|
+
<div style={{ ...type(52, 750), color: L.ink }}>{f.name}</div>
|
|
163
|
+
<div style={{ ...type(28, 450), color: L.ink2, marginTop: 10 }}>{f.desc}</div>
|
|
164
|
+
</div>
|
|
165
|
+
<FaceLight angle={angle} dark />
|
|
166
|
+
</div>
|
|
167
|
+
{/* 背面:瓷白结论卡 */}
|
|
168
|
+
<div style={{
|
|
169
|
+
position: 'absolute', inset: 0, backfaceVisibility: 'hidden', transform: 'rotateY(180deg)', borderRadius: 34, overflow: 'hidden',
|
|
170
|
+
background: 'linear-gradient(180deg, #fbfaf7 0%, #f1f0ec 100%)',
|
|
171
|
+
boxShadow: `inset 0 0 0 1.5px rgba(0,0,0,0.06), inset 0 2px 0 rgba(255,255,255,0.9)`,
|
|
172
|
+
fontFamily: FONT.sans, color: '#0d0d0f',
|
|
173
|
+
}}>
|
|
174
|
+
<div style={{ position: 'absolute', left: 40, top: 40, display: 'flex', alignItems: 'center', gap: 12 }}>
|
|
175
|
+
<div style={{ width: 12, height: 12, borderRadius: 6, background: '#b8925a' }} />
|
|
176
|
+
<div style={{ ...type(22, 700, { caps: true }), color: '#6b6a66', letterSpacing: '0.16em' }}>{f.name}</div>
|
|
177
|
+
</div>
|
|
178
|
+
{/* 对照条:之前 / 用上之后(落定后才长出来) */}
|
|
179
|
+
<div style={{ position: 'absolute', left: 40, right: 40, top: 112 }}>
|
|
180
|
+
{(['Before', `With ${BRAND.short}`] as const).map((t, k) => {
|
|
181
|
+
const g = k === 0 ? 1 : ramp(frame, land + 4, 18, EASE.snappy);
|
|
182
|
+
const w = k === 0 ? f.bars[0] : mix(f.bars[0], f.bars[1], g);
|
|
183
|
+
return (
|
|
184
|
+
<div key={t} style={{ marginTop: k ? 26 : 0 }}>
|
|
185
|
+
<div style={{ display: 'flex', alignItems: 'baseline' }}>
|
|
186
|
+
<div style={{ ...type(22, 700, { caps: true }), color: k ? '#0d0d0f' : '#8a8984', letterSpacing: '0.14em' }}>{t}</div>
|
|
187
|
+
<div style={{ marginLeft: 'auto', fontFamily: FONT.mono, fontSize: 24, fontWeight: 600, color: k ? '#0d0d0f' : '#8a8984', opacity: k ? lab : 1 }}>{f.unit[k]}</div>
|
|
188
|
+
</div>
|
|
189
|
+
<div style={{ height: 16, borderRadius: 8, marginTop: 10, background: 'rgba(0,0,0,0.06)', overflow: 'hidden' }}>
|
|
190
|
+
<div style={{ width: `${(w * 100).toFixed(2)}%`, height: '100%', borderRadius: 8, background: k ? '#0d0d0f' : 'rgba(0,0,0,0.18)' }} />
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
);
|
|
194
|
+
})}
|
|
195
|
+
</div>
|
|
196
|
+
<div style={{ position: 'absolute', left: 36, right: 30, bottom: 128 }}>
|
|
197
|
+
<div style={{
|
|
198
|
+
...type(158, 800), letterSpacing: '-0.06em', lineHeight: 0.9, color: '#0d0d0f', whiteSpace: 'nowrap',
|
|
199
|
+
transform: `scale(${mix(1.08, 1, num).toFixed(4)})`, transformOrigin: 'left bottom',
|
|
200
|
+
}}>{f.value}</div>
|
|
201
|
+
</div>
|
|
202
|
+
<div style={{
|
|
203
|
+
position: 'absolute', left: 40, right: 40, bottom: 48, ...type(34, 550), color: '#3d3c39',
|
|
204
|
+
opacity: lab, transform: `translateY(${((1 - lab) * 14).toFixed(2)}px)`,
|
|
205
|
+
}}>{f.label}</div>
|
|
206
|
+
<FaceLight angle={180 - angle} dark={false} />
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
);
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export const CardFlipReveal: React.FC = () => {
|
|
214
|
+
const frame = useCurrentFrame();
|
|
215
|
+
const push = 1 + 0.03 * ramp(frame, 0, 150, EASE.smooth);
|
|
216
|
+
return (
|
|
217
|
+
<AbsoluteFill style={{ overflow: 'hidden' }}>
|
|
218
|
+
<Stage look={L} keyLight={{ x: 0.5, y: -0.05 }} fill={{ x: 0.5, y: 1.1 }} horizon={0.88} intensity={0.9}>
|
|
219
|
+
{/* 镜面地板:地平线以下略亮的反射面 */}
|
|
220
|
+
<div style={{
|
|
221
|
+
position: 'absolute', left: 0, right: 0, top: Y + CH, bottom: 0,
|
|
222
|
+
background: `linear-gradient(180deg, ${alpha('#ffffff', 0.035)} 0%, ${alpha('#ffffff', 0)} 60%)`,
|
|
223
|
+
borderTop: `1px solid ${alpha('#ffffff', 0.06)}`,
|
|
224
|
+
}} />
|
|
225
|
+
</Stage>
|
|
226
|
+
<AbsoluteFill style={{ transform: `scale(${push.toFixed(4)})`, transformOrigin: '50% 60%' }}>
|
|
227
|
+
{/* 标题 */}
|
|
228
|
+
<div style={{ position: 'absolute', left: X0, top: 118, fontFamily: FONT.sans }}>
|
|
229
|
+
<div style={{ ...type(26, 700, { caps: true }), color: GOLD, letterSpacing: '0.18em' }}>
|
|
230
|
+
<TextReveal text={`${BRAND.name} · Launch results`} by="word" variant="blur" start={0} each={14} gap={2} />
|
|
231
|
+
</div>
|
|
232
|
+
<div style={{ ...type(84, 760), color: L.ink, marginTop: 18 }}>
|
|
233
|
+
<TextReveal text="Three features. Three outcomes." by="word" variant="rise" start={2} each={18} gap={2.5} />
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
{[0, 1, 2].map((i) => (
|
|
237
|
+
<React.Fragment key={i}>
|
|
238
|
+
{/* 倒影:同一张卡竖直镜像,遮罩渐隐 */}
|
|
239
|
+
<div style={{
|
|
240
|
+
position: 'absolute', left: X0 + i * (CW + GAP), top: Y + CH + 6, width: CW, height: CH,
|
|
241
|
+
transform: 'scaleY(-1)', transformOrigin: 'center', opacity: 0.22,
|
|
242
|
+
WebkitMaskImage: 'linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 26%)',
|
|
243
|
+
maskImage: 'linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 26%)',
|
|
244
|
+
}}>
|
|
245
|
+
<FlipCard i={i} frame={frame} />
|
|
246
|
+
</div>
|
|
247
|
+
{/* 接地影 */}
|
|
248
|
+
<div style={{
|
|
249
|
+
position: 'absolute', left: X0 + i * (CW + GAP) + 30, width: CW - 60, top: Y + CH - 18, height: 36, borderRadius: '50%',
|
|
250
|
+
background: 'radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,0,0,0.7), rgba(0,0,0,0) 70%)',
|
|
251
|
+
transform: `scaleX(${Math.max(0.12, Math.abs(Math.cos((angleAt(frame, i) * Math.PI) / 180))).toFixed(3)})`,
|
|
252
|
+
}} />
|
|
253
|
+
<div style={{ position: 'absolute', left: X0 + i * (CW + GAP), top: Y, width: CW, height: CH }}>
|
|
254
|
+
<FlipCard i={i} frame={frame} />
|
|
255
|
+
</div>
|
|
256
|
+
</React.Fragment>
|
|
257
|
+
))}
|
|
258
|
+
</AbsoluteFill>
|
|
259
|
+
</AbsoluteFill>
|
|
260
|
+
);
|
|
261
|
+
};
|