hyper-animator-codex 0.7.0 → 0.8.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/README.md +67 -7
- package/bin/hyper-animator-codex.mjs +31 -9
- package/bin/postinstall.mjs +19 -0
- package/lib/install-options.mjs +3 -0
- package/lib/install-skill.mjs +84 -2
- package/lib/minimax-config.mjs +3 -3
- package/package.json +3 -2
- package/skills/hyper-animator-codex/SKILL.md +58 -20
- package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
- package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +214 -0
- package/skills/hyper-animator-codex/contracts/workflow-policy.json +85 -0
- package/skills/hyper-animator-codex/references/HyperFrames-AI-Generation-Patterns-codex.md +788 -0
- package/skills/hyper-animator-codex/references/beat-sync-workflow.md +7 -0
- package/skills/hyper-animator-codex/references/examples/shot-plan-dual-catalog.json +69 -0
- package/skills/hyper-animator-codex/references/hyperframes-agent-pseudocode.ts +1 -1
- package/skills/hyper-animator-codex/references/hyperframes-catalog-map.json +97 -230
- package/skills/hyper-animator-codex/references/hyperframes-intent-workflow.md +23 -7
- package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
- package/skills/hyper-animator-codex/references/narration-audio-workflow.md +31 -1
- package/skills/hyper-animator-codex/references/shotcraft/LICENSE +202 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ai-stream-response/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/autolayout-gap-dial/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-cut-moves/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-step-list-theme-cycle/README.md +59 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/before-after-slider-scrub/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bottom-push-stack-wipe/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-frame-snap/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-ink-open/README.md +35 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bubble-swarm-takeover/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/canvas-materialize-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flip-reveal/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flock-tumble/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cel-flash-stomp/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/chart-live-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/circle-match-iris/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cloner-depth-echo/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/collab-cursor-moves/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/color-block-step-wipe/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/command-palette-summon/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crane-rise-reveal/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crash-zoom-punch/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/dataviz-landscape-open/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/deck-deal-flyin/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/depth-layer-moves/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/document-typewriter-reveal/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/draw-svg-trace/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/edit-hook-moves/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/element-body-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/fui-hud-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gauge-readout-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/glow-flyline-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gradient-word-sweep/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/graze-face-tour/README.md +56 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hashtag-to-pill-materialize/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hires-rasterize-3d-text/README.md +34 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-field-colorize/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-performance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/impact-feedback/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/input-trigger-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/integration-hub-map/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/letterspace-materialize/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/light-play-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-boil/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-carry-transition/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/list-stack-press/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/magician-card-flourish/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/marker-underline-title/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/montage-rhythm-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/morph-from-primitive/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-forerun/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-orbit-drop/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-triple-marquee/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/odometer-digit-roll/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/outro-group-photo-launch/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/overhead-camera-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-turn-transitions/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-waterfall-wall/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/panel-grid-moves/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-craft-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-plane-messenger/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-title-card/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-celebrate-hits/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-sand-fill/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/pill-slot-cycle/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/print-texture-transitions/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/rhythm-interrupt-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/riso-print-hits/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/row-embed/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/runway-ground-skim/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/sakuga-timing-shift/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scene-locked-title/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scroll-brake-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/segmented-thumb-hero/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/shot-transitions/README.md +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/skeleton-reveal/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/slam-entrance-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/smear-multiples/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/space-camera-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spectrum-morph-ui/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/speed-ramp-freeze/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/split-flap-title/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-hero-card/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-sweep-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/steep-tilt-glide/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/stroke-segment-build/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tear-streak-transitions/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tension-camera-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-as-mask/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-column-converge/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/theme-switch-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/timeline-travel/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/title-demote-to-label/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/trailer-grammar-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-hidden-cut/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-travel/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-and-filter/README.md +37 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-assembly-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-entrance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-rhythm-sync/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/typewriter-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-strip-away-outro/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-to-brand-morph/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/voice-waveform-live/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wall-reveal-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wipe-transitions/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/word-relay-filmstrip/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/catalog.json +3946 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
- package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
- package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
- package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
- package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
- package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
- package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
- package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
- package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
- package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +193 -0
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
// integration-hub-map v5 —— 批次 14 单点节奏修正:
|
|
2
|
+
// 用户意见(逐字)"动作对了,但是需要翻的时候很快,最后快完成的时候变慢下来"
|
|
3
|
+
// → rotateY 0→180° 改为快翻+尾段减速:强 ease-out(cubic),前 ~40% 时间
|
|
4
|
+
// 完成 ~80% 角度,尾段明显减速缓着陆;仍一次连贯完成、无分段停顿
|
|
5
|
+
// (判例:"匀速"=无停顿≠字面 linear,本条已被用户亲自纠正为快翻尾缓)。
|
|
6
|
+
// 90° 侧棱时刻随之提前到 ~f28,白热爆发峰值同步前移对齐。其余全保留。
|
|
7
|
+
// —— 以下为 v3 说明(结构沿用):
|
|
8
|
+
// ① 开头不是"转一个角度",而是页面整个 rotateY 翻转 180° 翻到背面,
|
|
9
|
+
// 得到一张新的页面(双面卡:正面=近景旧页,背面=翻正后的新中枢页),
|
|
10
|
+
// 翻到侧棱(~90°)时白热爆发吞没画面(对应截图 3/4)。
|
|
11
|
+
// ② 五图标光管连上后有"输送感":亮脉冲沿管线方向(图标→中枢)持续
|
|
12
|
+
// 循环流动,直到片尾不停。
|
|
13
|
+
// 运动结构对照截图:S1 近景正视可读 → S2 翻转中+拉远+泛光起 →
|
|
14
|
+
// S3/S4 侧棱白热爆发+图标浮现 → S5/S6 新页转正、光管连入 → S7/S8 稳定输送。
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
17
|
+
|
|
18
|
+
const mulberry32 = (a: number) => () => {
|
|
19
|
+
let t = (a += 0x6d2b79f5);
|
|
20
|
+
t = Math.imul(t ^ (t >>> 15), t | 1);
|
|
21
|
+
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
|
|
22
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
23
|
+
};
|
|
24
|
+
const rand = mulberry32(20260718);
|
|
25
|
+
const NOISE: number[] = Array.from({ length: 200 }, () => rand());
|
|
26
|
+
|
|
27
|
+
const FONT = '"Avenir Next", "Helvetica Neue", Helvetica, sans-serif';
|
|
28
|
+
|
|
29
|
+
// ---------- 中枢面板(Enterprise MQLs,内容对照截图 1/7) ----------
|
|
30
|
+
const LIST: { icon: string; title: string; sub: string }[] = [
|
|
31
|
+
{ icon: '#4a9fd8', title: 'Q3 Enterprise Deal', sub: 'Revenue · Pipeline · Q3 Quota' },
|
|
32
|
+
{ icon: '#4a9fd8', title: 'Major Enterprise Account - UK', sub: 'Revenue · MQL · International' },
|
|
33
|
+
{ icon: '#34a853', title: 'Enterprise Pitch Deck', sub: 'Open in GDrive' },
|
|
34
|
+
{ icon: '#a259ff', title: 'MQL Lead Form Design', sub: 'Figma File · Last Edited' },
|
|
35
|
+
{ icon: '#f2c744', title: 'Enterprise Sales', sub: 'ClickUp Space' },
|
|
36
|
+
{ icon: '#9a9a98', title: 'Enterprise Closed Archive', sub: 'Archived · In Enterprise Sales' },
|
|
37
|
+
{ icon: '#c8c8c6', title: 'Open Enterprise Lead - Follow up', sub: 'In Progress · In Enterprise Sales · Yesterday' },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const HubPanel: React.FC<{ glow: number }> = ({ glow }) => (
|
|
41
|
+
<div
|
|
42
|
+
style={{
|
|
43
|
+
width: 820,
|
|
44
|
+
height: 520,
|
|
45
|
+
background: '#fbfbfa',
|
|
46
|
+
borderRadius: 14,
|
|
47
|
+
padding: '26px 30px',
|
|
48
|
+
boxSizing: 'border-box',
|
|
49
|
+
fontFamily: FONT,
|
|
50
|
+
boxShadow: `0 0 ${40 + glow * 110}px rgba(255,255,255,${0.3 + glow * 0.55}), 0 0 ${130 + glow * 140}px rgba(215,150,255,${0.22 + glow * 0.35})`,
|
|
51
|
+
display: 'flex',
|
|
52
|
+
gap: 26,
|
|
53
|
+
overflow: 'hidden',
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
<div style={{ flex: 2 }}>
|
|
57
|
+
<div style={{ fontSize: 27, fontWeight: 600, color: '#2f2f38' }}>Enterprise MQLs</div>
|
|
58
|
+
<div style={{ display: 'flex', gap: 16, marginTop: 12 }}>
|
|
59
|
+
{['All', 'Tasks', 'Docs', 'Whiteboards', 'Dashboards', 'Files', 'Chat', 'People'].map((t, i) => (
|
|
60
|
+
<div key={t} style={{ fontSize: 12, color: i === 0 ? '#5b55c8' : '#98989f', fontWeight: i === 0 ? 700 : 400 }}>
|
|
61
|
+
{t}
|
|
62
|
+
</div>
|
|
63
|
+
))}
|
|
64
|
+
</div>
|
|
65
|
+
<div style={{ fontSize: 12, color: '#8b8b92', marginTop: 14 }}>Recent</div>
|
|
66
|
+
{LIST.map((it, i) => (
|
|
67
|
+
<div key={i} style={{ display: 'flex', gap: 11, alignItems: 'center', marginTop: 13.5 }}>
|
|
68
|
+
<div style={{ width: 22, height: 22, borderRadius: 6, background: it.icon, opacity: 0.85 }} />
|
|
69
|
+
<div>
|
|
70
|
+
<div style={{ fontSize: 13.5, fontWeight: 600, color: '#3c3c44' }}>{it.title}</div>
|
|
71
|
+
<div style={{ fontSize: 11, color: '#a2a2a8', marginTop: 1 }}>{it.sub}</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
))}
|
|
75
|
+
</div>
|
|
76
|
+
<div style={{ flex: 1, borderLeft: '1px solid #e7e7e5', paddingLeft: 22 }}>
|
|
77
|
+
<div
|
|
78
|
+
style={{
|
|
79
|
+
height: 30,
|
|
80
|
+
width: 168,
|
|
81
|
+
border: '1.5px solid #cacac8',
|
|
82
|
+
borderRadius: 8,
|
|
83
|
+
marginTop: 4,
|
|
84
|
+
fontSize: 12,
|
|
85
|
+
color: '#6a6a70',
|
|
86
|
+
display: 'flex',
|
|
87
|
+
alignItems: 'center',
|
|
88
|
+
justifyContent: 'center',
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
+ Add Location Filter
|
|
92
|
+
</div>
|
|
93
|
+
<div style={{ fontSize: 10.5, color: '#adadb2', marginTop: 24, letterSpacing: 1 }}>QUICK FILTERS</div>
|
|
94
|
+
{['Assigned to Me', 'Created by Me'].map((t) => (
|
|
95
|
+
<div key={t} style={{ fontSize: 13.5, color: '#55555c', marginTop: 11 }}>{t}</div>
|
|
96
|
+
))}
|
|
97
|
+
<div style={{ fontSize: 10.5, color: '#adadb2', marginTop: 24, letterSpacing: 1 }}>TASK FILTERS</div>
|
|
98
|
+
{['Open', 'Closed', 'Archived'].map((t) => (
|
|
99
|
+
<div key={t} style={{ fontSize: 13.5, color: '#55555c', marginTop: 11 }}>{t}</div>
|
|
100
|
+
))}
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
// ---------- 翻转前的旧页面(正面):另一张页面,翻面后才得到中枢页 ----------
|
|
106
|
+
const FrontPanel: React.FC<{ glow: number }> = ({ glow }) => (
|
|
107
|
+
<div
|
|
108
|
+
style={{
|
|
109
|
+
width: 820,
|
|
110
|
+
height: 520,
|
|
111
|
+
background: '#fbfbfa',
|
|
112
|
+
borderRadius: 14,
|
|
113
|
+
padding: '30px 34px',
|
|
114
|
+
boxSizing: 'border-box',
|
|
115
|
+
fontFamily: FONT,
|
|
116
|
+
boxShadow: `0 0 ${40 + glow * 110}px rgba(255,255,255,${0.3 + glow * 0.55})`,
|
|
117
|
+
overflow: 'hidden',
|
|
118
|
+
}}
|
|
119
|
+
>
|
|
120
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 10 }}>
|
|
121
|
+
<div style={{ width: 26, height: 26, borderRadius: 7, background: '#4a9fd8', opacity: 0.9 }} />
|
|
122
|
+
<div style={{ fontSize: 26, fontWeight: 600, color: '#2f2f38' }}>Q3 Enterprise Deal</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div style={{ display: 'flex', gap: 14, marginTop: 10 }}>
|
|
125
|
+
{['Revenue', 'Pipeline', 'Q3 Quota'].map((t) => (
|
|
126
|
+
<div
|
|
127
|
+
key={t}
|
|
128
|
+
style={{
|
|
129
|
+
fontSize: 11.5,
|
|
130
|
+
color: '#6a6a70',
|
|
131
|
+
background: '#efeff0',
|
|
132
|
+
borderRadius: 6,
|
|
133
|
+
padding: '3px 10px',
|
|
134
|
+
}}
|
|
135
|
+
>
|
|
136
|
+
{t}
|
|
137
|
+
</div>
|
|
138
|
+
))}
|
|
139
|
+
</div>
|
|
140
|
+
<div style={{ height: 1, background: '#e8e8e6', marginTop: 18 }} />
|
|
141
|
+
{/* 文档灰条段落 */}
|
|
142
|
+
{[420, 700, 660, 540, 0, 690, 630, 380, 0, 580, 640, 460].map((w, i) =>
|
|
143
|
+
w === 0 ? (
|
|
144
|
+
<div key={i} style={{ height: 14 }} />
|
|
145
|
+
) : (
|
|
146
|
+
<div
|
|
147
|
+
key={i}
|
|
148
|
+
style={{
|
|
149
|
+
width: w,
|
|
150
|
+
height: 13,
|
|
151
|
+
borderRadius: 6,
|
|
152
|
+
background: i % 5 === 0 ? '#d7d7db' : '#e6e6e9',
|
|
153
|
+
marginTop: 13,
|
|
154
|
+
}}
|
|
155
|
+
/>
|
|
156
|
+
),
|
|
157
|
+
)}
|
|
158
|
+
</div>
|
|
159
|
+
);
|
|
160
|
+
|
|
161
|
+
// ---------- 品牌图标瓷贴 ----------
|
|
162
|
+
const Tile: React.FC<{ kind: string; on: number }> = ({ kind, on }) => {
|
|
163
|
+
const glyph = (() => {
|
|
164
|
+
switch (kind) {
|
|
165
|
+
case 'figma':
|
|
166
|
+
return (
|
|
167
|
+
<svg width={46} height={46} viewBox="0 0 46 46">
|
|
168
|
+
<circle cx={16} cy={9} r={7} fill="#f24e1e" />
|
|
169
|
+
<circle cx={30} cy={9} r={7} fill="#ff7262" />
|
|
170
|
+
<circle cx={16} cy={23} r={7} fill="#a259ff" />
|
|
171
|
+
<circle cx={30} cy={23} r={7} fill="#1abcfe" />
|
|
172
|
+
<circle cx={16} cy={37} r={7} fill="#0acf83" />
|
|
173
|
+
</svg>
|
|
174
|
+
);
|
|
175
|
+
case 'github':
|
|
176
|
+
return <div style={{ width: 46, height: 46, borderRadius: '50%', background: '#24292f' }} />;
|
|
177
|
+
case 'salesforce':
|
|
178
|
+
return (
|
|
179
|
+
<svg width={56} height={40} viewBox="0 0 56 40">
|
|
180
|
+
<ellipse cx={22} cy={22} rx={14} ry={11} fill="#00a1e0" />
|
|
181
|
+
<ellipse cx={36} cy={18} rx={13} ry={10} fill="#00a1e0" />
|
|
182
|
+
<ellipse cx={30} cy={26} rx={16} ry={10} fill="#00a1e0" />
|
|
183
|
+
</svg>
|
|
184
|
+
);
|
|
185
|
+
case 'gdrive':
|
|
186
|
+
return (
|
|
187
|
+
<svg width={48} height={42} viewBox="0 0 48 42">
|
|
188
|
+
<path d="M16 2 L32 2 L48 30 L40 42 L8 42 L0 30 Z" fill="none" />
|
|
189
|
+
<path d="M16 2 L32 2 L20 24 L4 24 Z" fill="#34a853" transform="translate(2,2)" />
|
|
190
|
+
<path d="M32 2 L46 28 L30 28 L18 6 Z" fill="#fbbc04" transform="translate(0,2)" />
|
|
191
|
+
<path d="M6 28 L42 28 L36 38 L12 38 Z" fill="#4285f4" />
|
|
192
|
+
</svg>
|
|
193
|
+
);
|
|
194
|
+
default: // dropbox
|
|
195
|
+
return (
|
|
196
|
+
<svg width={48} height={42} viewBox="0 0 48 42">
|
|
197
|
+
<path d="M12 0 L24 8 L12 16 L0 8 Z" fill="#0061ff" />
|
|
198
|
+
<path d="M36 0 L48 8 L36 16 L24 8 Z" fill="#0061ff" />
|
|
199
|
+
<path d="M12 18 L24 26 L12 34 L0 26 Z" fill="#0061ff" />
|
|
200
|
+
<path d="M36 18 L48 26 L36 34 L24 26 Z" fill="#0061ff" />
|
|
201
|
+
</svg>
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
})();
|
|
205
|
+
return (
|
|
206
|
+
<div
|
|
207
|
+
style={{
|
|
208
|
+
width: 112,
|
|
209
|
+
height: 112,
|
|
210
|
+
borderRadius: 26,
|
|
211
|
+
background: '#fdfdfd',
|
|
212
|
+
display: 'flex',
|
|
213
|
+
justifyContent: 'center',
|
|
214
|
+
alignItems: 'center',
|
|
215
|
+
boxShadow: `0 0 ${16 + on * 46}px rgba(255,255,255,${0.2 + on * 0.55})`,
|
|
216
|
+
transform: `scale(${0.9 + on * 0.1})`,
|
|
217
|
+
}}
|
|
218
|
+
>
|
|
219
|
+
{glyph}
|
|
220
|
+
</div>
|
|
221
|
+
);
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
// ---------- 光管(彩虹渐变霓虹管) ----------
|
|
225
|
+
type Pipe = { kind: string; icon: [number, number]; path: string; len: number; tIcon: number; tPipe: number };
|
|
226
|
+
const PIPES: Pipe[] = [
|
|
227
|
+
{ kind: 'figma', icon: [452, 262], path: 'M 452 322 L 452 440 Q 452 480 492 480 L 552 480', len: 300, tIcon: 52, tPipe: 62 },
|
|
228
|
+
{ kind: 'github', icon: [252, 612], path: 'M 316 612 L 552 612', len: 240, tIcon: 52, tPipe: 62 },
|
|
229
|
+
{ kind: 'salesforce', icon: [992, 178], path: 'M 992 240 L 992 332', len: 92, tIcon: 52, tPipe: 62 },
|
|
230
|
+
{ kind: 'gdrive', icon: [1512, 272], path: 'M 1512 332 L 1512 440 Q 1512 480 1472 480 L 1372 480', len: 290, tIcon: 52, tPipe: 62 },
|
|
231
|
+
{ kind: 'dropbox', icon: [1702, 618], path: 'M 1640 618 L 1372 618', len: 270, tIcon: 52, tPipe: 62 },
|
|
232
|
+
];
|
|
233
|
+
const GROW = 9; // v8(批次 17):用户意见"翻转过来后,5个app同时出现,然后同时连接"——两拍制:五图标 tIcon 统一 52 同帧出现,五管 tPipe 统一 62 同帧连接
|
|
234
|
+
|
|
235
|
+
// ---------- 背景霓虹矩形轮廓 ----------
|
|
236
|
+
const RECTS = Array.from({ length: 9 }, (_, i) => ({
|
|
237
|
+
x: [150, 660, 1740, 250, 1150, 700, 1660, 90, 1330][i],
|
|
238
|
+
y: [255, 355, 545, 850, 935, 985, 830, 555, 760][i],
|
|
239
|
+
w: 90 + NOISE[i * 3] * 160,
|
|
240
|
+
h: 60 + NOISE[i * 3 + 1] * 70,
|
|
241
|
+
hue: [265, 285, 300, 255, 275, 210, 320, 240, 40][i],
|
|
242
|
+
ph: NOISE[i * 3 + 2] * Math.PI * 2,
|
|
243
|
+
}));
|
|
244
|
+
|
|
245
|
+
export const IntegrationHubMap: React.FC = () => {
|
|
246
|
+
const frame = useCurrentFrame();
|
|
247
|
+
|
|
248
|
+
// --- 相机/面板轨迹:近景正视旧页 → 整体翻转 180°(翻到背面=新页)+ 拉远落定 ---
|
|
249
|
+
const zoom = interpolate(frame, [0, 14, 58, 96], [2.05, 1.95, 1.1, 1.0], {
|
|
250
|
+
extrapolateRight: 'clamp',
|
|
251
|
+
easing: Easing.inOut(Easing.cubic),
|
|
252
|
+
});
|
|
253
|
+
// v6(批次 15):用户意见"翻转再快1倍"——翻面窗口 f14–84(70 帧)
|
|
254
|
+
// 压半到 f14–49(35 帧),快翻+尾段减速曲线形状保持;
|
|
255
|
+
// 90° 侧棱相应提前到 ~f21.2(easeOut=0.5 → t≈0.206)。
|
|
256
|
+
const rotY = interpolate(frame, [14, 49], [0, 180], {
|
|
257
|
+
extrapolateLeft: 'clamp',
|
|
258
|
+
extrapolateRight: 'clamp',
|
|
259
|
+
easing: Easing.out(Easing.cubic),
|
|
260
|
+
});
|
|
261
|
+
const panX = interpolate(frame, [0, 18, 55, 96], [130, 120, 30, 0], {
|
|
262
|
+
extrapolateRight: 'clamp',
|
|
263
|
+
easing: Easing.inOut(Easing.cubic),
|
|
264
|
+
});
|
|
265
|
+
const panY = interpolate(frame, [0, 18, 55, 96], [120, 110, 30, 25], {
|
|
266
|
+
extrapolateRight: 'clamp',
|
|
267
|
+
easing: Easing.inOut(Easing.cubic),
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
// v6:用户意见"中间不需要长时间的光晕,翻到中间闪一下就行"——
|
|
271
|
+
// 长光晕平台删除,改为 90° 侧棱时刻(~f21)2 帧脉冲亮闪即回落
|
|
272
|
+
const bloom = interpolate(frame, [19, 21, 23, 27], [0, 1, 0.25, 0], {
|
|
273
|
+
extrapolateLeft: 'clamp',
|
|
274
|
+
extrapolateRight: 'clamp',
|
|
275
|
+
});
|
|
276
|
+
const noise = NOISE[Math.min(frame, NOISE.length - 1)];
|
|
277
|
+
|
|
278
|
+
// 全连通后呼吸
|
|
279
|
+
const allOn = Math.max(...PIPES.map((p) => p.tPipe)) + GROW;
|
|
280
|
+
const breathe = frame > allOn ? 0.5 + 0.5 * Math.sin((frame - allOn) * 0.16) : 0;
|
|
281
|
+
const panelGlow = bloom * 1.1 + breathe * 0.2;
|
|
282
|
+
|
|
283
|
+
// 星图元素(图标/光管/矩形)整体可见度
|
|
284
|
+
const mapIn = interpolate(frame, [34, 60], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
285
|
+
|
|
286
|
+
return (
|
|
287
|
+
<AbsoluteFill style={{ background: '#08070c' }}>
|
|
288
|
+
{/* 暗紫底噪 */}
|
|
289
|
+
<AbsoluteFill
|
|
290
|
+
style={{
|
|
291
|
+
background:
|
|
292
|
+
'radial-gradient(ellipse at 50% 50%, rgba(90,50,140,0.25), transparent 62%), radial-gradient(ellipse at 18% 78%, rgba(140,50,120,0.12), transparent 50%)',
|
|
293
|
+
}}
|
|
294
|
+
/>
|
|
295
|
+
|
|
296
|
+
{/* 背景霓虹矩形轮廓 */}
|
|
297
|
+
{RECTS.map((r, i) => {
|
|
298
|
+
const on = interpolate(frame, [36 + i * 4, 52 + i * 4], [0, 1], {
|
|
299
|
+
extrapolateLeft: 'clamp',
|
|
300
|
+
extrapolateRight: 'clamp',
|
|
301
|
+
});
|
|
302
|
+
const settle = frame > 100 ? 0.55 : 1;
|
|
303
|
+
const flick = 0.65 + 0.35 * Math.sin(frame * 0.11 + r.ph);
|
|
304
|
+
return (
|
|
305
|
+
<div
|
|
306
|
+
key={i}
|
|
307
|
+
style={{
|
|
308
|
+
position: 'absolute',
|
|
309
|
+
left: r.x,
|
|
310
|
+
top: r.y,
|
|
311
|
+
width: r.w,
|
|
312
|
+
height: r.h,
|
|
313
|
+
borderRadius: 12,
|
|
314
|
+
border: `2.5px solid hsla(${r.hue} 90% 70% / ${0.75 * on * flick * settle})`,
|
|
315
|
+
boxShadow: `0 0 18px hsla(${r.hue} 90% 65% / ${0.55 * on * flick * settle}), inset 0 0 14px hsla(${r.hue} 90% 65% / ${0.3 * on * flick * settle})`,
|
|
316
|
+
}}
|
|
317
|
+
/>
|
|
318
|
+
);
|
|
319
|
+
})}
|
|
320
|
+
|
|
321
|
+
{/* 光管层 */}
|
|
322
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0, opacity: mapIn }}>
|
|
323
|
+
<defs>
|
|
324
|
+
{/* 每条管一个 userSpaceOnUse 渐变(沿管起终点),彩虹沿管线方向铺开。
|
|
325
|
+
objectBoundingBox 在纯水平/垂直线上宽或高为 0 会禁用 paint,必须用户坐标。 */}
|
|
326
|
+
{PIPES.map((p, i) => {
|
|
327
|
+
const nums = p.path.match(/-?[\d.]+/g)!.map(Number);
|
|
328
|
+
const [x1, y1] = [nums[0], nums[1]];
|
|
329
|
+
const [x2, y2] = [nums[nums.length - 2], nums[nums.length - 1]];
|
|
330
|
+
return (
|
|
331
|
+
<linearGradient key={i} id={`rainbow-${i}`} gradientUnits="userSpaceOnUse" x1={x1} y1={y1} x2={x2} y2={y2}>
|
|
332
|
+
<stop offset="0%" stopColor="#ffe14d" />
|
|
333
|
+
<stop offset="28%" stopColor="#ff8a5a" />
|
|
334
|
+
<stop offset="52%" stopColor="#ff5ad0" />
|
|
335
|
+
<stop offset="76%" stopColor="#b46bff" />
|
|
336
|
+
<stop offset="100%" stopColor="#5ad0ff" />
|
|
337
|
+
</linearGradient>
|
|
338
|
+
);
|
|
339
|
+
})}
|
|
340
|
+
{/* userSpaceOnUse:纯水平/垂直直线管的 bbox 为零,百分比滤镜区域会
|
|
341
|
+
坍缩成 0 导致整条管不渲染(github/salesforce/dropbox 三管消失) */}
|
|
342
|
+
<filter id="pipeGlow" filterUnits="userSpaceOnUse" x="0" y="0" width="1920" height="1080">
|
|
343
|
+
<feGaussianBlur stdDeviation="8" result="b" />
|
|
344
|
+
<feMerge>
|
|
345
|
+
<feMergeNode in="b" />
|
|
346
|
+
<feMergeNode in="SourceGraphic" />
|
|
347
|
+
</feMerge>
|
|
348
|
+
</filter>
|
|
349
|
+
</defs>
|
|
350
|
+
{PIPES.map((p, i) => {
|
|
351
|
+
const grow = interpolate(frame, [p.tPipe, p.tPipe + GROW], [0, 1], {
|
|
352
|
+
extrapolateLeft: 'clamp',
|
|
353
|
+
extrapolateRight: 'clamp',
|
|
354
|
+
easing: Easing.out(Easing.quad),
|
|
355
|
+
});
|
|
356
|
+
if (grow <= 0) return null;
|
|
357
|
+
const dashOn = p.len * grow;
|
|
358
|
+
const pulse = frame > allOn ? 0.78 + 0.22 * Math.sin((frame - allOn) * 0.16 + i) : 1;
|
|
359
|
+
// 输送感:亮脉冲沿管线方向(图标→中枢)持续循环流动
|
|
360
|
+
const flowOffset = -((frame - p.tPipe) * 4.6 + i * 37);
|
|
361
|
+
const flowIn = interpolate(frame, [p.tPipe + GROW, p.tPipe + GROW + 8], [0, 1], {
|
|
362
|
+
extrapolateLeft: 'clamp',
|
|
363
|
+
extrapolateRight: 'clamp',
|
|
364
|
+
});
|
|
365
|
+
return (
|
|
366
|
+
<g key={i} filter="url(#pipeGlow)">
|
|
367
|
+
<path
|
|
368
|
+
d={p.path}
|
|
369
|
+
fill="none"
|
|
370
|
+
stroke={`url(#rainbow-${i})`}
|
|
371
|
+
strokeWidth={17}
|
|
372
|
+
strokeLinecap="round"
|
|
373
|
+
strokeDasharray={`${dashOn} ${p.len + 60}`}
|
|
374
|
+
opacity={0.92 * pulse}
|
|
375
|
+
/>
|
|
376
|
+
<path
|
|
377
|
+
d={p.path}
|
|
378
|
+
fill="none"
|
|
379
|
+
stroke="rgba(255,255,255,0.9)"
|
|
380
|
+
strokeWidth={5}
|
|
381
|
+
strokeLinecap="round"
|
|
382
|
+
strokeDasharray={`${dashOn} ${p.len + 60}`}
|
|
383
|
+
opacity={0.85 * pulse}
|
|
384
|
+
/>
|
|
385
|
+
{grow >= 1 && flowIn > 0 && (
|
|
386
|
+
<>
|
|
387
|
+
{/* 输送流:连续多段亮脉冲沿管流动(间距 46,段长 20) */}
|
|
388
|
+
<path
|
|
389
|
+
d={p.path}
|
|
390
|
+
fill="none"
|
|
391
|
+
stroke="#ffffff"
|
|
392
|
+
strokeWidth={11}
|
|
393
|
+
strokeLinecap="round"
|
|
394
|
+
strokeDasharray="18 56"
|
|
395
|
+
strokeDashoffset={flowOffset}
|
|
396
|
+
opacity={0.95 * flowIn}
|
|
397
|
+
/>
|
|
398
|
+
{/* 输送流柔光晕 */}
|
|
399
|
+
<path
|
|
400
|
+
d={p.path}
|
|
401
|
+
fill="none"
|
|
402
|
+
stroke="rgba(255,255,255,0.6)"
|
|
403
|
+
strokeWidth={24}
|
|
404
|
+
strokeLinecap="round"
|
|
405
|
+
strokeDasharray="18 56"
|
|
406
|
+
strokeDashoffset={flowOffset}
|
|
407
|
+
opacity={0.55 * flowIn}
|
|
408
|
+
/>
|
|
409
|
+
</>
|
|
410
|
+
)}
|
|
411
|
+
</g>
|
|
412
|
+
);
|
|
413
|
+
})}
|
|
414
|
+
</svg>
|
|
415
|
+
|
|
416
|
+
{/* 图标瓷贴 */}
|
|
417
|
+
{PIPES.map((p, i) => {
|
|
418
|
+
const appear = interpolate(frame, [p.tIcon, p.tIcon + 12], [0, 1], {
|
|
419
|
+
extrapolateLeft: 'clamp',
|
|
420
|
+
extrapolateRight: 'clamp',
|
|
421
|
+
easing: Easing.out(Easing.cubic),
|
|
422
|
+
});
|
|
423
|
+
const on = interpolate(frame, [p.tPipe, p.tPipe + 10], [0.15, 1], {
|
|
424
|
+
extrapolateLeft: 'clamp',
|
|
425
|
+
extrapolateRight: 'clamp',
|
|
426
|
+
});
|
|
427
|
+
if (appear <= 0) return null;
|
|
428
|
+
return (
|
|
429
|
+
<div
|
|
430
|
+
key={i}
|
|
431
|
+
style={{
|
|
432
|
+
position: 'absolute',
|
|
433
|
+
left: p.icon[0] - 56,
|
|
434
|
+
top: p.icon[1] - 56,
|
|
435
|
+
opacity: appear,
|
|
436
|
+
transform: `translateY(${(1 - appear) * 24}px)`,
|
|
437
|
+
}}
|
|
438
|
+
>
|
|
439
|
+
<Tile kind={p.kind} on={on * (frame > allOn ? 0.8 + 0.2 * breathe : 1)} />
|
|
440
|
+
</div>
|
|
441
|
+
);
|
|
442
|
+
})}
|
|
443
|
+
|
|
444
|
+
{/* 中枢面板:双面卡整体翻转 180°(正面旧页 → 背面新中枢页) */}
|
|
445
|
+
<AbsoluteFill style={{ justifyContent: 'center', alignItems: 'center', perspective: 1500 }}>
|
|
446
|
+
<div
|
|
447
|
+
style={{
|
|
448
|
+
transform: `translate(${panX}px, ${panY}px) rotateY(${rotY}deg) scale(${zoom})`,
|
|
449
|
+
position: 'relative',
|
|
450
|
+
transformStyle: 'preserve-3d',
|
|
451
|
+
width: 820,
|
|
452
|
+
height: 520,
|
|
453
|
+
}}
|
|
454
|
+
>
|
|
455
|
+
{/* 正面:翻转前的旧页面 */}
|
|
456
|
+
<div
|
|
457
|
+
style={{
|
|
458
|
+
position: 'absolute',
|
|
459
|
+
inset: 0,
|
|
460
|
+
backfaceVisibility: 'hidden',
|
|
461
|
+
}}
|
|
462
|
+
>
|
|
463
|
+
<FrontPanel glow={panelGlow} />
|
|
464
|
+
</div>
|
|
465
|
+
{/* 背面:翻正后得到的新中枢页(预转 180° 使翻完时朝向镜头且不镜像) */}
|
|
466
|
+
<div
|
|
467
|
+
style={{
|
|
468
|
+
position: 'absolute',
|
|
469
|
+
inset: 0,
|
|
470
|
+
backfaceVisibility: 'hidden',
|
|
471
|
+
transform: 'rotateY(180deg)',
|
|
472
|
+
}}
|
|
473
|
+
>
|
|
474
|
+
<HubPanel glow={panelGlow} />
|
|
475
|
+
</div>
|
|
476
|
+
{/* 面板过曝罩:爆发期盖白 */}
|
|
477
|
+
<div
|
|
478
|
+
style={{
|
|
479
|
+
position: 'absolute',
|
|
480
|
+
inset: -6,
|
|
481
|
+
borderRadius: 18,
|
|
482
|
+
background: '#ffffff',
|
|
483
|
+
opacity: Math.min(0.96, bloom * 1.05),
|
|
484
|
+
filter: 'blur(5px)',
|
|
485
|
+
pointerEvents: 'none',
|
|
486
|
+
transform: rotY > 90 ? 'rotateY(180deg) translateZ(1px)' : 'translateZ(1px)',
|
|
487
|
+
backfaceVisibility: 'hidden',
|
|
488
|
+
}}
|
|
489
|
+
/>
|
|
490
|
+
</div>
|
|
491
|
+
</AbsoluteFill>
|
|
492
|
+
|
|
493
|
+
{/* 全屏白热眩光(S3/S4):白核+品红/粉翼+青蓝斑 */}
|
|
494
|
+
{bloom > 0.02 && (
|
|
495
|
+
<AbsoluteFill style={{ pointerEvents: 'none' }}>
|
|
496
|
+
<div
|
|
497
|
+
style={{
|
|
498
|
+
position: 'absolute',
|
|
499
|
+
left: 300,
|
|
500
|
+
top: 60,
|
|
501
|
+
width: 1100,
|
|
502
|
+
height: 900,
|
|
503
|
+
background:
|
|
504
|
+
'radial-gradient(closest-side, rgba(255,255,255,0.98), rgba(255,235,255,0.75) 42%, rgba(255,120,230,0.4) 68%, transparent 88%)',
|
|
505
|
+
filter: 'blur(26px)',
|
|
506
|
+
opacity: Math.min(1, bloom * (0.94 + 0.06 * noise)),
|
|
507
|
+
}}
|
|
508
|
+
/>
|
|
509
|
+
<div
|
|
510
|
+
style={{
|
|
511
|
+
position: 'absolute',
|
|
512
|
+
left: 1150,
|
|
513
|
+
top: 150,
|
|
514
|
+
width: 700,
|
|
515
|
+
height: 620,
|
|
516
|
+
background: 'radial-gradient(closest-side, rgba(255,90,208,0.85), rgba(200,70,255,0.4) 60%, transparent 85%)',
|
|
517
|
+
filter: 'blur(34px)',
|
|
518
|
+
opacity: bloom * 0.9,
|
|
519
|
+
}}
|
|
520
|
+
/>
|
|
521
|
+
<div
|
|
522
|
+
style={{
|
|
523
|
+
position: 'absolute',
|
|
524
|
+
left: 40,
|
|
525
|
+
top: 480,
|
|
526
|
+
width: 620,
|
|
527
|
+
height: 520,
|
|
528
|
+
background: 'radial-gradient(closest-side, rgba(140,210,255,0.8), rgba(90,120,255,0.35) 60%, transparent 85%)',
|
|
529
|
+
filter: 'blur(30px)',
|
|
530
|
+
opacity: bloom * 0.85,
|
|
531
|
+
}}
|
|
532
|
+
/>
|
|
533
|
+
{/* 横向紫白光条(S2 左侧光痕) */}
|
|
534
|
+
<div
|
|
535
|
+
style={{
|
|
536
|
+
position: 'absolute',
|
|
537
|
+
left: 30,
|
|
538
|
+
top: 700,
|
|
539
|
+
width: 420,
|
|
540
|
+
height: 46,
|
|
541
|
+
borderRadius: 23,
|
|
542
|
+
background: 'linear-gradient(90deg, rgba(255,255,255,0.95), rgba(170,90,255,0.8), transparent)',
|
|
543
|
+
filter: 'blur(14px)',
|
|
544
|
+
opacity: interpolate(frame, [20, 34, 70, 92], [0, 0.9, 0.5, 0], {
|
|
545
|
+
extrapolateLeft: 'clamp',
|
|
546
|
+
extrapolateRight: 'clamp',
|
|
547
|
+
}),
|
|
548
|
+
}}
|
|
549
|
+
/>
|
|
550
|
+
</AbsoluteFill>
|
|
551
|
+
)}
|
|
552
|
+
</AbsoluteFill>
|
|
553
|
+
);
|
|
554
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// letterspace-materialize v3 —— 按批次 11 用户意见修正(截图 superhuman,4 张):
|
|
2
|
+
// ① 字形比例改宽:v2 竖长(60x100),对照终态截图字高≈50/字宽≈58(宽高比≈1.15),
|
|
3
|
+
// v3 重绘全部骨架字形到 78x64 视框(字面 58x54),方正略宽 + 细笔画 + 大字距;
|
|
4
|
+
// ② 所有字母同时开始同时完成:去掉 v2 的逐字错峰(PER/jitter),全字符同一帧起笔、
|
|
5
|
+
// pathLength 归一保证不同笔画长度的字母在同一帧齐收(截图 2/3 的全行并行半截态)。
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { AbsoluteFill, interpolate, useCurrentFrame } from 'remotion';
|
|
8
|
+
|
|
9
|
+
// 78x64 视框内的方正略宽细骨架字形(子笔画顺序=描画顺序)
|
|
10
|
+
const GLYPHS: Record<string, string> = {
|
|
11
|
+
S: 'M 62 13 C 51 4, 18 3, 15 15 C 12 26, 29 29, 39 31 C 50 33, 66 37, 63 48 C 60 59, 21 61, 11 50',
|
|
12
|
+
U: 'M 12 5 L 12 40 C 12 59, 66 59, 66 40 L 66 5',
|
|
13
|
+
P: 'M 12 59 L 12 5 L 44 5 C 64 5, 64 32, 44 32 L 12 32',
|
|
14
|
+
E: 'M 62 5 L 12 5 L 12 59 L 62 59 M 12 31 L 56 31',
|
|
15
|
+
R: 'M 12 59 L 12 5 L 44 5 C 64 5, 64 31, 44 31 L 12 31 M 42 31 L 64 59',
|
|
16
|
+
H: 'M 12 5 L 12 59 M 66 5 L 66 59 M 12 31 L 66 31',
|
|
17
|
+
M: 'M 8 59 L 8 6 L 39 38 L 70 6 L 70 59',
|
|
18
|
+
A: 'M 7 59 L 39 5 L 71 59 M 17 41 L 61 41',
|
|
19
|
+
N: 'M 12 59 L 12 5 L 66 59 L 66 5',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const WORD = 'SUPERHUMAN';
|
|
23
|
+
const START = 16; // 全字符统一起画帧(无错峰)
|
|
24
|
+
const DUR = 52; // 全字符统一画完帧数(pathLength 归一→同帧齐收)
|
|
25
|
+
|
|
26
|
+
export const LetterspaceMaterialize: React.FC = () => {
|
|
27
|
+
const frame = useCurrentFrame();
|
|
28
|
+
|
|
29
|
+
// 全字符共享同一进度:同时开始、同时完成
|
|
30
|
+
const p = interpolate(frame, [START, START + DUR], [0, 1], {
|
|
31
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
32
|
+
});
|
|
33
|
+
// easeInOut:起笔缓→中段匀速→收笔缓(手写感)
|
|
34
|
+
const e = p < 0.5 ? 2 * p * p : 1 - Math.pow(-2 * p + 2, 2) / 2;
|
|
35
|
+
// 画完瞬间轻微提亮回落(结晶收束)——全字符同帧发生
|
|
36
|
+
const doneGlow = interpolate(frame, [START + DUR, START + DUR + 8], [1, 0], {
|
|
37
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
38
|
+
});
|
|
39
|
+
const glowAmt = p >= 1 ? doneGlow : p > 0.7 ? (p - 0.7) / 0.3 : 0;
|
|
40
|
+
|
|
41
|
+
const letters = WORD.split('').map((ch, li) => (
|
|
42
|
+
<svg key={li} width={78} height={64} viewBox="0 0 78 64"
|
|
43
|
+
style={{ overflow: 'visible', display: 'block' }}>
|
|
44
|
+
{p > 0 && (
|
|
45
|
+
<path
|
|
46
|
+
d={GLYPHS[ch]}
|
|
47
|
+
fill="none"
|
|
48
|
+
stroke="#f4f2f8"
|
|
49
|
+
strokeWidth={5.5}
|
|
50
|
+
strokeLinecap="round"
|
|
51
|
+
strokeLinejoin="round"
|
|
52
|
+
pathLength={1}
|
|
53
|
+
strokeDasharray={1}
|
|
54
|
+
strokeDashoffset={1 - e}
|
|
55
|
+
style={{
|
|
56
|
+
filter: `drop-shadow(0 0 ${6 + glowAmt * 10}px rgba(240,235,255,${0.35 + glowAmt * 0.35}))`,
|
|
57
|
+
}}
|
|
58
|
+
/>
|
|
59
|
+
)}
|
|
60
|
+
</svg>
|
|
61
|
+
));
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<AbsoluteFill style={{
|
|
65
|
+
background: 'linear-gradient(178deg, #2c2a55 0%, #3d3465 30%, #241f40 58%, #0e0c1e 100%)',
|
|
66
|
+
alignItems: 'center', justifyContent: 'center',
|
|
67
|
+
}}>
|
|
68
|
+
{/* 暮色地平线光带(山影/晚霞近似) */}
|
|
69
|
+
<div style={{
|
|
70
|
+
position: 'absolute', left: 0, right: 0, top: 470, height: 170,
|
|
71
|
+
background: 'linear-gradient(180deg, rgba(232,150,170,0) 0%, rgba(226,140,165,0.20) 45%, rgba(120,100,170,0.12) 75%, rgba(0,0,0,0) 100%)',
|
|
72
|
+
filter: 'blur(20px)',
|
|
73
|
+
}} />
|
|
74
|
+
<div style={{
|
|
75
|
+
position: 'absolute', right: 130, top: 330, width: 560, height: 200,
|
|
76
|
+
background: 'radial-gradient(ellipse at center, rgba(216,120,160,0.16) 0%, rgba(0,0,0,0) 70%)',
|
|
77
|
+
filter: 'blur(26px)',
|
|
78
|
+
}} />
|
|
79
|
+
{/* 大字距字标:全字符并行连续描画 */}
|
|
80
|
+
<div style={{ display: 'flex', gap: 34, alignItems: 'center' }}>
|
|
81
|
+
{letters}
|
|
82
|
+
</div>
|
|
83
|
+
</AbsoluteFill>
|
|
84
|
+
);
|
|
85
|
+
};
|