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,175 @@
|
|
|
1
|
+
// 三连咔哒特写(wright-triple-cut)——Edgar Wright《僵尸肖恩》流程三连快切:
|
|
2
|
+
// 帧 0–24 全景 hold(FakeDashboard A);随后三个 10f 特写硬切连打,每个特写
|
|
3
|
+
// 前 4f 静止、中 3f 动作、后 3f 静止:①25–34 光标按下按钮(圆点缩一圈+按钮变深)
|
|
4
|
+
// ②35–44 开关左拨右(圆钮 3f 滑动+轨道 G.mid→G.ink) ③45–54 大数字 rotateX 翻牌 0→1;
|
|
5
|
+
// 帧 55 甩回全景:6f whip translateX 滑入,高速段 3 层错帧副本模拟运动模糊,
|
|
6
|
+
// 中上卡片提亮泛光+大 "1" 标记结果;帧 ~68 起全静止到 130(真静止 ≥60f)。
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
9
|
+
import { FakeDashboard, G } from '../_fixtures/Fixtures';
|
|
10
|
+
|
|
11
|
+
const HOLD_END = 25; // 全景 hold 结束
|
|
12
|
+
const C1 = 25; // 特写一:光标按下
|
|
13
|
+
const C2 = 35; // 特写二:开关
|
|
14
|
+
const C3 = 45; // 特写三:翻牌
|
|
15
|
+
const WHIP = 55; // 甩回全景
|
|
16
|
+
|
|
17
|
+
// 特写统一舞台:G.panel 底 + 居中大白卡,主体屏心、同倍率感
|
|
18
|
+
const CloseupStage: React.FC<{ children: React.ReactNode }> = ({ children }) => (
|
|
19
|
+
<div style={{ width: 1920, height: 1080, background: G.panel, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
|
|
20
|
+
<div style={{
|
|
21
|
+
width: 1400, height: 800, background: G.card, border: `4px solid ${G.border}`,
|
|
22
|
+
borderRadius: 28, boxShadow: '0 6px 24px rgba(0,0,0,0.08)',
|
|
23
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
24
|
+
}}>
|
|
25
|
+
{children}
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
// 结果卡片(3×2 网格中上格)的几何:sidebar 220 + padding 36,列宽 524,行高 454
|
|
31
|
+
const RESULT = { left: 808, top: 108, w: 524, h: 454 };
|
|
32
|
+
|
|
33
|
+
export const WrightTripleCut: React.FC = () => {
|
|
34
|
+
const f = useCurrentFrame();
|
|
35
|
+
|
|
36
|
+
// ===== 帧 0–24:全景 hold =====
|
|
37
|
+
if (f < HOLD_END) {
|
|
38
|
+
return <FakeDashboard variant="A" />;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// ===== 特写一(25–34):光标从悬停到按下,按钮变深 =====
|
|
42
|
+
if (f < C2) {
|
|
43
|
+
const t = f - C1; // 局部 0–9;动作窗 4–6
|
|
44
|
+
const p = interpolate(t, [4, 7], [0, 1], {
|
|
45
|
+
easing: Easing.out(Easing.cubic), extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
46
|
+
});
|
|
47
|
+
const cursorScale = 1 - 0.3 * p; // 1 → 0.7 缩一圈
|
|
48
|
+
const btnBg = p < 0.5 ? G.bar : '#5c5c5a'; // 按下瞬间变深
|
|
49
|
+
const btnY = 8 * p; // 按钮被压下 8px
|
|
50
|
+
return (
|
|
51
|
+
<CloseupStage>
|
|
52
|
+
<div style={{ position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
|
|
53
|
+
<div style={{
|
|
54
|
+
width: 620, height: 190, borderRadius: 40, background: btnBg,
|
|
55
|
+
border: `5px solid ${G.mid}`, boxSizing: 'border-box',
|
|
56
|
+
transform: `translateY(${btnY}px)`,
|
|
57
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 14,
|
|
58
|
+
}}>
|
|
59
|
+
<div style={{ width: 260, height: 30, borderRadius: 15, background: p < 0.5 ? G.card : G.line }} />
|
|
60
|
+
</div>
|
|
61
|
+
{/* 圆形光标点:悬停在按钮中心,按下缩一圈 */}
|
|
62
|
+
<div style={{
|
|
63
|
+
position: 'absolute', left: '50%', top: '50%',
|
|
64
|
+
width: 96, height: 96, marginLeft: -48, marginTop: -48 + btnY,
|
|
65
|
+
borderRadius: 48, background: G.ink, border: '8px solid #ffffff',
|
|
66
|
+
boxSizing: 'border-box', transform: `scale(${cursorScale})`,
|
|
67
|
+
boxShadow: '0 4px 14px rgba(0,0,0,0.3)',
|
|
68
|
+
}} />
|
|
69
|
+
</div>
|
|
70
|
+
</CloseupStage>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// ===== 特写二(35–44):开关从左拨到右 =====
|
|
75
|
+
if (f < C3) {
|
|
76
|
+
const t = f - C2;
|
|
77
|
+
const p = interpolate(t, [4, 7], [0, 1], {
|
|
78
|
+
easing: Easing.out(Easing.cubic), extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
79
|
+
});
|
|
80
|
+
const trackW = 560; const trackH = 240; const knob = 192; const pad = 24;
|
|
81
|
+
const knobX = pad + p * (trackW - knob - pad * 2); // 左 → 右
|
|
82
|
+
const trackBg = p < 0.5 ? G.mid : G.ink;
|
|
83
|
+
return (
|
|
84
|
+
<CloseupStage>
|
|
85
|
+
<div style={{
|
|
86
|
+
position: 'relative', width: trackW, height: trackH, borderRadius: trackH / 2,
|
|
87
|
+
background: trackBg, boxSizing: 'border-box',
|
|
88
|
+
}}>
|
|
89
|
+
<div style={{
|
|
90
|
+
position: 'absolute', top: pad, left: knobX,
|
|
91
|
+
width: knob, height: knob, borderRadius: knob / 2, background: G.card,
|
|
92
|
+
boxShadow: '0 6px 18px rgba(0,0,0,0.35)',
|
|
93
|
+
}} />
|
|
94
|
+
</div>
|
|
95
|
+
</CloseupStage>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// ===== 特写三(45–54):大数字翻牌 0 → 1(rotateX) =====
|
|
100
|
+
if (f < WHIP) {
|
|
101
|
+
const t = f - C3;
|
|
102
|
+
const p = interpolate(t, [4, 7], [0, 1], {
|
|
103
|
+
easing: Easing.inOut(Easing.cubic), extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
104
|
+
});
|
|
105
|
+
const showOne = p >= 0.5;
|
|
106
|
+
const angle = showOne ? (1 - p) * 2 * 90 : -p * 2 * 90; // 0→-90 折走,90→0 翻入
|
|
107
|
+
const digit = showOne ? '1' : '0';
|
|
108
|
+
return (
|
|
109
|
+
<CloseupStage>
|
|
110
|
+
<div style={{ perspective: 1200 }}>
|
|
111
|
+
<div style={{
|
|
112
|
+
width: 440, height: 560, borderRadius: 32, background: G.ink,
|
|
113
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
114
|
+
transform: `rotateX(${angle}deg)`, backfaceVisibility: 'hidden',
|
|
115
|
+
boxShadow: '0 8px 28px rgba(0,0,0,0.25)',
|
|
116
|
+
}}>
|
|
117
|
+
<div style={{
|
|
118
|
+
fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800,
|
|
119
|
+
fontSize: 420, color: '#ffffff', lineHeight: 1,
|
|
120
|
+
}}>
|
|
121
|
+
{digit}
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</CloseupStage>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// ===== 帧 55 起:甩回全景 + 结果卡片亮起 =====
|
|
130
|
+
const t = f - WHIP;
|
|
131
|
+
// whip:6f 从右侧 900px 高速滑入,poly(5) out 急减速;t≥6 恒为 0(真静止)
|
|
132
|
+
const whipX = t >= 6 ? 0 : interpolate(t, [0, 6], [900, 0], {
|
|
133
|
+
easing: Easing.out(Easing.poly(5)), extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
134
|
+
});
|
|
135
|
+
const speeding = t < 4; // 高速段:3 层错帧副本模拟模糊感
|
|
136
|
+
|
|
137
|
+
// 结果卡片:泛光 57–84 缓升后恒定(帧 84 起真静止);弹一下 57–64 后恒为 1
|
|
138
|
+
const glow = interpolate(f, [57, 84], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
139
|
+
const pop = f >= 64 ? 1 : interpolate(f, [57, 60, 64], [1, 1.07, 1], {
|
|
140
|
+
easing: Easing.out(Easing.cubic), extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
const dash = (x: number, opacity: number, key: string) => (
|
|
144
|
+
<div key={key} style={{ position: 'absolute', left: 0, top: 0, transform: `translateX(${x}px)`, opacity }}>
|
|
145
|
+
<FakeDashboard variant="A" />
|
|
146
|
+
</div>
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
return (
|
|
150
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, overflow: 'hidden', position: 'relative' }}>
|
|
151
|
+
{speeding && dash(whipX + 220, 0.18, 'echo2')}
|
|
152
|
+
{speeding && dash(whipX + 110, 0.35, 'echo1')}
|
|
153
|
+
{dash(whipX, 1, 'main')}
|
|
154
|
+
{/* 结果卡片提亮泛光 */}
|
|
155
|
+
<div style={{
|
|
156
|
+
position: 'absolute',
|
|
157
|
+
left: RESULT.left, top: RESULT.top, width: RESULT.w, height: RESULT.h,
|
|
158
|
+
transform: `translateX(${whipX}px) scale(${pop})`,
|
|
159
|
+
borderRadius: 14, boxSizing: 'border-box',
|
|
160
|
+
background: `rgba(255,255,255,${0.72 * glow})`,
|
|
161
|
+
border: `5px solid rgba(47,47,47,${glow})`,
|
|
162
|
+
boxShadow: `0 0 ${70 * glow}px rgba(255,255,255,${0.95 * glow}), 0 0 ${26 * glow}px rgba(47,47,47,${0.28 * glow})`,
|
|
163
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
164
|
+
opacity: glow,
|
|
165
|
+
}}>
|
|
166
|
+
<div style={{
|
|
167
|
+
fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800,
|
|
168
|
+
fontSize: 260, color: G.ink, lineHeight: 1,
|
|
169
|
+
}}>
|
|
170
|
+
1
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
);
|
|
175
|
+
};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// morph-from-primitive|原型变形
|
|
2
|
+
// 正圆呼吸一拍(anticipation) → path d 逐数值插值变形成 520×300 圆角矩形卡片轮廓
|
|
3
|
+
// → 卡片内部灰阶内容条淡入。全部帧驱动、确定性。
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
6
|
+
import { G } from '../_fixtures/Fixtures';
|
|
7
|
+
|
|
8
|
+
const CX = 960;
|
|
9
|
+
const CY = 540;
|
|
10
|
+
const R = 130;
|
|
11
|
+
const RECT_W = 520;
|
|
12
|
+
const RECT_H = 300;
|
|
13
|
+
const RECT_R = 20;
|
|
14
|
+
|
|
15
|
+
// ---- 同构 path:M + 8 段 cubic(4 直边段 + 4 圆角段),圆与圆角矩形共用锚点拓扑 ----
|
|
16
|
+
// 圆角矩形锚点(中心坐标系,顺时针,从右边上端点起):
|
|
17
|
+
// A0(hw,-ihh) 右边上 → A1(hw,ihh) 右边下 → A2(iw,hh) 底边右 → A3(-iw,hh) 底边左
|
|
18
|
+
// → A4(-hw,ihh) 左边下 → A5(-hw,-ihh) 左边上 → A6(-iw,-hh) 顶边左 → A7(iw,-hh) 顶边右 → A0
|
|
19
|
+
const hw = RECT_W / 2; // 260
|
|
20
|
+
const hh = RECT_H / 2; // 150
|
|
21
|
+
const iw = hw - RECT_R; // 240
|
|
22
|
+
const ihh = hh - RECT_R; // 130
|
|
23
|
+
const KAPPA = 0.5522847498;
|
|
24
|
+
|
|
25
|
+
type Seg = [number, number, number, number, number, number]; // c1x c1y c2x c2y x y
|
|
26
|
+
type Shape = { start: [number, number]; segs: Seg[] };
|
|
27
|
+
|
|
28
|
+
const line = (from: [number, number], to: [number, number]): Seg => [
|
|
29
|
+
from[0] + (to[0] - from[0]) / 3,
|
|
30
|
+
from[1] + (to[1] - from[1]) / 3,
|
|
31
|
+
from[0] + ((to[0] - from[0]) * 2) / 3,
|
|
32
|
+
from[1] + ((to[1] - from[1]) * 2) / 3,
|
|
33
|
+
to[0],
|
|
34
|
+
to[1],
|
|
35
|
+
];
|
|
36
|
+
// 90° 圆角弧 from → to(弧心 c):c1 = from + k·(to−c),c2 = to + k·(from−c)
|
|
37
|
+
const corner = (
|
|
38
|
+
from: [number, number],
|
|
39
|
+
to: [number, number],
|
|
40
|
+
c: [number, number]
|
|
41
|
+
): Seg => [
|
|
42
|
+
from[0] + KAPPA * (to[0] - c[0]),
|
|
43
|
+
from[1] + KAPPA * (to[1] - c[1]),
|
|
44
|
+
to[0] + KAPPA * (from[0] - c[0]),
|
|
45
|
+
to[1] + KAPPA * (from[1] - c[1]),
|
|
46
|
+
to[0],
|
|
47
|
+
to[1],
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
const rectAnchors: [number, number][] = [
|
|
51
|
+
[hw, -ihh],
|
|
52
|
+
[hw, ihh],
|
|
53
|
+
[iw, hh],
|
|
54
|
+
[-iw, hh],
|
|
55
|
+
[-hw, ihh],
|
|
56
|
+
[-hw, -ihh],
|
|
57
|
+
[-iw, -hh],
|
|
58
|
+
[iw, -hh],
|
|
59
|
+
];
|
|
60
|
+
const cornerCenters: [number, number][] = [
|
|
61
|
+
[iw, ihh], // A1→A2 右下
|
|
62
|
+
[-iw, ihh], // A3→A4 左下
|
|
63
|
+
[-iw, -ihh], // A5→A6 左上
|
|
64
|
+
[iw, -ihh], // A7→A0 右上
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
const rectShape: Shape = {
|
|
68
|
+
start: rectAnchors[0],
|
|
69
|
+
segs: [
|
|
70
|
+
line(rectAnchors[0], rectAnchors[1]),
|
|
71
|
+
corner(rectAnchors[1], rectAnchors[2], cornerCenters[0]),
|
|
72
|
+
line(rectAnchors[2], rectAnchors[3]),
|
|
73
|
+
corner(rectAnchors[3], rectAnchors[4], cornerCenters[1]),
|
|
74
|
+
line(rectAnchors[4], rectAnchors[5]),
|
|
75
|
+
corner(rectAnchors[5], rectAnchors[6], cornerCenters[2]),
|
|
76
|
+
line(rectAnchors[6], rectAnchors[7]),
|
|
77
|
+
corner(rectAnchors[7], rectAnchors[0], cornerCenters[3]),
|
|
78
|
+
],
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// 圆:锚点取矩形锚点的同方位角,段间用精确弧公式 k = 4/3·tan(Δθ/4)
|
|
82
|
+
const angles = rectAnchors.map(([x, y]) => Math.atan2(y, x));
|
|
83
|
+
const circAnchors: [number, number][] = angles.map((a) => [
|
|
84
|
+
R * Math.cos(a),
|
|
85
|
+
R * Math.sin(a),
|
|
86
|
+
]);
|
|
87
|
+
const arcSeg = (i: number): Seg => {
|
|
88
|
+
const a1 = angles[i];
|
|
89
|
+
let a2 = angles[(i + 1) % 8];
|
|
90
|
+
if (a2 <= a1) a2 += Math.PI * 2;
|
|
91
|
+
const k = (4 / 3) * Math.tan((a2 - a1) / 4);
|
|
92
|
+
const p1 = circAnchors[i];
|
|
93
|
+
const p2 = circAnchors[(i + 1) % 8];
|
|
94
|
+
return [
|
|
95
|
+
p1[0] - k * R * Math.sin(a1),
|
|
96
|
+
p1[1] + k * R * Math.cos(a1),
|
|
97
|
+
p2[0] + k * R * Math.sin(a2 % (Math.PI * 2)),
|
|
98
|
+
p2[1] - k * R * Math.cos(a2 % (Math.PI * 2)),
|
|
99
|
+
p2[0],
|
|
100
|
+
p2[1],
|
|
101
|
+
];
|
|
102
|
+
};
|
|
103
|
+
const circShape: Shape = {
|
|
104
|
+
start: circAnchors[0],
|
|
105
|
+
segs: [0, 1, 2, 3, 4, 5, 6, 7].map(arcSeg),
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const lerp = (a: number, b: number, t: number) => a + (b - a) * t;
|
|
109
|
+
const f2 = (n: number) => n.toFixed(2);
|
|
110
|
+
|
|
111
|
+
const morphPath = (t: number): string => {
|
|
112
|
+
const sx = lerp(circShape.start[0], rectShape.start[0], t);
|
|
113
|
+
const sy = lerp(circShape.start[1], rectShape.start[1], t);
|
|
114
|
+
let d = `M ${f2(CX + sx)} ${f2(CY + sy)}`;
|
|
115
|
+
for (let i = 0; i < 8; i++) {
|
|
116
|
+
const a = circShape.segs[i];
|
|
117
|
+
const b = rectShape.segs[i];
|
|
118
|
+
const v = a.map((n, j) => lerp(n, b[j], t));
|
|
119
|
+
d += ` C ${f2(CX + v[0])} ${f2(CY + v[1])} ${f2(CX + v[2])} ${f2(
|
|
120
|
+
CY + v[3]
|
|
121
|
+
)} ${f2(CX + v[4])} ${f2(CY + v[5])}`;
|
|
122
|
+
}
|
|
123
|
+
return d + ' Z';
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// ---- 时间轴(30fps,总 140f)----
|
|
127
|
+
// 0–10 静置圆 | 10–30 呼吸一拍 scale 1→1.06→1 | 30–54 变形 24f
|
|
128
|
+
// | 56–68 内容条淡入 12f | 68–140 真静止 72f
|
|
129
|
+
export const MorphFromPrimitive: React.FC = () => {
|
|
130
|
+
const frame = useCurrentFrame();
|
|
131
|
+
|
|
132
|
+
const breath = interpolate(frame, [10, 20, 30], [1, 1.12, 1], {
|
|
133
|
+
easing: Easing.inOut(Easing.cubic),
|
|
134
|
+
extrapolateLeft: 'clamp',
|
|
135
|
+
extrapolateRight: 'clamp',
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
const t = interpolate(frame, [30, 54], [0, 1], {
|
|
139
|
+
easing: Easing.inOut(Easing.cubic),
|
|
140
|
+
extrapolateLeft: 'clamp',
|
|
141
|
+
extrapolateRight: 'clamp',
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
const contentOpacity = interpolate(frame, [56, 68], [0, 1], {
|
|
145
|
+
easing: Easing.out(Easing.cubic),
|
|
146
|
+
extrapolateLeft: 'clamp',
|
|
147
|
+
extrapolateRight: 'clamp',
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
const d = morphPath(t);
|
|
151
|
+
|
|
152
|
+
return (
|
|
153
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative' }}>
|
|
154
|
+
<svg
|
|
155
|
+
width={1920}
|
|
156
|
+
height={1080}
|
|
157
|
+
viewBox="0 0 1920 1080"
|
|
158
|
+
style={{ position: 'absolute', inset: 0 }}
|
|
159
|
+
>
|
|
160
|
+
<g transform={`translate(${CX} ${CY}) scale(${breath}) translate(${-CX} ${-CY})`}>
|
|
161
|
+
<path d={d} fill="none" stroke={G.ink} strokeWidth={3} />
|
|
162
|
+
</g>
|
|
163
|
+
</svg>
|
|
164
|
+
{/* 卡片内容条(参考 line-boil 描边卡内容),变形完成后淡入 */}
|
|
165
|
+
<div
|
|
166
|
+
style={{
|
|
167
|
+
position: 'absolute',
|
|
168
|
+
left: CX - RECT_W / 2,
|
|
169
|
+
top: CY - RECT_H / 2,
|
|
170
|
+
width: RECT_W,
|
|
171
|
+
height: RECT_H,
|
|
172
|
+
boxSizing: 'border-box',
|
|
173
|
+
padding: 36,
|
|
174
|
+
display: 'flex',
|
|
175
|
+
flexDirection: 'column',
|
|
176
|
+
gap: 18,
|
|
177
|
+
opacity: contentOpacity,
|
|
178
|
+
}}
|
|
179
|
+
>
|
|
180
|
+
<div style={{ height: 26, width: '58%', background: G.bar, borderRadius: 13 }} />
|
|
181
|
+
<div style={{ height: 16, width: '86%', background: G.line, borderRadius: 8 }} />
|
|
182
|
+
<div style={{ height: 16, width: '72%', background: G.line, borderRadius: 8 }} />
|
|
183
|
+
<div style={{ marginTop: 'auto', display: 'flex', gap: 14, alignItems: 'center' }}>
|
|
184
|
+
<div style={{ width: 40, height: 40, borderRadius: 20, background: G.mid }} />
|
|
185
|
+
<div style={{ height: 16, width: 120, background: G.line, borderRadius: 8 }} />
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
);
|
|
190
|
+
};
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
// neon-frame-forerun v3 —— v2 基础上按用户意见新增(clickup04 五张):
|
|
2
|
+
// 框内各组件/文字初始悬空在页面上空(3D 抬起),悬空时在面板上映射
|
|
3
|
+
// 同形软影,随页面点亮进程同步先后贴合(FloatWrap 模式,对标截图③:
|
|
4
|
+
// tab/组件悬空带错位影 → ④全部贴合)。v2 已有:强透视直角框左缘中点
|
|
5
|
+
// 两头奔画、面板原地由暗转亮、背景霓虹管框群中亮尾熄。
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
8
|
+
|
|
9
|
+
const easeFall = Easing.bezier(0.5, 0.05, 0.6, 1); // 加速下落、末端软着陆
|
|
10
|
+
|
|
11
|
+
/* 悬浮 + 同形软影:h=悬浮高度(px)。本体向左上抬起,原位留模糊压暗同形影,
|
|
12
|
+
* h→0 时重合、影子消失(对标批次11 GrazeFaceTour FloatWrap) */
|
|
13
|
+
const FloatWrap: React.FC<{ h: number; children: React.ReactNode }> = ({ h, children }) => (
|
|
14
|
+
<div style={{ position: 'relative' }}>
|
|
15
|
+
{h > 1 && (
|
|
16
|
+
<div style={{
|
|
17
|
+
position: 'absolute', inset: 0,
|
|
18
|
+
transform: `translate(${h * 0.26}px, ${h * 0.48}px) scale(${1 + h * 0.0012})`,
|
|
19
|
+
filter: `blur(${2.5 + h * 0.09}px) brightness(0.32) saturate(0.4)`,
|
|
20
|
+
opacity: Math.min(0.4, 0.16 + h * 0.005),
|
|
21
|
+
pointerEvents: 'none',
|
|
22
|
+
}}>{children}</div>
|
|
23
|
+
)}
|
|
24
|
+
<div style={{ transform: `translate(${-h * 0.36}px, ${-h * 0.82}px)` }}>{children}</div>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
/* land=贴合完成时刻(0..1),之前从 H 高度加速贴落 */
|
|
29
|
+
const liftOf = (t: number, land: number, H: number) => {
|
|
30
|
+
const FALL = 0.3;
|
|
31
|
+
const p = Math.min(1, Math.max(0, (t - (land - FALL)) / FALL));
|
|
32
|
+
return (1 - easeFall(p)) * H;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const mulberry32 = (a: number) => () => {
|
|
36
|
+
let t = (a += 0x6d2b79f5);
|
|
37
|
+
t = Math.imul(t ^ (t >>> 15), t | 1);
|
|
38
|
+
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
|
|
39
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const ink = '#3c3c3a';
|
|
43
|
+
const mid = '#9a9a98';
|
|
44
|
+
const line = '#e3e3e1';
|
|
45
|
+
|
|
46
|
+
const PW = 1330;
|
|
47
|
+
const PH = 900;
|
|
48
|
+
const PL = 1000; // 归一路径长
|
|
49
|
+
|
|
50
|
+
// 直角矩形路径:从左缘中点出发(对应截图①左缘先亮)
|
|
51
|
+
const FRAME_D = `M 0 ${PH / 2} L 0 0 L ${PW} 0 L ${PW} ${PH} L 0 ${PH} Z`;
|
|
52
|
+
|
|
53
|
+
const Chip: React.FC<{ w: number }> = ({ w }) => (
|
|
54
|
+
<div style={{
|
|
55
|
+
width: w, height: 74, background: '#fdfdfc', border: `2px solid ${line}`,
|
|
56
|
+
borderRadius: 10, padding: '12px 14px', boxSizing: 'border-box',
|
|
57
|
+
display: 'flex', flexDirection: 'column', gap: 9,
|
|
58
|
+
}}>
|
|
59
|
+
<div style={{ height: 11, width: '70%', background: '#b5b5b3', borderRadius: 5 }} />
|
|
60
|
+
<div style={{ height: 9, width: '48%', background: line, borderRadius: 5 }} />
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
/* t = 贴落进程(0..1)。各组件按页面展示顺序(侧栏自上而下、主区自上而下)
|
|
65
|
+
* 错峰从空中贴落,悬空时投同形软影(对标截图③虚影→④⑤贴合) */
|
|
66
|
+
const GrayHome: React.FC<{ t?: number }> = ({ t = 1 }) => {
|
|
67
|
+
const L = (land: number, H = 72) => liftOf(t, land, H * 1.7);
|
|
68
|
+
return (
|
|
69
|
+
<div style={{ width: PW, height: PH, background: '#f5f5f4', borderRadius: 6, display: 'flex', overflow: 'hidden', boxSizing: 'border-box' }}>
|
|
70
|
+
<div style={{ width: 290, borderRight: `2px solid ${line}`, padding: '26px 24px', boxSizing: 'border-box' }}>
|
|
71
|
+
<FloatWrap h={L(0.24, 84)}>
|
|
72
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 10, marginBottom: 28 }}>
|
|
73
|
+
<div style={{ width: 28, height: 28, borderRadius: 8, background: ink }} />
|
|
74
|
+
<div style={{ height: 15, width: 88, background: ink, borderRadius: 7 }} />
|
|
75
|
+
</div>
|
|
76
|
+
</FloatWrap>
|
|
77
|
+
{[76, 56, 96, 110, 66, 60].map((w, i) => (
|
|
78
|
+
<FloatWrap key={i} h={L(0.3 + i * 0.045, 66)}>
|
|
79
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 11, height: 34 }}>
|
|
80
|
+
<div style={{ width: 17, height: 17, borderRadius: 5, background: mid }} />
|
|
81
|
+
<div style={{ height: 10, width: w, background: '#c7c7c5', borderRadius: 5 }} />
|
|
82
|
+
</div>
|
|
83
|
+
</FloatWrap>
|
|
84
|
+
))}
|
|
85
|
+
<FloatWrap h={L(0.56, 62)}>
|
|
86
|
+
<div style={{ height: 11, width: 70, background: '#b0b0ae', borderRadius: 5, margin: '24px 0 12px' }} />
|
|
87
|
+
</FloatWrap>
|
|
88
|
+
{[104, 126, 96, 118, 88].map((w, i) => (
|
|
89
|
+
<FloatWrap key={i} h={L(0.62 + i * 0.05, 66)}>
|
|
90
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 11, height: 32 }}>
|
|
91
|
+
<div style={{ width: 16, height: 16, borderRadius: 4, background: '#b8b8b6' }} />
|
|
92
|
+
<div style={{ height: 10, width: w, background: '#cfcfcd', borderRadius: 5 }} />
|
|
93
|
+
</div>
|
|
94
|
+
</FloatWrap>
|
|
95
|
+
))}
|
|
96
|
+
</div>
|
|
97
|
+
<div style={{ flex: 1, padding: '30px 40px', boxSizing: 'border-box' }}>
|
|
98
|
+
<FloatWrap h={L(0.26, 90)}>
|
|
99
|
+
<div style={{ height: 24, width: 130, background: '#565654', borderRadius: 10, marginBottom: 22 }} />
|
|
100
|
+
</FloatWrap>
|
|
101
|
+
<FloatWrap h={L(0.34, 80)}>
|
|
102
|
+
<div style={{ height: 46, border: `2px solid ${line}`, borderRadius: 12, marginBottom: 26, display: 'flex', alignItems: 'center', padding: '0 16px', background: '#f5f5f4' }}>
|
|
103
|
+
<div style={{ width: 17, height: 17, borderRadius: 9, border: `2px solid ${mid}` }} />
|
|
104
|
+
<div style={{ height: 10, width: 250, background: line, borderRadius: 5, marginLeft: 12 }} />
|
|
105
|
+
</div>
|
|
106
|
+
</FloatWrap>
|
|
107
|
+
<div style={{ display: 'flex', gap: 16, flexWrap: 'wrap', marginBottom: 30 }}>
|
|
108
|
+
{[0, 1, 2, 3, 4, 5, 6].map((i) => (
|
|
109
|
+
<FloatWrap key={i} h={L(0.42 + i * 0.04, 76)}>
|
|
110
|
+
<Chip w={222} />
|
|
111
|
+
</FloatWrap>
|
|
112
|
+
))}
|
|
113
|
+
</div>
|
|
114
|
+
<FloatWrap h={L(0.72, 60)}>
|
|
115
|
+
<div style={{ display: 'flex', gap: 18, marginBottom: 18 }}>
|
|
116
|
+
{[54, 84, 50, 82].map((w, i) => (
|
|
117
|
+
<div key={i} style={{ height: 11, width: w, background: i === 0 ? '#8a8a88' : line, borderRadius: 5 }} />
|
|
118
|
+
))}
|
|
119
|
+
</div>
|
|
120
|
+
</FloatWrap>
|
|
121
|
+
{[0, 1, 2, 3].map((i) => (
|
|
122
|
+
<FloatWrap key={i} h={L(0.78 + i * 0.055, 64)}>
|
|
123
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 14, height: 46, borderBottom: `2px solid ${line}` }}>
|
|
124
|
+
<div style={{ width: 13, height: 13, borderRadius: 7, background: '#c26a6a' }} />
|
|
125
|
+
<div style={{ height: 11, width: 160 + ((i * 37) % 70), background: '#b6b6b4', borderRadius: 5 }} />
|
|
126
|
+
<div style={{ marginLeft: 'auto', display: 'flex', gap: 7 }}>
|
|
127
|
+
{[0, 1, 2].map((k) => <div key={k} style={{ width: 20, height: 20, borderRadius: 10, background: '#d2d2d0' }} />)}
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</FloatWrap>
|
|
131
|
+
))}
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// 背景霓虹管框:大、亮、带透视错落(截图③④)
|
|
138
|
+
type BgFrame = { x: number; y: number; w: number; h: number; hue: string; phase: number; period: number; skew: number };
|
|
139
|
+
const rng = mulberry32(20260718);
|
|
140
|
+
const HUES = ['#b06af0', '#e879c9', '#f0a35c', '#6a7df0', '#e0679a', '#8a5cf0', '#c06af0'];
|
|
141
|
+
const BG_FRAMES: BgFrame[] = Array.from({ length: 18 }).map(() => ({
|
|
142
|
+
x: rng() * 2000 - 120, y: rng() * 1100 - 60,
|
|
143
|
+
w: 160 + rng() * 480, h: 70 + rng() * 220,
|
|
144
|
+
hue: HUES[Math.floor(rng() * HUES.length)],
|
|
145
|
+
phase: rng() * 90, period: 55 + rng() * 70,
|
|
146
|
+
skew: -14 + rng() * 10,
|
|
147
|
+
}));
|
|
148
|
+
|
|
149
|
+
export const NeonFrameForerun: React.FC = () => {
|
|
150
|
+
const frame = useCurrentFrame();
|
|
151
|
+
// 主框描画:左缘中点向两头奔跑,26 帧成型(截图①→②)
|
|
152
|
+
const trace = interpolate(frame, [2, 28], [0, 1], {
|
|
153
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
154
|
+
easing: Easing.bezier(0.3, 0.1, 0.3, 1),
|
|
155
|
+
});
|
|
156
|
+
// 面板原地显影:框成型后内容从近黑到暗灰(截图②),再全亮(截图③)
|
|
157
|
+
const lit = interpolate(frame, [24, 46, 78], [0.0, 0.3, 1], {
|
|
158
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
159
|
+
easing: Easing.bezier(0.35, 0, 0.3, 1),
|
|
160
|
+
});
|
|
161
|
+
// 主框独立描边可见度:面板亮起后并入面板 rim 辉光(截图③以后细线淡出,糊辉光留下)
|
|
162
|
+
const frameLine = interpolate(frame, [50, 90], [1, 0], {
|
|
163
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
164
|
+
});
|
|
165
|
+
const rimGlow = interpolate(frame, [28, 60, 108, 132], [0.9, 1, 0.75, 0.5], {
|
|
166
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
167
|
+
});
|
|
168
|
+
// 背景:中段全亮(截图③④)→ 尾段熄灭(截图⑤)
|
|
169
|
+
const bgLit = interpolate(frame, [8, 44, 96, 128], [0.15, 1, 0.85, 0.06], {
|
|
170
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
171
|
+
});
|
|
172
|
+
// 强透视 → 缓和:框飞入时角度大,面板亮起后落定(截图①梯形→③④缓斜)
|
|
173
|
+
const settle = interpolate(frame, [0, 70], [0, 1], {
|
|
174
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
175
|
+
easing: Easing.out(Easing.cubic),
|
|
176
|
+
});
|
|
177
|
+
const rotY = -26 + 15 * settle;
|
|
178
|
+
const rotX = 7 - 3 * settle;
|
|
179
|
+
const rotZ = -9 + 4.5 * settle;
|
|
180
|
+
const scale = 0.94 + 0.1 * settle;
|
|
181
|
+
const headP = trace * (PL / 2);
|
|
182
|
+
// 组件贴落进程:与页面点亮(lit 24→78)同步推进,稍滞后收尾——
|
|
183
|
+
// "和页面的展示同步完成贴合"
|
|
184
|
+
const drop = interpolate(frame, [34, 98], [0, 1], {
|
|
185
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
return (
|
|
189
|
+
<AbsoluteFill style={{ background: '#060509', overflow: 'hidden' }}>
|
|
190
|
+
{/* 背景霓虹管框群 */}
|
|
191
|
+
<svg width={1920} height={1080} style={{ position: 'absolute' }}>
|
|
192
|
+
<defs>
|
|
193
|
+
<filter id="bgblur" x="-60%" y="-60%" width="220%" height="220%">
|
|
194
|
+
<feGaussianBlur stdDeviation={7} />
|
|
195
|
+
</filter>
|
|
196
|
+
</defs>
|
|
197
|
+
{BG_FRAMES.map((b, i) => {
|
|
198
|
+
const breath = 0.5 + 0.5 * Math.sin(((frame + b.phase) / b.period) * Math.PI * 2);
|
|
199
|
+
const op = bgLit * (0.18 + 0.4 * breath);
|
|
200
|
+
return (
|
|
201
|
+
<g key={i} transform={`translate(${b.x} ${b.y}) skewY(${b.skew * 0.4}) skewX(${b.skew})`}>
|
|
202
|
+
<rect width={b.w} height={b.h} rx={4} fill="none"
|
|
203
|
+
stroke={b.hue} strokeWidth={7} filter="url(#bgblur)" opacity={op * 0.8} />
|
|
204
|
+
<rect width={b.w} height={b.h} rx={4} fill="none"
|
|
205
|
+
stroke={b.hue} strokeWidth={2} opacity={op} />
|
|
206
|
+
</g>
|
|
207
|
+
);
|
|
208
|
+
})}
|
|
209
|
+
</svg>
|
|
210
|
+
{/* 主体:强透视斜置的框 + 面板 */}
|
|
211
|
+
<div style={{ position: 'absolute', inset: 0, perspective: 1600, perspectiveOrigin: '42% 40%' }}>
|
|
212
|
+
<div style={{
|
|
213
|
+
position: 'absolute', left: (1920 - PW) / 2, top: (1080 - PH) / 2 - 10,
|
|
214
|
+
transform: `scale(${scale}) rotateY(${rotY}deg) rotateX(${rotX}deg) rotateZ(${rotZ}deg)`,
|
|
215
|
+
transformStyle: 'preserve-3d',
|
|
216
|
+
}}>
|
|
217
|
+
{/* 面板:原地由暗转亮(无位移缩放) */}
|
|
218
|
+
<div style={{ opacity: trace > 0.55 ? 1 : 0, filter: `brightness(${Math.max(0.05, lit)})` }}>
|
|
219
|
+
<GrayHome t={drop} />
|
|
220
|
+
{/* 未点亮时的冷色压暗罩 */}
|
|
221
|
+
<div style={{
|
|
222
|
+
position: 'absolute', inset: 0, borderRadius: 6,
|
|
223
|
+
background: 'linear-gradient(150deg, rgba(30,20,60,0.5), rgba(0,0,0,0.78))',
|
|
224
|
+
opacity: 1 - lit,
|
|
225
|
+
}} />
|
|
226
|
+
</div>
|
|
227
|
+
{/* 面板 rim 辉光(框光并入后由它承担,底缘最强——对应截图③④底/右缘粉光) */}
|
|
228
|
+
<div style={{
|
|
229
|
+
position: 'absolute', left: -10, top: -10, width: PW + 20, height: PH + 20,
|
|
230
|
+
borderRadius: 12, opacity: rimGlow * Math.min(1, trace * 1.6),
|
|
231
|
+
boxShadow: '-18px -8px 42px 6px rgba(185,95,240,0.42), 22px 24px 56px 12px rgba(240,150,90,0.30), 0 14px 80px 22px rgba(200,100,220,0.20)',
|
|
232
|
+
}} />
|
|
233
|
+
{/* 霓虹描边框:左缘中点出发两头奔画,直角转角 */}
|
|
234
|
+
<svg width={PW + 80} height={PH + 80} viewBox={`-40 -40 ${PW + 80} ${PH + 80}`}
|
|
235
|
+
style={{ position: 'absolute', left: -40, top: -40 }}>
|
|
236
|
+
<defs>
|
|
237
|
+
<linearGradient id="mainfg" gradientUnits="userSpaceOnUse" x1={0} y1={0} x2={PW} y2={PH}>
|
|
238
|
+
<stop offset="0%" stopColor="#c07af5" />
|
|
239
|
+
<stop offset="38%" stopColor="#e58bd8" />
|
|
240
|
+
<stop offset="72%" stopColor="#f0b06a" />
|
|
241
|
+
<stop offset="100%" stopColor="#e8925c" />
|
|
242
|
+
</linearGradient>
|
|
243
|
+
<filter id="fblur" x="-40%" y="-40%" width="180%" height="180%">
|
|
244
|
+
<feGaussianBlur stdDeviation={10} />
|
|
245
|
+
</filter>
|
|
246
|
+
<filter id="fblur2" x="-40%" y="-40%" width="180%" height="180%">
|
|
247
|
+
<feGaussianBlur stdDeviation={3} />
|
|
248
|
+
</filter>
|
|
249
|
+
</defs>
|
|
250
|
+
{[1, -1].map((dir) => (
|
|
251
|
+
<g key={dir}>
|
|
252
|
+
{/* 糊辉光层:一直保留 */}
|
|
253
|
+
<path d={FRAME_D} pathLength={PL} fill="none" stroke="url(#mainfg)"
|
|
254
|
+
strokeWidth={14} strokeLinecap="butt" filter="url(#fblur)"
|
|
255
|
+
strokeDasharray={`${headP} ${PL}`}
|
|
256
|
+
strokeDashoffset={dir === 1 ? 0 : -(PL - headP)}
|
|
257
|
+
opacity={0.6 * rimGlow} />
|
|
258
|
+
{/* 亮芯细线:面板亮起后淡出并入 rim */}
|
|
259
|
+
<path d={FRAME_D} pathLength={PL} fill="none" stroke="url(#mainfg)"
|
|
260
|
+
strokeWidth={3.5} strokeLinecap="butt"
|
|
261
|
+
strokeDasharray={`${headP} ${PL}`}
|
|
262
|
+
strokeDashoffset={dir === 1 ? 0 : -(PL - headP)}
|
|
263
|
+
opacity={0.95 * Math.max(frameLine, 0.25)} />
|
|
264
|
+
{/* 奔跑亮头 */}
|
|
265
|
+
{trace < 1 && (
|
|
266
|
+
<path d={FRAME_D} pathLength={PL} fill="none" stroke="#ffffff"
|
|
267
|
+
strokeWidth={6} strokeLinecap="round" filter="url(#fblur2)"
|
|
268
|
+
strokeDasharray={`8 ${PL}`}
|
|
269
|
+
strokeDashoffset={dir === 1 ? -(Math.max(0, headP - 8)) : -(PL - headP)}
|
|
270
|
+
opacity={0.95} />
|
|
271
|
+
)}
|
|
272
|
+
</g>
|
|
273
|
+
))}
|
|
274
|
+
</svg>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
</AbsoluteFill>
|
|
278
|
+
);
|
|
279
|
+
};
|