hyper-animator-codex 0.7.1 → 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 +51 -3
- package/bin/hyper-animator-codex.mjs +1 -1
- package/lib/minimax-config.mjs +3 -3
- package/package.json +1 -1
- 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,215 @@
|
|
|
1
|
+
// input-morphs-into-logo —— slack-promo 40–41s
|
|
2
|
+
// 消息输入框(一行文字 + 发送键)点击发送:文字飞走,输入框收缩变形成
|
|
3
|
+
// 圆角胶囊;上方依次落下 圆、胶囊、小圆,四粒元素集结排成抽象 logo
|
|
4
|
+
// 单瓣(泪滴 + 胶囊的抽象组合,非真 Slack logo),落定呼吸。
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import {
|
|
7
|
+
AbsoluteFill,
|
|
8
|
+
useCurrentFrame,
|
|
9
|
+
useVideoConfig,
|
|
10
|
+
interpolate,
|
|
11
|
+
spring,
|
|
12
|
+
Easing,
|
|
13
|
+
} from 'remotion';
|
|
14
|
+
|
|
15
|
+
const BG = '#3d1f47'; // 深梅紫
|
|
16
|
+
const CX = 960;
|
|
17
|
+
const CY = 560;
|
|
18
|
+
|
|
19
|
+
// 落定后的抽象单瓣布局(横向胶囊在中,上方泪滴圆、右侧胶囊、下方小圆)
|
|
20
|
+
// 单瓣 = 主胶囊(输入框变) + 大圆 + 竖胶囊 + 小圆 集结成花瓣角
|
|
21
|
+
const FINAL = {
|
|
22
|
+
mainPill: { x: CX - 150, y: CY + 10, w: 300, h: 108, r: 54 }, // 横胶囊
|
|
23
|
+
bigDot: { x: CX - 204, y: CY + 10, d: 108 }, // 左端圆(与胶囊左帽相切,构成泪滴感)
|
|
24
|
+
vPill: { x: CX + 96, y: CY - 152, w: 108, h: 260, r: 54 }, // 右上竖胶囊
|
|
25
|
+
smallDot: { x: CX + 150, y: CY - 226, d: 76 }, // 竖胶囊顶上的小圆
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const InputMorphsIntoLogo: React.FC = () => {
|
|
29
|
+
const f = useCurrentFrame();
|
|
30
|
+
const { fps } = useVideoConfig();
|
|
31
|
+
|
|
32
|
+
// —— 时间轴 ——
|
|
33
|
+
const CLICK = 22; // 光标按下发送
|
|
34
|
+
const FLY = 26; // 文字飞走
|
|
35
|
+
const MORPH = 34; // 输入框开始收缩变形
|
|
36
|
+
const DROPS = [56, 70, 84]; // 大圆 / 竖胶囊 / 小圆 依次落下
|
|
37
|
+
const SETTLE = 108; // 全部落定,开始呼吸
|
|
38
|
+
|
|
39
|
+
// 输入框初始几何
|
|
40
|
+
const box0 = { x: CX - 430, y: CY - 60, w: 860, h: 120, r: 26 };
|
|
41
|
+
|
|
42
|
+
// 光标移入 + 点击
|
|
43
|
+
const cursorX = interpolate(f, [0, CLICK], [1500, box0.x + box0.w - 60], {
|
|
44
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic),
|
|
45
|
+
});
|
|
46
|
+
const cursorY = interpolate(f, [0, CLICK], [900, box0.y + 60], {
|
|
47
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic),
|
|
48
|
+
});
|
|
49
|
+
const press = f >= CLICK && f <= CLICK + 4 ? 0.82 : 1;
|
|
50
|
+
const cursorGone = interpolate(f, [FLY + 4, FLY + 12], [1, 0], {
|
|
51
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// 发送键按下反馈
|
|
55
|
+
const btnFlash = f >= CLICK && f <= CLICK + 6 ? 1 : 0;
|
|
56
|
+
|
|
57
|
+
// 文字飞走:整行向右上飞出 + 加速
|
|
58
|
+
const flyT = interpolate(f, [FLY, FLY + 12], [0, 1], {
|
|
59
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.in(Easing.cubic),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// 输入框 → 主胶囊 morph(几何插值,带一点弹性落定)
|
|
63
|
+
const m = spring({ frame: f - MORPH, fps, config: { damping: 13, stiffness: 90, mass: 0.9 } });
|
|
64
|
+
const bx = interpolate(m, [0, 1], [box0.x, FINAL.mainPill.x]);
|
|
65
|
+
const by = interpolate(m, [0, 1], [box0.y, FINAL.mainPill.y - FINAL.mainPill.h / 2 + 60 - 60]);
|
|
66
|
+
const bw = interpolate(m, [0, 1], [box0.w, FINAL.mainPill.w]);
|
|
67
|
+
const bh = interpolate(m, [0, 1], [box0.h, FINAL.mainPill.h]);
|
|
68
|
+
const br = interpolate(m, [0, 1], [box0.r, FINAL.mainPill.r]);
|
|
69
|
+
const bColor = m; // 边框白框 → 实心暖白
|
|
70
|
+
|
|
71
|
+
// 三粒元素依次从画外上方落下(spring 落定,带轻微过冲)
|
|
72
|
+
const dropSpring = (i: number) =>
|
|
73
|
+
spring({ frame: f - DROPS[i], fps, config: { damping: 12, stiffness: 110, mass: 0.85 } });
|
|
74
|
+
|
|
75
|
+
// 落定呼吸:整瓣轻微 scale 脉动
|
|
76
|
+
const breathe = f >= SETTLE ? 1 + 0.03 * Math.sin((f - SETTLE) * 0.18) : 1;
|
|
77
|
+
|
|
78
|
+
const dropY = (finalY: number, s: number) => interpolate(s, [0, 1], [-260, finalY]);
|
|
79
|
+
|
|
80
|
+
const s0 = dropSpring(0);
|
|
81
|
+
const s1 = dropSpring(1);
|
|
82
|
+
const s2 = dropSpring(2);
|
|
83
|
+
|
|
84
|
+
const WHITE = '#fdf6ee';
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<AbsoluteFill style={{ background: BG, fontFamily: 'Helvetica, Arial, sans-serif', overflow: 'hidden' }}>
|
|
88
|
+
<AbsoluteFill style={{ transform: `scale(${breathe})`, transformOrigin: `${CX}px ${CY - 40}px` }}>
|
|
89
|
+
{/* 主体:输入框 → 主胶囊 */}
|
|
90
|
+
<div
|
|
91
|
+
style={{
|
|
92
|
+
position: 'absolute',
|
|
93
|
+
left: bx,
|
|
94
|
+
top: by,
|
|
95
|
+
width: bw,
|
|
96
|
+
height: bh,
|
|
97
|
+
borderRadius: br,
|
|
98
|
+
border: `4px solid ${WHITE}`,
|
|
99
|
+
background: `rgba(253,246,238,${bColor})`,
|
|
100
|
+
boxSizing: 'border-box',
|
|
101
|
+
display: 'flex',
|
|
102
|
+
alignItems: 'center',
|
|
103
|
+
padding: '0 34px',
|
|
104
|
+
boxShadow: m > 0.6 ? '0 0 60px rgba(253,246,238,0.25)' : 'none',
|
|
105
|
+
}}
|
|
106
|
+
>
|
|
107
|
+
{/* 一行文字(发送后飞走) */}
|
|
108
|
+
<div
|
|
109
|
+
style={{
|
|
110
|
+
fontSize: 44,
|
|
111
|
+
color: WHITE,
|
|
112
|
+
whiteSpace: 'nowrap',
|
|
113
|
+
opacity: (1 - flyT) * (1 - m),
|
|
114
|
+
transform: `translate(${flyT * 700}px, ${-flyT * 380}px) rotate(${-flyT * 10}deg)`,
|
|
115
|
+
}}
|
|
116
|
+
>
|
|
117
|
+
Ready, set, go!
|
|
118
|
+
{/* 光标闪烁 */}
|
|
119
|
+
<span style={{ opacity: Math.floor(f / 8) % 2 === 0 && f < FLY ? 1 : 0 }}>|</span>
|
|
120
|
+
</div>
|
|
121
|
+
{/* 发送键 */}
|
|
122
|
+
<div
|
|
123
|
+
style={{
|
|
124
|
+
marginLeft: 'auto',
|
|
125
|
+
width: 72,
|
|
126
|
+
height: 72,
|
|
127
|
+
borderRadius: 18,
|
|
128
|
+
background: btnFlash ? '#ffffff' : 'rgba(253,246,238,0.9)',
|
|
129
|
+
opacity: 1 - m,
|
|
130
|
+
display: 'flex',
|
|
131
|
+
alignItems: 'center',
|
|
132
|
+
justifyContent: 'center',
|
|
133
|
+
transform: `scale(${press})`,
|
|
134
|
+
flexShrink: 0,
|
|
135
|
+
}}
|
|
136
|
+
>
|
|
137
|
+
{/* 纸飞机三角 */}
|
|
138
|
+
<svg width={34} height={34} viewBox="0 0 34 34">
|
|
139
|
+
<path d="M3 17 L31 4 L20 30 L15 19 Z" fill={BG} />
|
|
140
|
+
</svg>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
{/* 大圆(第一粒,落在主胶囊左端形成泪滴组合) */}
|
|
145
|
+
{f >= DROPS[0] && (
|
|
146
|
+
<div
|
|
147
|
+
style={{
|
|
148
|
+
position: 'absolute',
|
|
149
|
+
left: FINAL.bigDot.x - FINAL.bigDot.d / 2,
|
|
150
|
+
top: dropY(FINAL.bigDot.y - FINAL.bigDot.d / 2, s0),
|
|
151
|
+
width: FINAL.bigDot.d,
|
|
152
|
+
height: FINAL.bigDot.d,
|
|
153
|
+
borderRadius: '50%',
|
|
154
|
+
background: WHITE,
|
|
155
|
+
boxShadow: '0 0 40px rgba(253,246,238,0.2)',
|
|
156
|
+
}}
|
|
157
|
+
/>
|
|
158
|
+
)}
|
|
159
|
+
|
|
160
|
+
{/* 竖胶囊(第二粒) */}
|
|
161
|
+
{f >= DROPS[1] && (
|
|
162
|
+
<div
|
|
163
|
+
style={{
|
|
164
|
+
position: 'absolute',
|
|
165
|
+
left: FINAL.vPill.x - FINAL.vPill.w / 2,
|
|
166
|
+
top: dropY(FINAL.vPill.y - FINAL.vPill.h / 2, s1),
|
|
167
|
+
width: FINAL.vPill.w,
|
|
168
|
+
height: FINAL.vPill.h,
|
|
169
|
+
borderRadius: FINAL.vPill.r,
|
|
170
|
+
background: WHITE,
|
|
171
|
+
boxShadow: '0 0 40px rgba(253,246,238,0.2)',
|
|
172
|
+
}}
|
|
173
|
+
/>
|
|
174
|
+
)}
|
|
175
|
+
|
|
176
|
+
{/* 小圆(第三粒,压在竖胶囊顶端旁) */}
|
|
177
|
+
{f >= DROPS[2] && (
|
|
178
|
+
<div
|
|
179
|
+
style={{
|
|
180
|
+
position: 'absolute',
|
|
181
|
+
left: FINAL.smallDot.x - FINAL.smallDot.d / 2,
|
|
182
|
+
top: dropY(FINAL.smallDot.y - FINAL.smallDot.d / 2, s2),
|
|
183
|
+
width: FINAL.smallDot.d,
|
|
184
|
+
height: FINAL.smallDot.d,
|
|
185
|
+
borderRadius: '50%',
|
|
186
|
+
background: '#e8b84b',
|
|
187
|
+
boxShadow: '0 0 40px rgba(232,184,75,0.35)',
|
|
188
|
+
}}
|
|
189
|
+
/>
|
|
190
|
+
)}
|
|
191
|
+
</AbsoluteFill>
|
|
192
|
+
|
|
193
|
+
{/* 光标 */}
|
|
194
|
+
<div
|
|
195
|
+
style={{
|
|
196
|
+
position: 'absolute',
|
|
197
|
+
left: cursorX,
|
|
198
|
+
top: cursorY,
|
|
199
|
+
opacity: cursorGone,
|
|
200
|
+
transform: `scale(${press})`,
|
|
201
|
+
zIndex: 50,
|
|
202
|
+
}}
|
|
203
|
+
>
|
|
204
|
+
<svg width={40} height={44} viewBox="0 0 40 44">
|
|
205
|
+
<path
|
|
206
|
+
d="M4 2 L4 34 L13 26 L19 40 L26 37 L20 23 L32 22 Z"
|
|
207
|
+
fill="#ffffff"
|
|
208
|
+
stroke={BG}
|
|
209
|
+
strokeWidth={2}
|
|
210
|
+
/>
|
|
211
|
+
</svg>
|
|
212
|
+
</div>
|
|
213
|
+
</AbsoluteFill>
|
|
214
|
+
);
|
|
215
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// voice-waveform-live —— raycast-teams 19.5–26s:
|
|
2
|
+
// 录音胶囊内实时声纹:细竖条随"说话"起伏(种子随机+相邻插值),
|
|
3
|
+
// 说话时中部高耸、停顿缩成点线,波形从右往左滚动;右端提交钮。
|
|
4
|
+
// 演:说(0.5–1.9s) → 停(1.9–2.7s) → 说(2.7–4.1s) → 提交(4.1–5s)。
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
7
|
+
|
|
8
|
+
const mulberry32 = (a: number) => () => {
|
|
9
|
+
let t = (a += 0x6d2b79f5);
|
|
10
|
+
t = Math.imul(t ^ (t >>> 15), t | 1);
|
|
11
|
+
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
|
|
12
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
// 值噪声:整数采样点取种子随机值,采样点之间平滑插值
|
|
16
|
+
const noiseAt = (x: number) => {
|
|
17
|
+
const i = Math.floor(x);
|
|
18
|
+
const fr = x - i;
|
|
19
|
+
const a = mulberry32(i * 7919 + 13)();
|
|
20
|
+
const b = mulberry32((i + 1) * 7919 + 13)();
|
|
21
|
+
const s = fr * fr * (3 - 2 * fr); // smoothstep
|
|
22
|
+
return a + (b - a) * s;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// 说话包络(按"声音发生时刻"计):说→停→说
|
|
26
|
+
const envelope = (t: number) => {
|
|
27
|
+
const seg = (a: number, b: number, rise = 5, fall = 7) =>
|
|
28
|
+
interpolate(t, [a, a + rise, b - fall, b], [0, 1, 1, 0], {
|
|
29
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
30
|
+
});
|
|
31
|
+
// 两段说话内部再叠音节起伏
|
|
32
|
+
const talk = Math.max(seg(15, 57), seg(80, 124));
|
|
33
|
+
const syllable = 0.55 + 0.45 * noiseAt(t / 4.5 + 200);
|
|
34
|
+
return talk * syllable;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const N_BARS = 64;
|
|
38
|
+
|
|
39
|
+
export const VoiceWaveformLive: React.FC = () => {
|
|
40
|
+
const f = useCurrentFrame();
|
|
41
|
+
|
|
42
|
+
// 提交动作
|
|
43
|
+
const submitAt = 126;
|
|
44
|
+
const submitted = f >= submitAt;
|
|
45
|
+
const btnPress = interpolate(f, [submitAt, submitAt + 3, submitAt + 9], [1, 0.82, 1], {
|
|
46
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
47
|
+
easing: Easing.out(Easing.ease),
|
|
48
|
+
});
|
|
49
|
+
// 提交后波形整体塌缩 + 胶囊微缩离场感
|
|
50
|
+
const collapse = interpolate(f, [submitAt, submitAt + 12], [1, 0.06], {
|
|
51
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
52
|
+
easing: Easing.in(Easing.ease),
|
|
53
|
+
});
|
|
54
|
+
const capsuleScale = interpolate(f, [submitAt, submitAt + 20], [1, 0.96], {
|
|
55
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
56
|
+
easing: Easing.out(Easing.ease),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// 胶囊入场
|
|
60
|
+
const inOp = interpolate(f, [0, 12], [0, 1], {
|
|
61
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
62
|
+
easing: Easing.out(Easing.ease),
|
|
63
|
+
});
|
|
64
|
+
const inScale = interpolate(f, [0, 14], [1.04, 1], {
|
|
65
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
66
|
+
easing: Easing.out(Easing.cubic),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const SCROLL = 1.6; // 帧→采样时间比:滚动速度
|
|
70
|
+
|
|
71
|
+
const bars = Array.from({ length: N_BARS }).map((_, i) => {
|
|
72
|
+
// 从右往左滚动:最右条是"现在",越靠左越旧
|
|
73
|
+
const sampleT = f - (N_BARS - 1 - i) * SCROLL;
|
|
74
|
+
const env = sampleT < 0 ? 0 : envelope(sampleT);
|
|
75
|
+
// 空间权重:中部高耸
|
|
76
|
+
const center = Math.pow(Math.sin((i / (N_BARS - 1)) * Math.PI), 0.8);
|
|
77
|
+
const jitter = 0.35 + 0.65 * noiseAt(sampleT * 1.7 + i * 0.13);
|
|
78
|
+
const hRaw = env * center * jitter;
|
|
79
|
+
const h = Math.max(5, hRaw * 235 * collapse); // 静默=5px 点线
|
|
80
|
+
return h;
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
const nowEnv = envelope(f);
|
|
84
|
+
const micGlow = submitted ? 0 : nowEnv;
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<AbsoluteFill style={{ background: '#08080a', overflow: 'hidden' }}>
|
|
88
|
+
{/* 暗场绸缎底光 */}
|
|
89
|
+
<div style={{
|
|
90
|
+
position: 'absolute', left: -300, top: -200, width: 2600, height: 1700,
|
|
91
|
+
background: 'radial-gradient(closest-side, rgba(130,131,140,0.16), rgba(0,0,0,0) 70%)',
|
|
92
|
+
transform: `translate(${f * 0.6}px, ${f * 0.25}px)`,
|
|
93
|
+
}} />
|
|
94
|
+
|
|
95
|
+
<AbsoluteFill style={{ alignItems: 'center', justifyContent: 'center' }}>
|
|
96
|
+
<div
|
|
97
|
+
style={{
|
|
98
|
+
width: 1320, height: 300, borderRadius: 150,
|
|
99
|
+
opacity: inOp,
|
|
100
|
+
transform: `scale(${inScale * capsuleScale})`,
|
|
101
|
+
background:
|
|
102
|
+
'linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.08) 40%, rgba(0,0,0,0.3))',
|
|
103
|
+
padding: 2.5, boxSizing: 'border-box',
|
|
104
|
+
}}
|
|
105
|
+
>
|
|
106
|
+
<div
|
|
107
|
+
style={{
|
|
108
|
+
width: '100%', height: '100%', borderRadius: 148,
|
|
109
|
+
background: 'rgba(24,25,29,0.72)',
|
|
110
|
+
backdropFilter: 'blur(24px)',
|
|
111
|
+
boxShadow: 'inset 0 1px 0 rgba(255,255,255,0.10), 0 40px 100px rgba(0,0,0,0.55)',
|
|
112
|
+
display: 'flex', alignItems: 'center', gap: 36,
|
|
113
|
+
padding: '0 44px', boxSizing: 'border-box',
|
|
114
|
+
}}
|
|
115
|
+
>
|
|
116
|
+
{/* 麦克风圆钮:说话时发亮 */}
|
|
117
|
+
<div
|
|
118
|
+
style={{
|
|
119
|
+
width: 96, height: 96, borderRadius: 48, flexShrink: 0,
|
|
120
|
+
background: `rgba(255,255,255,${0.08 + micGlow * 0.14})`,
|
|
121
|
+
border: '2.5px solid rgba(255,255,255,0.28)',
|
|
122
|
+
boxShadow: `0 0 ${28 * micGlow}px rgba(235,235,245,${micGlow * 0.5})`,
|
|
123
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
124
|
+
fontSize: 46, filter: 'grayscale(1)', boxSizing: 'border-box',
|
|
125
|
+
}}
|
|
126
|
+
>
|
|
127
|
+
🎙️
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
{/* 声纹条区 */}
|
|
131
|
+
<div style={{
|
|
132
|
+
flex: 1, height: 244, display: 'flex', alignItems: 'center',
|
|
133
|
+
gap: 6, overflow: 'hidden',
|
|
134
|
+
}}>
|
|
135
|
+
{bars.map((h, i) => (
|
|
136
|
+
<div
|
|
137
|
+
key={i}
|
|
138
|
+
style={{
|
|
139
|
+
flex: 1, height: h, borderRadius: 4,
|
|
140
|
+
background: `rgba(240,240,248,${0.4 + (h / 235) * 0.6})`,
|
|
141
|
+
}}
|
|
142
|
+
/>
|
|
143
|
+
))}
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
{/* 提交钮:白圆 + 上箭头 */}
|
|
147
|
+
<div
|
|
148
|
+
style={{
|
|
149
|
+
width: 96, height: 96, borderRadius: 48, flexShrink: 0,
|
|
150
|
+
background: submitted ? '#ffffff' : 'rgba(255,255,255,0.92)',
|
|
151
|
+
transform: `scale(${btnPress})`,
|
|
152
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
153
|
+
boxShadow: submitted
|
|
154
|
+
? '0 0 60px rgba(255,255,255,0.55)'
|
|
155
|
+
: '0 8px 24px rgba(0,0,0,0.4)',
|
|
156
|
+
}}
|
|
157
|
+
>
|
|
158
|
+
<svg width="44" height="44" viewBox="0 0 24 24">
|
|
159
|
+
<path
|
|
160
|
+
d="M12 20V5M12 5l-6.5 6.5M12 5l6.5 6.5"
|
|
161
|
+
stroke="#111114" strokeWidth="3" strokeLinecap="round"
|
|
162
|
+
strokeLinejoin="round" fill="none"
|
|
163
|
+
/>
|
|
164
|
+
</svg>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
</AbsoluteFill>
|
|
169
|
+
</AbsoluteFill>
|
|
170
|
+
);
|
|
171
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { Card, TitleBlock } from '../_fixtures/Fixtures';
|
|
4
|
+
|
|
5
|
+
// bento-light-up:暗场里 3×2 bento 墙压暗待命,随节拍逐格点亮——
|
|
6
|
+
// 边框流光先描一圈(琥珀),格内内容随后提亮上浮弹出;六格全亮后整体微推收住。
|
|
7
|
+
// 节拍:0–20 建立(hold) → 每格间隔 12f 依次激活(描边 8f + 内容弹出 8f)
|
|
8
|
+
// → ~96f 全亮 → 96–121 scale 1→1.04 缓推 → 121–150 静止收尾。
|
|
9
|
+
|
|
10
|
+
const BG = '#2a2a28';
|
|
11
|
+
const AMBER = '#e8b45e';
|
|
12
|
+
const FIRST = 20; // 首格激活帧
|
|
13
|
+
const GAP = 12; // 格间节拍
|
|
14
|
+
const CELL_W = 480;
|
|
15
|
+
const CELL_H = 330;
|
|
16
|
+
const GUT = 44;
|
|
17
|
+
const LEFT = (1920 - (CELL_W * 3 + GUT * 2)) / 2;
|
|
18
|
+
const TOP = (1080 - (CELL_H * 2 + GUT)) / 2 + 30;
|
|
19
|
+
|
|
20
|
+
const Cell: React.FC<{ i: number; frame: number }> = ({ i, frame }) => {
|
|
21
|
+
const start = FIRST + i * GAP;
|
|
22
|
+
const col = i % 3;
|
|
23
|
+
const row = Math.floor(i / 3);
|
|
24
|
+
const x = LEFT + col * (CELL_W + GUT);
|
|
25
|
+
const y = TOP + row * (CELL_H + GUT);
|
|
26
|
+
|
|
27
|
+
// ① 边框流光:pathLength=100 的 dashoffset 描边,8f 走完一圈
|
|
28
|
+
const draw = interpolate(frame, [start, start + 8], [0, 1], {
|
|
29
|
+
extrapolateLeft: 'clamp',
|
|
30
|
+
extrapolateRight: 'clamp',
|
|
31
|
+
easing: Easing.out(Easing.cubic),
|
|
32
|
+
});
|
|
33
|
+
// 描完后流光退火:琥珀亮边 → 弱化成常亮细边
|
|
34
|
+
const strokeFade = interpolate(frame, [start + 12, start + 26], [1, 0.4], {
|
|
35
|
+
extrapolateLeft: 'clamp',
|
|
36
|
+
extrapolateRight: 'clamp',
|
|
37
|
+
easing: Easing.out(Easing.quad),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// ② 内容提亮 + 上浮弹出:描边过半后接力,8f 弹出(back-out 带一点过冲)
|
|
41
|
+
const lit = interpolate(frame, [start + 6, start + 14], [0, 1], {
|
|
42
|
+
extrapolateLeft: 'clamp',
|
|
43
|
+
extrapolateRight: 'clamp',
|
|
44
|
+
easing: Easing.out(Easing.cubic),
|
|
45
|
+
});
|
|
46
|
+
const rise = interpolate(frame, [start + 6, start + 14], [0, 1], {
|
|
47
|
+
extrapolateLeft: 'clamp',
|
|
48
|
+
extrapolateRight: 'clamp',
|
|
49
|
+
easing: Easing.bezier(0.3, 1.4, 0.5, 1),
|
|
50
|
+
});
|
|
51
|
+
const opacity = 0.18 + 0.82 * lit;
|
|
52
|
+
const ty = 20 * (1 - rise);
|
|
53
|
+
// seed 正弦哈希做每格微差(点亮瞬间的辉光强度略有随机感)
|
|
54
|
+
const jitter = Math.abs(Math.sin(i * 127.3) * 43758.5453 % 1);
|
|
55
|
+
const glow = lit * (1 - lit) * 4 * (14 + jitter * 6); // 点亮中段最亮的辉光脉冲
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<div style={{ position: 'absolute', left: x, top: y, width: CELL_W, height: CELL_H }}>
|
|
59
|
+
{/* 暗态卡 + 点亮后的内容(同一张卡,靠 opacity/translateY 提亮浮出) */}
|
|
60
|
+
<div
|
|
61
|
+
style={{
|
|
62
|
+
opacity,
|
|
63
|
+
transform: `translateY(${ty}px)`,
|
|
64
|
+
boxShadow: lit > 0.5 ? `0 0 ${glow}px rgba(232,180,94,${0.35 * lit * (1 - lit) * 4})` : 'none',
|
|
65
|
+
borderRadius: 14,
|
|
66
|
+
}}
|
|
67
|
+
>
|
|
68
|
+
<Card w={CELL_W} h={CELL_H} seed={i + 1} />
|
|
69
|
+
</div>
|
|
70
|
+
{/* 边框流光:SVG rect 描边一圈 */}
|
|
71
|
+
{draw > 0 && (
|
|
72
|
+
<svg
|
|
73
|
+
width={CELL_W}
|
|
74
|
+
height={CELL_H}
|
|
75
|
+
viewBox={`0 0 ${CELL_W} ${CELL_H}`}
|
|
76
|
+
style={{ position: 'absolute', left: 0, top: ty, overflow: 'visible' }}
|
|
77
|
+
>
|
|
78
|
+
<rect
|
|
79
|
+
x={2}
|
|
80
|
+
y={2}
|
|
81
|
+
width={CELL_W - 4}
|
|
82
|
+
height={CELL_H - 4}
|
|
83
|
+
rx={14}
|
|
84
|
+
fill="none"
|
|
85
|
+
stroke={AMBER}
|
|
86
|
+
strokeWidth={4}
|
|
87
|
+
pathLength={100}
|
|
88
|
+
strokeDasharray={100}
|
|
89
|
+
strokeDashoffset={100 * (1 - draw)}
|
|
90
|
+
opacity={strokeFade}
|
|
91
|
+
style={{ filter: `drop-shadow(0 0 ${6 + jitter * 4}px ${AMBER})` }}
|
|
92
|
+
/>
|
|
93
|
+
</svg>
|
|
94
|
+
)}
|
|
95
|
+
</div>
|
|
96
|
+
);
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const BentoLightUp: React.FC = () => {
|
|
100
|
+
const frame = useCurrentFrame();
|
|
101
|
+
|
|
102
|
+
// ③ 六格全亮(~96f)后整体缓推 scale 1→1.04,25f 收住,之后真静止
|
|
103
|
+
const push = interpolate(frame, [96, 121], [1, 1.04], {
|
|
104
|
+
extrapolateLeft: 'clamp',
|
|
105
|
+
extrapolateRight: 'clamp',
|
|
106
|
+
easing: Easing.bezier(0.33, 0, 0.2, 1),
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// 标题随首格点亮微微提亮,交代场景
|
|
110
|
+
const titleLit = interpolate(frame, [FIRST, FIRST + 20], [0.25, 0.75], {
|
|
111
|
+
extrapolateLeft: 'clamp',
|
|
112
|
+
extrapolateRight: 'clamp',
|
|
113
|
+
easing: Easing.out(Easing.quad),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
return (
|
|
117
|
+
<AbsoluteFill style={{ background: BG, overflow: 'hidden' }}>
|
|
118
|
+
<div
|
|
119
|
+
style={{
|
|
120
|
+
position: 'absolute',
|
|
121
|
+
inset: 0,
|
|
122
|
+
transform: `scale(${push})`,
|
|
123
|
+
transformOrigin: '960px 540px',
|
|
124
|
+
}}
|
|
125
|
+
>
|
|
126
|
+
<div style={{ position: 'absolute', left: LEFT, top: TOP - 110, opacity: titleLit, filter: 'invert(1)' }}>
|
|
127
|
+
<TitleBlock text="Features" size={64} />
|
|
128
|
+
</div>
|
|
129
|
+
{Array.from({ length: 6 }).map((_, i) => (
|
|
130
|
+
<Cell key={i} i={i} frame={frame} />
|
|
131
|
+
))}
|
|
132
|
+
</div>
|
|
133
|
+
</AbsoluteFill>
|
|
134
|
+
);
|
|
135
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// blinds-slice|百叶窗切条错峰擦除
|
|
2
|
+
// FakeDashboard A → B。12 根 160px 竖条,从左到右 delay=列号×2f,
|
|
3
|
+
// 每条 10f 内完成翻换:条内 A scaleX 1→0(origin 左缘)与 B scaleX 0→1
|
|
4
|
+
// (origin 右缘)共用同一进度 p(Easing.in(cubic)),交接缝恒等于
|
|
5
|
+
// x+160(1-p),数学上无露底。缝上亮线(柔光+暗描边+白核)随波扫过。
|
|
6
|
+
// 波 20–52f;52f 起摘罩(整页 B 直出、条结构与亮线全部卸载),
|
|
7
|
+
// 52–150f 真静止 98f ≥ 40f。帧确定,无随机源。
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
10
|
+
import { FakeDashboard } from '../_fixtures/Fixtures';
|
|
11
|
+
|
|
12
|
+
const STRIPS = 12;
|
|
13
|
+
const W = 160; // 每条宽 12×160 = 1920
|
|
14
|
+
const WAVE_START = 20;
|
|
15
|
+
const STAGGER = 2; // 列号 × 2f
|
|
16
|
+
const FLIP = 10; // 每条 10f 完成翻换
|
|
17
|
+
const WAVE_END = WAVE_START + (STRIPS - 1) * STAGGER + FLIP; // 52
|
|
18
|
+
|
|
19
|
+
// 条内某页的切片:外层 160 宽裁剪,内层整页 1920 负 margin 对位
|
|
20
|
+
const Slice: React.FC<{ x: number; variant: 'A' | 'B' }> = ({ x, variant }) => (
|
|
21
|
+
<div style={{ width: 1920, height: 1080, marginLeft: -x }}>
|
|
22
|
+
<FakeDashboard variant={variant} />
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
export const BlindsSlice: React.FC = () => {
|
|
27
|
+
const frame = useCurrentFrame();
|
|
28
|
+
|
|
29
|
+
// 摘罩:波完成后条结构全部卸载,B 整页直出
|
|
30
|
+
if (frame >= WAVE_END) {
|
|
31
|
+
return (
|
|
32
|
+
<AbsoluteFill style={{ background: '#ececea' }}>
|
|
33
|
+
<FakeDashboard variant="B" />
|
|
34
|
+
</AbsoluteFill>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const seams: { x: number; opacity: number }[] = [];
|
|
39
|
+
|
|
40
|
+
const strips = Array.from({ length: STRIPS }).map((_, i) => {
|
|
41
|
+
const x = i * W;
|
|
42
|
+
const start = WAVE_START + i * STAGGER;
|
|
43
|
+
const end = start + FLIP;
|
|
44
|
+
|
|
45
|
+
// 未开始:纯 A 切片;已完成:纯 B 切片
|
|
46
|
+
if (frame < start) {
|
|
47
|
+
return (
|
|
48
|
+
<div key={i} style={{ position: 'absolute', left: x, top: 0, width: W, height: 1080, overflow: 'hidden' }}>
|
|
49
|
+
<Slice x={x} variant="A" />
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
if (frame >= end) {
|
|
54
|
+
return (
|
|
55
|
+
<div key={i} style={{ position: 'absolute', left: x, top: 0, width: W, height: 1080, overflow: 'hidden' }}>
|
|
56
|
+
<Slice x={x} variant="B" />
|
|
57
|
+
</div>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// 翻换中:A、B 共用同一进度 p——A 宽 160(1-p) 靠左,B 宽 160p 靠右,
|
|
62
|
+
// 交接点恒为 x+160(1-p),无露底
|
|
63
|
+
const p = interpolate(frame, [start, end], [0, 1], {
|
|
64
|
+
extrapolateLeft: 'clamp',
|
|
65
|
+
extrapolateRight: 'clamp',
|
|
66
|
+
easing: Easing.in(Easing.cubic),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// 缝亮线:进出各 2f 线性淡入淡出
|
|
70
|
+
const seamOpacity = Math.min(
|
|
71
|
+
interpolate(frame, [start, start + 2], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' }),
|
|
72
|
+
interpolate(frame, [end - 2, end], [1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' }),
|
|
73
|
+
);
|
|
74
|
+
seams.push({ x: x + W * (1 - p), opacity: seamOpacity });
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<div key={i} style={{ position: 'absolute', left: x, top: 0, width: W, height: 1080, overflow: 'hidden' }}>
|
|
78
|
+
{/* A:向左缘收缩 */}
|
|
79
|
+
<div style={{ position: 'absolute', inset: 0, overflow: 'hidden', transform: `scaleX(${1 - p})`, transformOrigin: '0% 50%' }}>
|
|
80
|
+
<Slice x={x} variant="A" />
|
|
81
|
+
</div>
|
|
82
|
+
{/* B:从右缘展开 */}
|
|
83
|
+
<div style={{ position: 'absolute', inset: 0, overflow: 'hidden', transform: `scaleX(${p})`, transformOrigin: '100% 50%' }}>
|
|
84
|
+
<Slice x={x} variant="B" />
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<AbsoluteFill style={{ background: '#ececea' }}>
|
|
92
|
+
{strips}
|
|
93
|
+
{/* 缝亮线:白底判例——纯提亮不可见,柔光 + 暗描边 + 白核三层 */}
|
|
94
|
+
{seams.length > 0 && (
|
|
95
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0, pointerEvents: 'none' }}>
|
|
96
|
+
{seams.map((s, i) => (
|
|
97
|
+
<g key={i} opacity={s.opacity}>
|
|
98
|
+
<line x1={s.x} y1={0} x2={s.x} y2={1080} stroke="rgba(255,255,255,0.45)" strokeWidth={16} />
|
|
99
|
+
<line x1={s.x} y1={0} x2={s.x} y2={1080} stroke="rgba(0,0,0,0.55)" strokeWidth={6} />
|
|
100
|
+
<line x1={s.x} y1={0} x2={s.x} y2={1080} stroke="rgba(255,255,255,0.95)" strokeWidth={3} />
|
|
101
|
+
</g>
|
|
102
|
+
))}
|
|
103
|
+
</svg>
|
|
104
|
+
)}
|
|
105
|
+
</AbsoluteFill>
|
|
106
|
+
);
|
|
107
|
+
};
|