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,189 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { FakeDashboard, G } from '../_fixtures/Fixtures';
|
|
4
|
+
|
|
5
|
+
// split-flap-flip:机场翻牌字。每字符一个深底翻牌格(上下两半),
|
|
6
|
+
// 逐格翻过 3 个乱码中间态后咔哒停在目标字,左→右 4f 级联成波。
|
|
7
|
+
// 节拍:0–21 建立(整排乱码静止)→ 22 起级联翻牌 → 78 全部停定 → 静止到 140。
|
|
8
|
+
|
|
9
|
+
const TEXT = 'SHIP FASTER';
|
|
10
|
+
const CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#$%&';
|
|
11
|
+
const START = 22; // 级联起始帧
|
|
12
|
+
const STAGGER = 4; // 字符间级联延迟
|
|
13
|
+
const FLIP = 5; // 单次翻牌时长
|
|
14
|
+
const NFLIP = 3; // 每字符翻 3 次(2 个乱码中间态 + 1 次落到目标字)
|
|
15
|
+
const CELL_W = 118;
|
|
16
|
+
const CELL_H = 156;
|
|
17
|
+
|
|
18
|
+
// seed 正弦哈希(禁 Math.random)
|
|
19
|
+
const rnd = (a: number) => {
|
|
20
|
+
const x = Math.sin(a * 127.3) * 43758.5453;
|
|
21
|
+
return x - Math.floor(x);
|
|
22
|
+
};
|
|
23
|
+
const garble = (i: number, k: number) =>
|
|
24
|
+
CHARSET[Math.floor(rnd(i * 7.13 + k * 3.71 + 1) * CHARSET.length)];
|
|
25
|
+
|
|
26
|
+
const FLAP_BG = '#262624';
|
|
27
|
+
const FLAP_INK = '#f4f4f2';
|
|
28
|
+
|
|
29
|
+
// 半格:上/下半各自 overflow hidden,内部整字定位错半格露出对应一半
|
|
30
|
+
const Half: React.FC<{ ch: string; part: 'top' | 'bottom' }> = ({ ch, part }) => (
|
|
31
|
+
<div
|
|
32
|
+
style={{
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
left: 0,
|
|
35
|
+
top: part === 'top' ? 0 : CELL_H / 2,
|
|
36
|
+
width: CELL_W,
|
|
37
|
+
height: CELL_H / 2,
|
|
38
|
+
overflow: 'hidden',
|
|
39
|
+
background: FLAP_BG,
|
|
40
|
+
borderRadius: part === 'top' ? '10px 10px 0 0' : '0 0 10px 10px',
|
|
41
|
+
}}
|
|
42
|
+
>
|
|
43
|
+
<div
|
|
44
|
+
style={{
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
left: 0,
|
|
47
|
+
top: part === 'top' ? 0 : -CELL_H / 2,
|
|
48
|
+
width: CELL_W,
|
|
49
|
+
height: CELL_H,
|
|
50
|
+
display: 'flex',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
justifyContent: 'center',
|
|
53
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
54
|
+
fontWeight: 800,
|
|
55
|
+
fontSize: 100,
|
|
56
|
+
color: FLAP_INK,
|
|
57
|
+
}}
|
|
58
|
+
>
|
|
59
|
+
{ch}
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
const FlapCell: React.FC<{ target: string; i: number; frame: number }> = ({
|
|
65
|
+
target,
|
|
66
|
+
i,
|
|
67
|
+
frame,
|
|
68
|
+
}) => {
|
|
69
|
+
// 该格的字符序列:2 个乱码 → 1 个乱码 → 目标字(首态也是乱码,建立段可见)
|
|
70
|
+
const seq = [garble(i, 0), garble(i, 1), garble(i, 2), target];
|
|
71
|
+
const local = frame - (START + i * STAGGER);
|
|
72
|
+
const done = local >= NFLIP * FLIP;
|
|
73
|
+
|
|
74
|
+
// 停定咔哒:整格下沉回弹(1px 肉眼无感,放大到 6px 才有"咔哒")
|
|
75
|
+
const clickY = done
|
|
76
|
+
? interpolate(local, [15, 17, 19, 22], [0, 6, -1.5, 0], {
|
|
77
|
+
extrapolateLeft: 'clamp',
|
|
78
|
+
extrapolateRight: 'clamp',
|
|
79
|
+
easing: Easing.out(Easing.quad),
|
|
80
|
+
})
|
|
81
|
+
: 0;
|
|
82
|
+
|
|
83
|
+
let topCh = seq[0];
|
|
84
|
+
let bottomCh = seq[0];
|
|
85
|
+
let flap: React.ReactNode = null;
|
|
86
|
+
|
|
87
|
+
if (done) {
|
|
88
|
+
topCh = target;
|
|
89
|
+
bottomCh = target;
|
|
90
|
+
} else if (local > 0) {
|
|
91
|
+
const k = Math.min(NFLIP - 1, Math.floor(local / FLIP));
|
|
92
|
+
const from = seq[k];
|
|
93
|
+
const to = seq[k + 1];
|
|
94
|
+
const p = Easing.in(Easing.quad)((local - k * FLIP) / FLIP); // 重力感:越掉越快
|
|
95
|
+
topCh = to; // 上半静态:翻开后露出下一字符的上半
|
|
96
|
+
bottomCh = from; // 下半静态:保持旧字符直到活动叶盖下来
|
|
97
|
+
if (p < 0.5) {
|
|
98
|
+
// 前半程:旧字符上半叶 0→-90 掉下
|
|
99
|
+
const deg = p * 2 * 90;
|
|
100
|
+
flap = (
|
|
101
|
+
<div
|
|
102
|
+
style={{
|
|
103
|
+
position: 'absolute',
|
|
104
|
+
inset: 0,
|
|
105
|
+
transform: `rotateX(${-deg}deg)`,
|
|
106
|
+
transformOrigin: `center ${CELL_H / 2}px`,
|
|
107
|
+
backfaceVisibility: 'hidden',
|
|
108
|
+
filter: `brightness(${1 - p * 2 * 0.45})`,
|
|
109
|
+
zIndex: 2,
|
|
110
|
+
}}
|
|
111
|
+
>
|
|
112
|
+
<Half ch={from} part="top" />
|
|
113
|
+
</div>
|
|
114
|
+
);
|
|
115
|
+
} else {
|
|
116
|
+
// 后半程:新字符下半叶 90→0 拍下盖住旧下半
|
|
117
|
+
const deg = 90 - (p - 0.5) * 2 * 90;
|
|
118
|
+
flap = (
|
|
119
|
+
<div
|
|
120
|
+
style={{
|
|
121
|
+
position: 'absolute',
|
|
122
|
+
inset: 0,
|
|
123
|
+
transform: `rotateX(${deg}deg)`,
|
|
124
|
+
transformOrigin: `center ${CELL_H / 2}px`,
|
|
125
|
+
backfaceVisibility: 'hidden',
|
|
126
|
+
filter: `brightness(${0.55 + (p - 0.5) * 2 * 0.45})`,
|
|
127
|
+
zIndex: 2,
|
|
128
|
+
}}
|
|
129
|
+
>
|
|
130
|
+
<Half ch={to} part="bottom" />
|
|
131
|
+
</div>
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return (
|
|
137
|
+
<div
|
|
138
|
+
style={{
|
|
139
|
+
position: 'relative',
|
|
140
|
+
width: CELL_W,
|
|
141
|
+
height: CELL_H,
|
|
142
|
+
transform: `translateY(${clickY}px)`,
|
|
143
|
+
perspective: 420,
|
|
144
|
+
borderRadius: 10,
|
|
145
|
+
boxShadow: '0 6px 18px rgba(0,0,0,0.3)',
|
|
146
|
+
}}
|
|
147
|
+
>
|
|
148
|
+
<Half ch={topCh} part="top" />
|
|
149
|
+
<Half ch={bottomCh} part="bottom" />
|
|
150
|
+
{flap}
|
|
151
|
+
{/* 中缝铰链线 */}
|
|
152
|
+
<div
|
|
153
|
+
style={{
|
|
154
|
+
position: 'absolute',
|
|
155
|
+
left: 0,
|
|
156
|
+
top: CELL_H / 2 - 2,
|
|
157
|
+
width: CELL_W,
|
|
158
|
+
height: 4,
|
|
159
|
+
background: '#141412',
|
|
160
|
+
zIndex: 3,
|
|
161
|
+
}}
|
|
162
|
+
/>
|
|
163
|
+
</div>
|
|
164
|
+
);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export const SplitFlapFlip: React.FC = () => {
|
|
168
|
+
const frame = useCurrentFrame();
|
|
169
|
+
let letterIdx = 0;
|
|
170
|
+
return (
|
|
171
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
172
|
+
{/* 背景假页面压暗,突出翻牌板 */}
|
|
173
|
+
<div style={{ position: 'absolute', inset: 0, opacity: 0.3, filter: 'saturate(0.8)' }}>
|
|
174
|
+
<FakeDashboard variant="A" />
|
|
175
|
+
</div>
|
|
176
|
+
<AbsoluteFill style={{ alignItems: 'center', justifyContent: 'center' }}>
|
|
177
|
+
<div style={{ display: 'flex', gap: 12, alignItems: 'center' }}>
|
|
178
|
+
{TEXT.split('').map((ch, idx) => {
|
|
179
|
+
if (ch === ' ') {
|
|
180
|
+
return <div key={idx} style={{ width: 52 }} />;
|
|
181
|
+
}
|
|
182
|
+
const i = letterIdx++;
|
|
183
|
+
return <FlapCell key={idx} target={ch} i={i} frame={frame} />;
|
|
184
|
+
})}
|
|
185
|
+
</div>
|
|
186
|
+
</AbsoluteFill>
|
|
187
|
+
</AbsoluteFill>
|
|
188
|
+
);
|
|
189
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// corner-spotlight-reveal —— 对标 clickup-30.mp4 41.5–44.6s:
|
|
2
|
+
// 黑场上,左上角径向聚光从小到大扩张,把白色 Inbox 界面逐步"点亮",
|
|
3
|
+
// 照到的区域显影、照不到的沉黑,最终全屏亮起。光即转场。
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
6
|
+
|
|
7
|
+
const FONT = '"Avenir Next", "Helvetica Neue", Helvetica, sans-serif';
|
|
8
|
+
|
|
9
|
+
// 灰阶 Inbox 界面(自绘,替代真 UI)
|
|
10
|
+
const InboxPanel: React.FC = () => (
|
|
11
|
+
<div
|
|
12
|
+
style={{
|
|
13
|
+
width: 1920,
|
|
14
|
+
height: 1080,
|
|
15
|
+
background: '#f6f6f5',
|
|
16
|
+
fontFamily: FONT,
|
|
17
|
+
padding: '90px 120px',
|
|
18
|
+
boxSizing: 'border-box',
|
|
19
|
+
color: '#2c2c2c',
|
|
20
|
+
}}
|
|
21
|
+
>
|
|
22
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 26 }}>
|
|
23
|
+
<div style={{ fontSize: 118, fontWeight: 700, letterSpacing: -2 }}>Inbox</div>
|
|
24
|
+
<div
|
|
25
|
+
style={{
|
|
26
|
+
width: 0, height: 0, marginTop: 26,
|
|
27
|
+
borderLeft: '16px solid transparent',
|
|
28
|
+
borderRight: '16px solid transparent',
|
|
29
|
+
borderTop: '20px solid #3a3a3a',
|
|
30
|
+
}}
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
<div style={{ display: 'flex', gap: 64, marginTop: 90, fontSize: 44, color: '#555' }}>
|
|
34
|
+
<div style={{ background: '#e9e8f6', color: '#5b55c8', padding: '10px 34px', borderRadius: 14, fontWeight: 600 }}>All</div>
|
|
35
|
+
<div style={{ padding: '10px 0' }}>Tasks</div>
|
|
36
|
+
<div style={{ padding: '10px 0' }}>Docs</div>
|
|
37
|
+
<div style={{ padding: '10px 0' }}>People</div>
|
|
38
|
+
<div style={{ padding: '10px 0' }}>Chat</div>
|
|
39
|
+
</div>
|
|
40
|
+
{[0, 1, 2].map((row) => (
|
|
41
|
+
<div key={row} style={{ display: 'flex', alignItems: 'center', gap: 30, marginTop: row === 0 ? 96 : 64 }}>
|
|
42
|
+
<div style={{ width: 42, height: 42, border: '3px solid #c9c9c7', borderRadius: 10 }} />
|
|
43
|
+
<div style={{ width: 14, height: 14, borderRadius: 7, background: '#5b55c8' }} />
|
|
44
|
+
<div style={{ width: 56, height: 56, borderRadius: 28, background: '#efe4e2' }} />
|
|
45
|
+
<div>
|
|
46
|
+
<div style={{ display: 'flex', gap: 22, alignItems: 'center' }}>
|
|
47
|
+
<div style={{ height: 22, width: 220 + ((row * 67) % 90), background: '#3f3f3f', borderRadius: 11 }} />
|
|
48
|
+
<div style={{ width: 8, height: 8, borderRadius: 4, background: '#bbb' }} />
|
|
49
|
+
<div style={{ height: 18, width: 260, background: '#c9c9c7', borderRadius: 9 }} />
|
|
50
|
+
</div>
|
|
51
|
+
<div style={{ display: 'flex', gap: 14, marginTop: 16 }}>
|
|
52
|
+
<div style={{ height: 18, width: 300, background: '#8f8bd8', borderRadius: 9, opacity: 0.75 }} />
|
|
53
|
+
<div style={{ height: 18, width: 340 - ((row * 91) % 120), background: '#d8d8d6', borderRadius: 9 }} />
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
))}
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
export const CornerSpotlightReveal: React.FC = () => {
|
|
62
|
+
const frame = useCurrentFrame();
|
|
63
|
+
|
|
64
|
+
// 聚光半径扩张:全程匀速(用户裁决"整个过程要匀速"——严格 linear,无缓动)
|
|
65
|
+
// r+feather=1.85r 是光前沿;1.85*1300≈2400 恰在片尾盖满全屏对角,
|
|
66
|
+
// 保证扩张动作占满全片时长而不是前 1/3 就饱和
|
|
67
|
+
const r = interpolate(frame, [0, 100], [160, 1300], {
|
|
68
|
+
extrapolateLeft: 'clamp',
|
|
69
|
+
extrapolateRight: 'clamp',
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// 光心沿左上角匀速游移(linear)
|
|
73
|
+
const cx = interpolate(frame, [0, 96], [140, 420], { extrapolateRight: 'clamp' });
|
|
74
|
+
const cy = interpolate(frame, [0, 96], [90, 260], { extrapolateRight: 'clamp' });
|
|
75
|
+
|
|
76
|
+
// 软边宽度:扩张时边缘更羽化
|
|
77
|
+
const feather = r * 0.85;
|
|
78
|
+
|
|
79
|
+
// UI 轻微透视漂移(原片相机贴着界面缓推)
|
|
80
|
+
const drift = interpolate(frame, [0, 100], [0, 1]);
|
|
81
|
+
const scale = 1.75 - 0.28 * drift;
|
|
82
|
+
const tx = -40 + 70 * drift;
|
|
83
|
+
const ty = -30 + 50 * drift;
|
|
84
|
+
|
|
85
|
+
const mask = `radial-gradient(circle ${r + feather}px at ${cx}px ${cy}px, rgba(255,255,255,1) ${Math.max(
|
|
86
|
+
0,
|
|
87
|
+
((r - feather * 0.25) / (r + feather)) * 100,
|
|
88
|
+
)}%, rgba(255,255,255,0) 100%)`;
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<AbsoluteFill style={{ background: '#000' }}>
|
|
92
|
+
<AbsoluteFill
|
|
93
|
+
style={{
|
|
94
|
+
WebkitMaskImage: mask,
|
|
95
|
+
maskImage: mask,
|
|
96
|
+
transform: `scale(${scale}) translate(${tx}px, ${ty}px) rotate(${-1.2 + 1.2 * drift}deg)`,
|
|
97
|
+
transformOrigin: '18% 12%',
|
|
98
|
+
}}
|
|
99
|
+
>
|
|
100
|
+
<InboxPanel />
|
|
101
|
+
</AbsoluteFill>
|
|
102
|
+
{/* 聚光自身的白热光晕(叠在界面上方,光心最亮) */}
|
|
103
|
+
<div
|
|
104
|
+
style={{
|
|
105
|
+
position: 'absolute',
|
|
106
|
+
left: cx - r * 0.7,
|
|
107
|
+
top: cy - r * 0.7,
|
|
108
|
+
width: r * 1.4,
|
|
109
|
+
height: r * 1.4,
|
|
110
|
+
borderRadius: '50%',
|
|
111
|
+
background: 'radial-gradient(closest-side, rgba(255,255,255,0.85), rgba(255,255,255,0.25) 45%, transparent 75%)',
|
|
112
|
+
filter: 'blur(26px)',
|
|
113
|
+
opacity: interpolate(frame, [0, 10, 60, 90], [0, 0.9, 0.55, 0], {
|
|
114
|
+
extrapolateRight: 'clamp',
|
|
115
|
+
}),
|
|
116
|
+
pointerEvents: 'none',
|
|
117
|
+
}}
|
|
118
|
+
/>
|
|
119
|
+
</AbsoluteFill>
|
|
120
|
+
);
|
|
121
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
// glow-wake-sleep-panel v3 —— 扫光方向改为从左向右(用户裁决):
|
|
2
|
+
// 聚光灯从左向右"扫过"斜置面板;一条带辉光的紫色光线贴着 UI 顶边/边框/
|
|
3
|
+
// logo 划过,光到即亮、光走即暗,尾段沉回黑暗(右缘残留蓝紫)。
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { AbsoluteFill, useCurrentFrame, interpolate } from 'remotion';
|
|
6
|
+
|
|
7
|
+
const W = 1250;
|
|
8
|
+
const H = 860;
|
|
9
|
+
const R = 26;
|
|
10
|
+
|
|
11
|
+
const ink = '#3a3a3a';
|
|
12
|
+
const mid = '#9a9a98';
|
|
13
|
+
const line = '#e2e2e0';
|
|
14
|
+
|
|
15
|
+
const Row: React.FC<{ w: number; icon?: boolean }> = ({ w, icon = true }) => (
|
|
16
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 12, height: 30 }}>
|
|
17
|
+
{icon && <div style={{ width: 18, height: 18, borderRadius: 5, background: mid }} />}
|
|
18
|
+
<div style={{ height: 11, width: w, background: '#c9c9c7', borderRadius: 6 }} />
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const TaskCard: React.FC<{ seed: number }> = ({ seed }) => (
|
|
23
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 9, padding: '14px 0' }}>
|
|
24
|
+
<div style={{ height: 9, width: 150 + (seed % 3) * 22, background: line, borderRadius: 5 }} />
|
|
25
|
+
<div style={{ height: 12, width: 190 + ((seed * 7) % 4) * 18, background: '#b9b9b7', borderRadius: 6 }} />
|
|
26
|
+
<div style={{ width: 15, height: 11, background: '#d9d9d7', borderRadius: 2 }} />
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
// 灰阶斜置面板(ClickUp 布局形:侧栏 + Review/Shipped 两列)
|
|
31
|
+
const Panel: React.FC = () => (
|
|
32
|
+
<div style={{
|
|
33
|
+
width: W, height: H, background: '#f6f6f5', borderRadius: R,
|
|
34
|
+
display: 'flex', overflow: 'hidden', boxSizing: 'border-box',
|
|
35
|
+
}}>
|
|
36
|
+
<div style={{ width: 300, borderRight: `2px solid ${line}`, padding: '30px 28px', boxSizing: 'border-box' }}>
|
|
37
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 12, marginBottom: 34 }}>
|
|
38
|
+
<div style={{ width: 30, height: 30, borderRadius: 8, background: ink }} />
|
|
39
|
+
<div style={{ height: 16, width: 96, background: ink, borderRadius: 7 }} />
|
|
40
|
+
</div>
|
|
41
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 14 }}>
|
|
42
|
+
<Row w={72} /><Row w={128} /><Row w={64} />
|
|
43
|
+
</div>
|
|
44
|
+
<div style={{ height: 13, width: 84, background: '#b3b3b1', borderRadius: 6, margin: '34px 0 16px' }} />
|
|
45
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 14 }}>
|
|
46
|
+
<Row w={110} /><Row w={140} /><Row w={104} /><Row w={126} />
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<div style={{ flex: 1, padding: '30px 36px', boxSizing: 'border-box' }}>
|
|
50
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 14, marginBottom: 30 }}>
|
|
51
|
+
<div style={{ width: 24, height: 20, background: mid, borderRadius: 4 }} />
|
|
52
|
+
<div style={{ height: 17, width: 250, background: '#6f6f6d', borderRadius: 8 }} />
|
|
53
|
+
<div style={{ height: 12, width: 96, background: line, borderRadius: 6, marginLeft: 40 }} />
|
|
54
|
+
<div style={{ height: 12, width: 76, background: line, borderRadius: 6 }} />
|
|
55
|
+
</div>
|
|
56
|
+
<div style={{ display: 'flex', gap: 44 }}>
|
|
57
|
+
{[0, 1].map((col) => (
|
|
58
|
+
<div key={col} style={{ flex: 1 }}>
|
|
59
|
+
<div style={{ borderTop: `4px solid ${col === 0 ? '#b9a44c' : '#6b5bd6'}`, paddingTop: 16, display: 'flex', alignItems: 'center', gap: 10 }}>
|
|
60
|
+
<div style={{ height: 14, width: 88, background: '#5a5a58', borderRadius: 7 }} />
|
|
61
|
+
<div style={{ width: 22, height: 22, borderRadius: 11, border: `2px solid ${line}` }} />
|
|
62
|
+
</div>
|
|
63
|
+
{[0, 1, 2].map((i) => <TaskCard key={i} seed={col * 3 + i + 1} />)}
|
|
64
|
+
</div>
|
|
65
|
+
))}
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
// 贴边紫色光线(多层辉光:宽糊层+中层+亮芯),水平段,中心在 cx
|
|
72
|
+
const EdgeStreak: React.FC<{ cx: number; y: number; len: number; opacity: number; vertical?: boolean }> =
|
|
73
|
+
({ cx, y, len, opacity, vertical = false }) => {
|
|
74
|
+
const long = { position: 'absolute' as const, left: 0, top: 0, opacity };
|
|
75
|
+
const grad = (c: string) => vertical
|
|
76
|
+
? `linear-gradient(180deg, rgba(0,0,0,0) 0%, ${c} 45%, ${c} 55%, rgba(0,0,0,0) 100%)`
|
|
77
|
+
: `linear-gradient(90deg, rgba(0,0,0,0) 0%, ${c} 45%, ${c} 55%, rgba(0,0,0,0) 100%)`;
|
|
78
|
+
if (vertical) {
|
|
79
|
+
return (
|
|
80
|
+
<div style={long}>
|
|
81
|
+
<div style={{ position: 'absolute', left: y - 30, top: cx - len / 2, width: 60, height: len, background: grad('rgba(147,80,235,0.55)'), filter: 'blur(26px)' }} />
|
|
82
|
+
<div style={{ position: 'absolute', left: y - 11, top: cx - len / 2, width: 22, height: len, background: grad('rgba(190,120,255,0.85)'), filter: 'blur(9px)' }} />
|
|
83
|
+
<div style={{ position: 'absolute', left: y - 2.5, top: cx - len * 0.4, width: 5, height: len * 0.8, background: grad('#f0deff'), filter: 'blur(1.4px)' }} />
|
|
84
|
+
</div>
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
return (
|
|
88
|
+
<div style={long}>
|
|
89
|
+
<div style={{ position: 'absolute', left: cx - len / 2, top: y - 34, width: len, height: 68, background: grad('rgba(150,82,238,0.60)'), filter: 'blur(26px)' }} />
|
|
90
|
+
<div style={{ position: 'absolute', left: cx - len / 2, top: y - 12, width: len, height: 24, background: grad('rgba(196,126,255,0.9)'), filter: 'blur(9px)' }} />
|
|
91
|
+
<div style={{ position: 'absolute', left: cx - len * 0.4, top: y - 3, width: len * 0.8, height: 6, background: grad('#f4e4ff'), filter: 'blur(1.6px)' }} />
|
|
92
|
+
{/* 粉色偏移层:截图里光带紫中带粉 */}
|
|
93
|
+
<div style={{ position: 'absolute', left: cx - len * 0.3, top: y - 7, width: len * 0.6, height: 12, background: grad('rgba(240,150,230,0.75)'), filter: 'blur(5px)' }} />
|
|
94
|
+
</div>
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export const GlowWakeSleepPanel: React.FC = () => {
|
|
99
|
+
const frame = useCurrentFrame();
|
|
100
|
+
|
|
101
|
+
// 聚光沿面板顶边从左向右匀速扫过(面板本地座标)
|
|
102
|
+
const sx = interpolate(frame, [4, 120], [-260, W + 260], {
|
|
103
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
104
|
+
});
|
|
105
|
+
const sy = 150; // 聚光照在面板上部
|
|
106
|
+
|
|
107
|
+
// 全局明暗包络:醒 → 展示 → 睡
|
|
108
|
+
const env = interpolate(frame, [0, 16, 100, 130], [0, 1, 1, 0], {
|
|
109
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
110
|
+
});
|
|
111
|
+
// 尾段右缘残光:最后只剩右缘一线蓝紫
|
|
112
|
+
const rightNear = Math.max(0, Math.min(1, (sx - (W - 420)) / 420));
|
|
113
|
+
const tailBlue = interpolate(frame, [100, 116, 132], [0, 0.8, 0.25], {
|
|
114
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
// logo 描光:聚光经过 logo(本地 x≈60)时点亮
|
|
118
|
+
const logoGlow = Math.exp(-((sx - 60) ** 2) / (2 * 230 ** 2)) * env;
|
|
119
|
+
|
|
120
|
+
// 摄影机慢漂移:面板随扫光从左上往右下走(对应扫光方向)
|
|
121
|
+
const drift = interpolate(frame, [0, 132], [-150, 150]);
|
|
122
|
+
const driftY = interpolate(frame, [0, 132], [-36, 36]);
|
|
123
|
+
|
|
124
|
+
return (
|
|
125
|
+
<AbsoluteFill style={{ background: '#040308', overflow: 'hidden' }}>
|
|
126
|
+
<div style={{ position: 'absolute', inset: 0, perspective: 1700, perspectiveOrigin: '46% 40%' }}>
|
|
127
|
+
<div style={{
|
|
128
|
+
position: 'absolute', left: 400, top: 150,
|
|
129
|
+
transform: `translate(${drift}px, ${driftY}px) scale(1.05) rotateY(-13deg) rotateX(9deg) rotateZ(-17deg)`,
|
|
130
|
+
transformStyle: 'preserve-3d',
|
|
131
|
+
}}>
|
|
132
|
+
{/* 聚光环境雾光:跟随光头,泛在面板后黑场 */}
|
|
133
|
+
<div style={{
|
|
134
|
+
position: 'absolute', left: sx - 520, top: -300, width: 1040, height: 700,
|
|
135
|
+
background: 'radial-gradient(ellipse at 50% 55%, rgba(110,62,205,0.42), rgba(110,62,205,0) 65%)',
|
|
136
|
+
filter: 'blur(34px)', opacity: env,
|
|
137
|
+
}} />
|
|
138
|
+
{/* 后层重影面板(截图④⑤双层) */}
|
|
139
|
+
<div style={{ position: 'absolute', left: -46, top: 34 }}>
|
|
140
|
+
<div style={{ position: 'relative', filter: 'brightness(0.92)' }}>
|
|
141
|
+
<Panel />
|
|
142
|
+
{/* 重影面板同样受聚光范围控制 */}
|
|
143
|
+
<div style={{
|
|
144
|
+
position: 'absolute', inset: 0, borderRadius: R,
|
|
145
|
+
background: `radial-gradient(circle 680px at ${sx - 46}px ${sy + 34}px, rgba(4,3,8,${1 - 0.45 * env}) 0%, rgba(4,3,8,${1 - 0.14 * env}) 55%, rgba(4,3,8,0.99) 88%)`,
|
|
146
|
+
}} />
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
{/* 面板本体:聚光范围内显影,范围外沉黑 */}
|
|
150
|
+
<div style={{ position: 'relative' }}>
|
|
151
|
+
<Panel />
|
|
152
|
+
<div style={{
|
|
153
|
+
position: 'absolute', inset: 0, borderRadius: R,
|
|
154
|
+
background: `radial-gradient(circle 640px at ${sx}px ${sy}px, rgba(4,3,8,${0.12 * (1 - env)}) 0%, rgba(4,3,8,${1 - 0.72 * env}) 58%, rgba(4,3,8,0.985) 92%)`,
|
|
155
|
+
}} />
|
|
156
|
+
{/* 尾段右缘蓝紫残光罩 */}
|
|
157
|
+
<div style={{
|
|
158
|
+
position: 'absolute', inset: 0, borderRadius: R,
|
|
159
|
+
background: 'linear-gradient(260deg, rgba(120,130,235,0.30) 0%, rgba(120,130,235,0) 16%)',
|
|
160
|
+
opacity: tailBlue,
|
|
161
|
+
}} />
|
|
162
|
+
</div>
|
|
163
|
+
{/* 贴顶边划过的紫色光线(本体) */}
|
|
164
|
+
<EdgeStreak cx={sx} y={-2} len={980} opacity={env} />
|
|
165
|
+
{/* 右缘竖直光线:聚光接近右侧时点亮,尾段转蓝紫 */}
|
|
166
|
+
<EdgeStreak cx={260} y={W + 2} len={620} opacity={Math.max(rightNear * env, tailBlue * 0.9)} vertical />
|
|
167
|
+
{/* logo 一圈描光(截图⑤:光经过 logo 时) */}
|
|
168
|
+
<div style={{
|
|
169
|
+
position: 'absolute', left: 8, top: 12, width: 150, height: 66, borderRadius: 16,
|
|
170
|
+
boxShadow: '0 0 26px 8px rgba(196,126,255,0.75), 0 0 60px 22px rgba(150,82,238,0.4)',
|
|
171
|
+
opacity: logoGlow,
|
|
172
|
+
}} />
|
|
173
|
+
{/* 光头本体眩光:贴着顶边的亮团 */}
|
|
174
|
+
<div style={{
|
|
175
|
+
position: 'absolute', left: sx - 190, top: -84, width: 380, height: 170,
|
|
176
|
+
background: 'radial-gradient(ellipse, rgba(236,205,255,0.95), rgba(180,110,250,0.35) 45%, rgba(0,0,0,0) 72%)',
|
|
177
|
+
filter: 'blur(12px)', opacity: env * 0.95,
|
|
178
|
+
}} />
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</AbsoluteFill>
|
|
182
|
+
);
|
|
183
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// slide-spotlight-pan v2 —— 按用户截图 clickup03 重做:
|
|
2
|
+
// 紫色光线贴着 UI 面板边缘泛光(先绕左上角竖缘、再沿顶边横走),
|
|
3
|
+
// 聚光头匀速右移,照到处显影、离开处沉暗;面板匀速左滑(相机右摇感)。
|
|
4
|
+
// 用户裁决:"紫色的光线是贴着ui界面泛光的,聚光的移动是匀速的"。
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { AbsoluteFill, useCurrentFrame, interpolate } from 'remotion';
|
|
7
|
+
|
|
8
|
+
const ink = '#3c3c3a';
|
|
9
|
+
const mid = '#98989a';
|
|
10
|
+
const line = '#e4e4e2';
|
|
11
|
+
|
|
12
|
+
const PW = 3000;
|
|
13
|
+
const PH = 1400;
|
|
14
|
+
const TOP = 150; // 面板顶边在屏幕座标的 y
|
|
15
|
+
const CR = 60; // 面板圆角
|
|
16
|
+
|
|
17
|
+
const SideRow: React.FC<{ w: number }> = ({ w }) => (
|
|
18
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 16, height: 44 }}>
|
|
19
|
+
<div style={{ width: 26, height: 26, borderRadius: 7, background: mid }} />
|
|
20
|
+
<div style={{ height: 15, width: w, background: '#c6c6c4', borderRadius: 7 }} />
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
const Task: React.FC<{ seed: number }> = ({ seed }) => (
|
|
25
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 13, padding: '26px 0' }}>
|
|
26
|
+
<div style={{ height: 13, width: 210 + (seed % 3) * 30, background: line, borderRadius: 6 }} />
|
|
27
|
+
<div style={{ height: 17, width: 260 + ((seed * 7) % 4) * 26, background: '#aeaeac', borderRadius: 8 }} />
|
|
28
|
+
<div style={{ width: 22, height: 16, background: '#d6d6d4', borderRadius: 3 }} />
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
const Col: React.FC<{ accent: string; seed: number; w: number }> = ({ accent, seed, w }) => (
|
|
33
|
+
<div style={{ width: w, flexShrink: 0 }}>
|
|
34
|
+
<div style={{ borderTop: `6px solid ${accent}`, paddingTop: 24, display: 'flex', alignItems: 'center', gap: 14 }}>
|
|
35
|
+
<div style={{ height: 20, width: 120, background: '#525250', borderRadius: 9 }} />
|
|
36
|
+
<div style={{ width: 32, height: 32, borderRadius: 16, border: `3px solid ${line}` }} />
|
|
37
|
+
<div style={{ marginLeft: 'auto', width: 22, height: 22, background: line, borderRadius: 4 }} />
|
|
38
|
+
</div>
|
|
39
|
+
{[0, 1].map((i) => <Task key={i} seed={seed + i} />)}
|
|
40
|
+
</div>
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
// 超宽面板内容(放大特写级别):侧栏 + 顶栏 + 三列看板
|
|
44
|
+
const WidePanel: React.FC = () => (
|
|
45
|
+
<div style={{
|
|
46
|
+
width: PW, height: PH, background: '#f4f4f3',
|
|
47
|
+
display: 'flex', boxSizing: 'border-box',
|
|
48
|
+
borderRadius: `${CR}px ${CR}px 0 0`,
|
|
49
|
+
}}>
|
|
50
|
+
<div style={{ width: 560, borderRight: `3px solid ${line}`, padding: '52px 48px', boxSizing: 'border-box' }}>
|
|
51
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 18, marginBottom: 56 }}>
|
|
52
|
+
<div style={{ width: 46, height: 46, borderRadius: 12, background: ink }} />
|
|
53
|
+
<div style={{ height: 26, width: 150, background: ink, borderRadius: 10 }} />
|
|
54
|
+
</div>
|
|
55
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 20 }}>
|
|
56
|
+
<SideRow w={110} /><SideRow w={200} /><SideRow w={100} />
|
|
57
|
+
</div>
|
|
58
|
+
<div style={{ height: 20, width: 130, background: '#adadab', borderRadius: 9, margin: '58px 0 24px' }} />
|
|
59
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 20 }}>
|
|
60
|
+
<SideRow w={180} /><SideRow w={220} /><SideRow w={170} />
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div style={{ flex: 1, padding: '52px 64px', boxSizing: 'border-box' }}>
|
|
64
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 22, marginBottom: 48 }}>
|
|
65
|
+
<div style={{ width: 36, height: 30, background: mid, borderRadius: 6 }} />
|
|
66
|
+
<div style={{ height: 26, width: 400, background: '#606060', borderRadius: 11 }} />
|
|
67
|
+
<div style={{ height: 18, width: 150, background: line, borderRadius: 8, marginLeft: 64 }} />
|
|
68
|
+
<div style={{ height: 18, width: 120, background: line, borderRadius: 8 }} />
|
|
69
|
+
<div style={{ height: 18, width: 90, background: line, borderRadius: 8 }} />
|
|
70
|
+
</div>
|
|
71
|
+
<div style={{ display: 'flex', gap: 84 }}>
|
|
72
|
+
<Col accent="#c4ad45" seed={1} w={620} />
|
|
73
|
+
<Col accent="#6b5bd6" seed={4} w={620} />
|
|
74
|
+
<Col accent="#4f8f6f" seed={7} w={620} />
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
export const SlideSpotlightPan: React.FC = () => {
|
|
81
|
+
const frame = useCurrentFrame();
|
|
82
|
+
// 面板匀速左滑(相机右摇)——严格 linear
|
|
83
|
+
const slide = interpolate(frame, [0, 132], [180, -1100]);
|
|
84
|
+
// 聚光头在面板本地座标沿顶边匀速右移——严格 linear
|
|
85
|
+
// 起点在左上角竖缘(负值=还在左缘竖直段),随后转过角沿顶边走
|
|
86
|
+
const head = interpolate(frame, [0, 132], [-360, 2600]);
|
|
87
|
+
const onTop = Math.max(0, head); // 顶边段进度
|
|
88
|
+
const cornerT = Math.min(1, Math.max(0, (head + 360) / 360)); // 竖缘段 0→1
|
|
89
|
+
const vertHeadY = TOP + 620 - cornerT * 620; // 左缘光头从下往上爬到角
|
|
90
|
+
|
|
91
|
+
// 屏幕座标的光头位置
|
|
92
|
+
const headScreenX = slide + onTop;
|
|
93
|
+
// 光头在竖缘阶段贴着面板左缘
|
|
94
|
+
const leftEdgeX = slide;
|
|
95
|
+
|
|
96
|
+
// 竖缘光线强度:角前满、转角后衰减
|
|
97
|
+
const vGlow = head < 0 ? 1 : Math.max(0, 1 - head / 900);
|
|
98
|
+
// 顶边光线强度:转角后满
|
|
99
|
+
const hGlow = Math.min(1, Math.max(0, (head + 120) / 240));
|
|
100
|
+
|
|
101
|
+
const grad = (dir: string, c: string) =>
|
|
102
|
+
`linear-gradient(${dir}, rgba(0,0,0,0) 0%, ${c} 42%, ${c} 58%, rgba(0,0,0,0) 100%)`;
|
|
103
|
+
|
|
104
|
+
return (
|
|
105
|
+
<AbsoluteFill style={{ background: '#050409', overflow: 'hidden' }}>
|
|
106
|
+
{/* 面板层:聚光范围内显影 */}
|
|
107
|
+
<div style={{ position: 'absolute', left: 0, top: TOP, transform: `translateX(${slide}px)` }}>
|
|
108
|
+
<WidePanel />
|
|
109
|
+
{/* 贴面泛光:光头下方的紫光晕染进 UI 顶部(贴着界面泛光的关键层) */}
|
|
110
|
+
<div style={{
|
|
111
|
+
position: 'absolute', left: onTop - 620, top: -30, width: 1240, height: 380,
|
|
112
|
+
background: 'radial-gradient(ellipse 620px 190px at 50% 0%, rgba(168,95,245,0.5), rgba(140,75,235,0.16) 55%, rgba(0,0,0,0) 78%)',
|
|
113
|
+
filter: 'blur(6px)', opacity: hGlow,
|
|
114
|
+
}} />
|
|
115
|
+
{/* 左缘贴面泛光(竖缘阶段) */}
|
|
116
|
+
<div style={{
|
|
117
|
+
position: 'absolute', left: -30, top: vertHeadY - TOP - 320, width: 340, height: 780,
|
|
118
|
+
background: 'radial-gradient(ellipse 170px 390px at 0% 50%, rgba(168,95,245,0.45), rgba(140,75,235,0.14) 55%, rgba(0,0,0,0) 78%)',
|
|
119
|
+
filter: 'blur(6px)', opacity: vGlow,
|
|
120
|
+
}} />
|
|
121
|
+
{/* 聚光范围外压暗:以光头为中心的显影罩(面板本地座标,跟光头走) */}
|
|
122
|
+
<div style={{
|
|
123
|
+
position: 'absolute', inset: -60,
|
|
124
|
+
background: `radial-gradient(ellipse 1350px 1000px at ${onTop + 60}px ${(head < 0 ? vertHeadY - TOP : 40) + 260}px, rgba(0,0,0,0) 26%, rgba(0,0,0,0.55) 60%, rgba(5,4,9,0.96) 100%)`,
|
|
125
|
+
}} />
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
{/* ===== 贴边紫色光线本体(屏幕层,贴着面板边缘) ===== */}
|
|
129
|
+
{/* 顶边横向光线:三层辉光 + 亮芯,中心=光头 */}
|
|
130
|
+
<div style={{ opacity: hGlow }}>
|
|
131
|
+
<div style={{
|
|
132
|
+
position: 'absolute', left: headScreenX - 640, top: TOP - 56, width: 1280, height: 112,
|
|
133
|
+
background: grad('90deg', 'rgba(150,82,238,0.55)'), filter: 'blur(30px)',
|
|
134
|
+
}} />
|
|
135
|
+
<div style={{
|
|
136
|
+
position: 'absolute', left: headScreenX - 470, top: TOP - 17, width: 940, height: 34,
|
|
137
|
+
background: grad('90deg', 'rgba(196,126,255,0.9)'), filter: 'blur(10px)',
|
|
138
|
+
}} />
|
|
139
|
+
<div style={{
|
|
140
|
+
position: 'absolute', left: headScreenX - 330, top: TOP - 8, width: 660, height: 16,
|
|
141
|
+
background: grad('90deg', 'rgba(240,155,235,0.85)'), filter: 'blur(5px)',
|
|
142
|
+
}} />
|
|
143
|
+
<div style={{
|
|
144
|
+
position: 'absolute', left: headScreenX - 300, top: TOP - 3, width: 600, height: 6,
|
|
145
|
+
background: grad('90deg', '#f6e8ff'), filter: 'blur(1.5px)',
|
|
146
|
+
}} />
|
|
147
|
+
</div>
|
|
148
|
+
{/* 左上角竖缘光线(起始阶段,贴面板左缘) */}
|
|
149
|
+
<div style={{ opacity: vGlow }}>
|
|
150
|
+
<div style={{
|
|
151
|
+
position: 'absolute', left: leftEdgeX - 52, top: vertHeadY - 420, width: 104, height: 840,
|
|
152
|
+
background: grad('180deg', 'rgba(150,82,238,0.5)'), filter: 'blur(28px)',
|
|
153
|
+
}} />
|
|
154
|
+
<div style={{
|
|
155
|
+
position: 'absolute', left: leftEdgeX - 14, top: vertHeadY - 330, width: 28, height: 660,
|
|
156
|
+
background: grad('180deg', 'rgba(196,126,255,0.9)'), filter: 'blur(9px)',
|
|
157
|
+
}} />
|
|
158
|
+
<div style={{
|
|
159
|
+
position: 'absolute', left: leftEdgeX - 3, top: vertHeadY - 260, width: 6, height: 520,
|
|
160
|
+
background: grad('180deg', '#f6e8ff'), filter: 'blur(1.5px)',
|
|
161
|
+
}} />
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
{/* 顶上方黑檐:光带以上纯黑(截图里顶边之上是黑场) */}
|
|
165
|
+
<div style={{
|
|
166
|
+
position: 'absolute', left: 0, top: 0, width: 1920, height: TOP - 4,
|
|
167
|
+
background: 'linear-gradient(180deg, #050409 78%, rgba(5,4,9,0) 100%)',
|
|
168
|
+
}} />
|
|
169
|
+
</AbsoluteFill>
|
|
170
|
+
);
|
|
171
|
+
};
|