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,178 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { Card, G } from '../_fixtures/Fixtures';
|
|
4
|
+
|
|
5
|
+
// exploded-view:整页 dashboard 带 3D 倾斜,咔地沿 Z 轴炸开——顶栏/侧栏/六卡
|
|
6
|
+
// 各自浮到不同深度悬停(近大而实、远略暗),层间透出投影;hold 一拍后
|
|
7
|
+
// 逆序咔哒合体,2f 震屏收口。
|
|
8
|
+
//
|
|
9
|
+
// 节拍:0–24 静止建立(已倾斜)→ 24–59 错峰炸开(每层 14f ease-out-back)
|
|
10
|
+
// → 悬停 → 90–123 逆序合体(每层 12f ease-in)→ 123 震屏 → 静止到 150
|
|
11
|
+
|
|
12
|
+
const EXPLODE = 24; // 炸开起始帧
|
|
13
|
+
const ASSEMBLE = 90; // 合体起始帧
|
|
14
|
+
const STAGGER = 3; // 层间错峰
|
|
15
|
+
const N = 8; // 可动层数(顶栏 + 侧栏 + 6 卡)
|
|
16
|
+
const CLOSE = ASSEMBLE + (N - 1) * STAGGER + 12; // = 123,最后一层归位
|
|
17
|
+
|
|
18
|
+
// FakeDashboard variant A 的布局常量(绝对定位复刻)
|
|
19
|
+
const SIDE_W = 220;
|
|
20
|
+
const TOP_H = 72;
|
|
21
|
+
const PAD = 36;
|
|
22
|
+
const GAP = 28;
|
|
23
|
+
const CARD_W = (1920 - SIDE_W - PAD * 2 - GAP * 2) / 3; // 524
|
|
24
|
+
const CARD_H = (1080 - TOP_H - PAD * 2 - GAP) / 2; // 454
|
|
25
|
+
|
|
26
|
+
type Layer = {
|
|
27
|
+
key: string;
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
w: number;
|
|
31
|
+
h: number;
|
|
32
|
+
z: number; // 炸开深度 60–320
|
|
33
|
+
order: number; // 错峰序
|
|
34
|
+
radius: number;
|
|
35
|
+
node: React.ReactNode;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const Sidebar: React.FC = () => (
|
|
39
|
+
<div style={{ width: SIDE_W, height: 1080, background: G.side, padding: '28px 22px', boxSizing: 'border-box', display: 'flex', flexDirection: 'column', gap: 18 }}>
|
|
40
|
+
<div style={{ width: 40, height: 40, borderRadius: 10, background: '#777775' }} />
|
|
41
|
+
{Array.from({ length: 7 }).map((_, i) => (
|
|
42
|
+
<div key={i} style={{ height: 12, width: `${60 + ((i * 29) % 35)}%`, background: G.sideBar, borderRadius: 6 }} />
|
|
43
|
+
))}
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
const Topbar: React.FC = () => (
|
|
48
|
+
<div style={{ width: 1920 - SIDE_W, height: TOP_H, background: G.panel, borderBottom: `2px solid ${G.line}`, display: 'flex', alignItems: 'center', padding: '0 32px', gap: 20, boxSizing: 'border-box' }}>
|
|
49
|
+
<div style={{ height: 18, width: 180, background: G.bar, borderRadius: 9 }} />
|
|
50
|
+
<div style={{ marginLeft: 'auto', height: 36, width: 320, background: '#fff', border: `2px solid ${G.line}`, borderRadius: 18, boxSizing: 'border-box' }} />
|
|
51
|
+
<div style={{ width: 36, height: 36, borderRadius: 18, background: G.mid }} />
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
// 六卡深度:错落分布在 60–320,近的自然更大(perspective 缩放)
|
|
56
|
+
const CARD_Z = [150, 300, 80, 230, 320, 110];
|
|
57
|
+
|
|
58
|
+
const LAYERS: Layer[] = [
|
|
59
|
+
{ key: 'top', x: SIDE_W, y: 0, w: 1920 - SIDE_W, h: TOP_H, z: 260, order: 0, radius: 0, node: <Topbar /> },
|
|
60
|
+
{ key: 'side', x: 0, y: 0, w: SIDE_W, h: 1080, z: 190, order: 1, radius: 0, node: <Sidebar /> },
|
|
61
|
+
...Array.from({ length: 6 }).map((_, i) => {
|
|
62
|
+
const col = i % 3;
|
|
63
|
+
const row = Math.floor(i / 3);
|
|
64
|
+
return {
|
|
65
|
+
key: `card${i}`,
|
|
66
|
+
x: SIDE_W + PAD + col * (CARD_W + GAP),
|
|
67
|
+
y: TOP_H + PAD + row * (CARD_H + GAP),
|
|
68
|
+
w: CARD_W,
|
|
69
|
+
h: CARD_H,
|
|
70
|
+
z: CARD_Z[i],
|
|
71
|
+
order: 2 + i,
|
|
72
|
+
radius: 14,
|
|
73
|
+
node: <Card w={CARD_W} h={CARD_H} seed={i + 1} />,
|
|
74
|
+
};
|
|
75
|
+
}),
|
|
76
|
+
];
|
|
77
|
+
|
|
78
|
+
export const ExplodedView: React.FC = () => {
|
|
79
|
+
const frame = useCurrentFrame();
|
|
80
|
+
|
|
81
|
+
// 每层进度:炸开 ease-out-back(带一点回弹的“咔”)× 合体逆序 ease-in
|
|
82
|
+
const layerP = (order: number) => {
|
|
83
|
+
const out = interpolate(
|
|
84
|
+
frame,
|
|
85
|
+
[EXPLODE + order * STAGGER, EXPLODE + order * STAGGER + 14],
|
|
86
|
+
[0, 1],
|
|
87
|
+
{ extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.back(1.7)) },
|
|
88
|
+
);
|
|
89
|
+
const back = interpolate(
|
|
90
|
+
frame,
|
|
91
|
+
[ASSEMBLE + (N - 1 - order) * STAGGER, ASSEMBLE + (N - 1 - order) * STAGGER + 12],
|
|
92
|
+
[0, 1],
|
|
93
|
+
{ extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.in(Easing.cubic) },
|
|
94
|
+
);
|
|
95
|
+
return out * (1 - back);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// 全局散开度(驱动底板变暗)
|
|
99
|
+
const g =
|
|
100
|
+
interpolate(frame, [EXPLODE, EXPLODE + 24], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.out(Easing.cubic) }) *
|
|
101
|
+
(1 - interpolate(frame, [ASSEMBLE, CLOSE], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.in(Easing.cubic) }));
|
|
102
|
+
|
|
103
|
+
// 合体收口:2f 震屏,指数衰减
|
|
104
|
+
const since = frame - CLOSE;
|
|
105
|
+
const env = since >= 0 ? 13 * Math.exp(-since / 1.3) : 0;
|
|
106
|
+
const shakeX = env * Math.sin(since * 3.3);
|
|
107
|
+
const shakeY = env * 0.7 * Math.sin(since * 4.7 + 1.1);
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
<AbsoluteFill style={{ background: '#dedddb', overflow: 'hidden' }}>
|
|
111
|
+
<AbsoluteFill style={{ perspective: 1600, transform: `translate(${shakeX}px, ${shakeY}px)` }}>
|
|
112
|
+
<div
|
|
113
|
+
style={{
|
|
114
|
+
position: 'absolute',
|
|
115
|
+
left: 0,
|
|
116
|
+
top: 0,
|
|
117
|
+
width: 1920,
|
|
118
|
+
height: 1080,
|
|
119
|
+
transform: 'scale(0.76) rotateX(18deg) rotateY(-12deg)',
|
|
120
|
+
transformOrigin: '50% 50%',
|
|
121
|
+
transformStyle: 'preserve-3d',
|
|
122
|
+
}}
|
|
123
|
+
>
|
|
124
|
+
{/* 底板:页面背景留在 Z=0,炸开时整体压暗,衬出层间深度 */}
|
|
125
|
+
<div style={{ position: 'absolute', inset: 0, background: G.bg, border: `2px solid ${G.border}`, boxSizing: 'border-box', filter: `brightness(${1 - g * 0.22})` }} />
|
|
126
|
+
|
|
127
|
+
{/* 投到底板上的假投影:随层浮起而下移/变虚 */}
|
|
128
|
+
{LAYERS.map((L) => {
|
|
129
|
+
const p = Math.min(1, Math.max(0, layerP(L.order)));
|
|
130
|
+
if (p <= 0.01) return null;
|
|
131
|
+
return (
|
|
132
|
+
<div
|
|
133
|
+
key={`sh-${L.key}`}
|
|
134
|
+
style={{
|
|
135
|
+
position: 'absolute',
|
|
136
|
+
left: L.x + L.z * 0.16 * p,
|
|
137
|
+
top: L.y + L.z * 0.26 * p,
|
|
138
|
+
width: L.w,
|
|
139
|
+
height: L.h,
|
|
140
|
+
borderRadius: L.radius,
|
|
141
|
+
background: 'rgba(0,0,0,0.30)',
|
|
142
|
+
filter: `blur(${8 + L.z * 0.09 * p}px)`,
|
|
143
|
+
opacity: 0.5 * p,
|
|
144
|
+
transform: 'translateZ(2px)',
|
|
145
|
+
}}
|
|
146
|
+
/>
|
|
147
|
+
);
|
|
148
|
+
})}
|
|
149
|
+
|
|
150
|
+
{/* 可动层:沿 Z 浮起,近的更大更实、远的略暗 */}
|
|
151
|
+
{LAYERS.map((L) => {
|
|
152
|
+
const p = layerP(L.order);
|
|
153
|
+
const pc = Math.min(1, Math.max(0, p));
|
|
154
|
+
const bright = 1 - (1 - L.z / 320) * 0.28 * pc; // 深度越浅(z 小=离底板近=远离镜头)越暗
|
|
155
|
+
return (
|
|
156
|
+
<div
|
|
157
|
+
key={L.key}
|
|
158
|
+
style={{
|
|
159
|
+
position: 'absolute',
|
|
160
|
+
left: L.x,
|
|
161
|
+
top: L.y,
|
|
162
|
+
width: L.w,
|
|
163
|
+
height: L.h,
|
|
164
|
+
borderRadius: L.radius,
|
|
165
|
+
transform: `translateZ(${L.z * p}px)`,
|
|
166
|
+
filter: `brightness(${bright})`,
|
|
167
|
+
boxShadow: pc > 0.02 ? `0 ${10 + L.z * 0.1 * pc}px ${16 + L.z * 0.14 * pc}px rgba(0,0,0,${0.12 + 0.1 * pc})` : 'none',
|
|
168
|
+
}}
|
|
169
|
+
>
|
|
170
|
+
{L.node}
|
|
171
|
+
</div>
|
|
172
|
+
);
|
|
173
|
+
})}
|
|
174
|
+
</div>
|
|
175
|
+
</AbsoluteFill>
|
|
176
|
+
</AbsoluteFill>
|
|
177
|
+
);
|
|
178
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { FakeDashboard, Card, G } from '../_fixtures/Fixtures';
|
|
4
|
+
|
|
5
|
+
// snorricam-lock:KPI 卡片焊死画面正中纹丝不动,背后整页 dashboard
|
|
6
|
+
// 倾斜/平移/翻滚地掠过——像卡片自己扛着摄影机在页面里狂奔,眩晕感全给背景。
|
|
7
|
+
// 节拍:0-20 静止建立 → 20-55 起动加速 → 55-98 狂奔反甩 → 98-125 缓停 → 125-140 静止。
|
|
8
|
+
|
|
9
|
+
// 分段关键帧插值:每段独立 easing,衔接处速度不连续也无妨(要的就是甩动感)
|
|
10
|
+
type Key = { f: number; v: number; e?: (t: number) => number };
|
|
11
|
+
const seg = (frame: number, keys: Key[]): number => {
|
|
12
|
+
if (frame <= keys[0].f) return keys[0].v;
|
|
13
|
+
const last = keys[keys.length - 1];
|
|
14
|
+
if (frame >= last.f) return last.v;
|
|
15
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
16
|
+
const a = keys[i];
|
|
17
|
+
const b = keys[i + 1];
|
|
18
|
+
if (frame >= a.f && frame < b.f) {
|
|
19
|
+
return interpolate(frame, [a.f, b.f], [a.v, b.v], {
|
|
20
|
+
easing: b.e ?? Easing.inOut(Easing.quad),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return last.v;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// seed 正弦哈希(伪随机,禁 Math.random)
|
|
28
|
+
const hash = (i: number) => {
|
|
29
|
+
const s = Math.sin(i * 127.3) * 43758.5453;
|
|
30
|
+
return s - Math.floor(s); // 0..1
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const SnorricamLock: React.FC = () => {
|
|
34
|
+
const frame = useCurrentFrame();
|
|
35
|
+
|
|
36
|
+
// —— 背景复合运动(三段 bezier 衔接,勿匀速)——
|
|
37
|
+
// x 位移:-800 → 400,先猛加速甩过头,再反向回甩,最后缓停
|
|
38
|
+
const bgX = seg(frame, [
|
|
39
|
+
{ f: 20, v: -800 },
|
|
40
|
+
{ f: 55, v: 120, e: Easing.bezier(0.55, 0.02, 0.35, 1.4) }, // 加速 + 过冲
|
|
41
|
+
{ f: 98, v: 520, e: Easing.bezier(0.3, 0.9, 0.4, 1.1) }, // 狂奔反甩
|
|
42
|
+
{ f: 125, v: 400, e: Easing.bezier(0.2, 0.8, 0.3, 1) }, // 回落缓停
|
|
43
|
+
]);
|
|
44
|
+
// 翻滚:-6° → 8° → -3°
|
|
45
|
+
const bgRot = seg(frame, [
|
|
46
|
+
{ f: 20, v: -6 },
|
|
47
|
+
{ f: 60, v: 8, e: Easing.bezier(0.6, 0, 0.3, 1.2) },
|
|
48
|
+
{ f: 100, v: -4.5, e: Easing.bezier(0.4, 0.1, 0.3, 1) },
|
|
49
|
+
{ f: 125, v: -3, e: Easing.out(Easing.cubic) },
|
|
50
|
+
]);
|
|
51
|
+
// zoom 波动:1.6 基准上呼吸
|
|
52
|
+
const bgScale = seg(frame, [
|
|
53
|
+
{ f: 20, v: 1.6 },
|
|
54
|
+
{ f: 50, v: 1.72, e: Easing.bezier(0.5, 0, 0.4, 1) },
|
|
55
|
+
{ f: 90, v: 1.55, e: Easing.inOut(Easing.cubic) },
|
|
56
|
+
{ f: 125, v: 1.62, e: Easing.out(Easing.quad) },
|
|
57
|
+
]);
|
|
58
|
+
// 纵向轻甩,跟 x 错拍
|
|
59
|
+
const bgY = seg(frame, [
|
|
60
|
+
{ f: 20, v: 60 },
|
|
61
|
+
{ f: 58, v: -140, e: Easing.bezier(0.5, 0, 0.3, 1.3) },
|
|
62
|
+
{ f: 100, v: 90, e: Easing.bezier(0.35, 0.6, 0.4, 1) },
|
|
63
|
+
{ f: 125, v: 40, e: Easing.out(Easing.cubic) },
|
|
64
|
+
]);
|
|
65
|
+
|
|
66
|
+
// 狂奔期的手持微颤(seed 正弦哈希,包络首尾归零,保证 hold 真静止)
|
|
67
|
+
const env = interpolate(frame, [20, 36, 105, 125], [0, 1, 1, 0], {
|
|
68
|
+
extrapolateLeft: 'clamp',
|
|
69
|
+
extrapolateRight: 'clamp',
|
|
70
|
+
easing: Easing.inOut(Easing.quad),
|
|
71
|
+
});
|
|
72
|
+
const jx = env * 10 * Math.sin(frame * 0.9 + hash(1) * 6.28);
|
|
73
|
+
const jy = env * 7 * Math.sin(frame * 1.3 + hash(2) * 6.28);
|
|
74
|
+
const jr = env * 0.6 * Math.sin(frame * 0.7 + hash(3) * 6.28);
|
|
75
|
+
|
|
76
|
+
// 前景卡片投影随背景速度加重(狂奔时景深对比更狠)
|
|
77
|
+
const shadow = 24 + env * 32;
|
|
78
|
+
const shadowA = 0.28 + env * 0.14;
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
82
|
+
{/* 背景:整页 dashboard 放大 1.6x 做复合运动 + 2px blur 区分景深 */}
|
|
83
|
+
<div
|
|
84
|
+
style={{
|
|
85
|
+
position: 'absolute',
|
|
86
|
+
left: '50%',
|
|
87
|
+
top: '50%',
|
|
88
|
+
width: 1920,
|
|
89
|
+
height: 1080,
|
|
90
|
+
marginLeft: -960,
|
|
91
|
+
marginTop: -540,
|
|
92
|
+
transform: `translate(${bgX + jx}px, ${bgY + jy}px) rotate(${bgRot + jr}deg) scale(${bgScale})`,
|
|
93
|
+
transformOrigin: '50% 50%',
|
|
94
|
+
filter: 'blur(2px)',
|
|
95
|
+
}}
|
|
96
|
+
>
|
|
97
|
+
<FakeDashboard variant="A" />
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
{/* 暗角:轻微压四周,让视线钉在中心卡片上 */}
|
|
101
|
+
<AbsoluteFill
|
|
102
|
+
style={{
|
|
103
|
+
background:
|
|
104
|
+
'radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.18) 100%)',
|
|
105
|
+
pointerEvents: 'none',
|
|
106
|
+
}}
|
|
107
|
+
/>
|
|
108
|
+
|
|
109
|
+
{/* 前景:KPI 卡片焊死正中,纹丝不动 */}
|
|
110
|
+
<div
|
|
111
|
+
style={{
|
|
112
|
+
position: 'absolute',
|
|
113
|
+
left: '50%',
|
|
114
|
+
top: '50%',
|
|
115
|
+
transform: 'translate(-50%, -50%)',
|
|
116
|
+
}}
|
|
117
|
+
>
|
|
118
|
+
<Card
|
|
119
|
+
w={700}
|
|
120
|
+
h={440}
|
|
121
|
+
seed={4}
|
|
122
|
+
style={{
|
|
123
|
+
boxShadow: `0 ${shadow}px ${shadow * 2.6}px rgba(0,0,0,${shadowA})`,
|
|
124
|
+
border: `2px solid ${G.border}`,
|
|
125
|
+
}}
|
|
126
|
+
/>
|
|
127
|
+
</div>
|
|
128
|
+
</AbsoluteFill>
|
|
129
|
+
);
|
|
130
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// spectrum-morph-ui —— 频谱化 UI
|
|
2
|
+
// 标题 "LAUNCH WEEK" 下方 8px ink 下划线(720px)。25f 起裂成 28 根竖条
|
|
3
|
+
// (20px 宽、6px 间隙),条高按伪 FFT 跳动 64f(低频端高、高频端矮的包络),
|
|
4
|
+
// 条底对齐原线、向上生长。两小节后 12f 收拢回 8px 直线,收线后真静止 ≥35f。
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
7
|
+
import { G, TitleBlock } from '../_fixtures/Fixtures';
|
|
8
|
+
|
|
9
|
+
// 库内标准 seed hash(帧确定,无 Math.random)
|
|
10
|
+
const h = (n: number) => {
|
|
11
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
12
|
+
return s - Math.floor(s);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const LINE_W = 720;
|
|
16
|
+
const LINE_H = 8;
|
|
17
|
+
const LINE_X = (1920 - LINE_W) / 2; // 600
|
|
18
|
+
const LINE_BOTTOM = 620; // 下划线底边 y(条从这里向上长)
|
|
19
|
+
|
|
20
|
+
const N_BARS = 28;
|
|
21
|
+
const GAP_MAX = 6;
|
|
22
|
+
|
|
23
|
+
const SPLIT = 25; // 裂开起点
|
|
24
|
+
const SPLIT_DUR = 8; // 裂开 & 幅度爬升
|
|
25
|
+
const DANCE = 64; // 跳动两小节
|
|
26
|
+
const COLLAPSE_START = SPLIT + DANCE; // 89
|
|
27
|
+
const COLLAPSE_DUR = 12;
|
|
28
|
+
const COLLAPSE_END = COLLAPSE_START + COLLAPSE_DUR; // 101 → 之后真静止 39f
|
|
29
|
+
|
|
30
|
+
const AMP = 92; // 理论峰值 8 + 92 = 100px;wobble×jitter×env 很少同时取满,实测峰值 ~80px
|
|
31
|
+
|
|
32
|
+
// 低频端高、高频端矮的包络
|
|
33
|
+
const env = (i: number) => 0.4 + 0.6 * Math.pow(1 - i / (N_BARS - 1), 1.1);
|
|
34
|
+
|
|
35
|
+
export const SpectrumMorphUi: React.FC = () => {
|
|
36
|
+
const frame = useCurrentFrame();
|
|
37
|
+
|
|
38
|
+
const titleOp = interpolate(frame, [0, 10], [0, 1], {
|
|
39
|
+
extrapolateLeft: 'clamp',
|
|
40
|
+
extrapolateRight: 'clamp',
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// 幅度爬升(扩散 → out-cubic)与收拢(12f 归零)
|
|
44
|
+
const rampIn = interpolate(frame, [SPLIT, SPLIT + SPLIT_DUR], [0, 1], {
|
|
45
|
+
easing: Easing.out(Easing.cubic),
|
|
46
|
+
extrapolateLeft: 'clamp',
|
|
47
|
+
extrapolateRight: 'clamp',
|
|
48
|
+
});
|
|
49
|
+
const rampOut = interpolate(frame, [COLLAPSE_START, COLLAPSE_END], [1, 0], {
|
|
50
|
+
easing: Easing.out(Easing.cubic),
|
|
51
|
+
extrapolateLeft: 'clamp',
|
|
52
|
+
extrapolateRight: 'clamp',
|
|
53
|
+
});
|
|
54
|
+
const amp = rampIn * rampOut;
|
|
55
|
+
|
|
56
|
+
// 间隙:裂开时 0→6,收拢时 6→0(收拢结束恰好合成整线)
|
|
57
|
+
const gapIn = interpolate(frame, [SPLIT, SPLIT + SPLIT_DUR], [0, GAP_MAX], {
|
|
58
|
+
easing: Easing.out(Easing.cubic),
|
|
59
|
+
extrapolateLeft: 'clamp',
|
|
60
|
+
extrapolateRight: 'clamp',
|
|
61
|
+
});
|
|
62
|
+
const gapOut = interpolate(frame, [COLLAPSE_START, COLLAPSE_END], [GAP_MAX, 0], {
|
|
63
|
+
easing: Easing.out(Easing.cubic),
|
|
64
|
+
extrapolateLeft: 'clamp',
|
|
65
|
+
extrapolateRight: 'clamp',
|
|
66
|
+
});
|
|
67
|
+
const gap = Math.min(gapIn, gapOut);
|
|
68
|
+
const barW = (LINE_W - (N_BARS - 1) * gap) / N_BARS; // gap=6 时 ≈20px
|
|
69
|
+
|
|
70
|
+
// 条形阶段以外条件挂载整线(摘罩=条件挂载,保证收尾像素级静止)
|
|
71
|
+
const barsActive = frame >= SPLIT && frame < COLLAPSE_END;
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
75
|
+
<div
|
|
76
|
+
style={{
|
|
77
|
+
position: 'absolute',
|
|
78
|
+
top: 330,
|
|
79
|
+
width: '100%',
|
|
80
|
+
textAlign: 'center',
|
|
81
|
+
opacity: titleOp,
|
|
82
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
83
|
+
fontWeight: 800,
|
|
84
|
+
fontSize: 120,
|
|
85
|
+
color: G.ink,
|
|
86
|
+
letterSpacing: -1,
|
|
87
|
+
}}
|
|
88
|
+
>
|
|
89
|
+
LAUNCH WEEK
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
{!barsActive && (
|
|
93
|
+
<div
|
|
94
|
+
style={{
|
|
95
|
+
position: 'absolute',
|
|
96
|
+
left: LINE_X,
|
|
97
|
+
top: LINE_BOTTOM - LINE_H,
|
|
98
|
+
width: LINE_W,
|
|
99
|
+
height: LINE_H,
|
|
100
|
+
background: G.ink,
|
|
101
|
+
borderRadius: 4,
|
|
102
|
+
}}
|
|
103
|
+
/>
|
|
104
|
+
)}
|
|
105
|
+
|
|
106
|
+
{barsActive &&
|
|
107
|
+
Array.from({ length: N_BARS }).map((_, i) => {
|
|
108
|
+
// 伪 FFT:|sin| 摆动 × 每 4 帧换挡的 seed 随机 × 频段包络 × 幅度包络
|
|
109
|
+
const wobble = Math.abs(Math.sin(i * 0.7 + frame * 0.31));
|
|
110
|
+
const jitter = 0.4 + 0.6 * h(i * 13 + Math.floor(frame / 4));
|
|
111
|
+
const barH = LINE_H + AMP * wobble * jitter * env(i) * amp;
|
|
112
|
+
return (
|
|
113
|
+
<div
|
|
114
|
+
key={i}
|
|
115
|
+
style={{
|
|
116
|
+
position: 'absolute',
|
|
117
|
+
left: LINE_X + i * (barW + gap),
|
|
118
|
+
top: LINE_BOTTOM - barH, // 底边对齐原线,向上长
|
|
119
|
+
width: barW + (gap < 1 ? 0.5 : 0), // gap 收到 0 时补 0.5px 防细缝
|
|
120
|
+
height: barH,
|
|
121
|
+
background: G.ink,
|
|
122
|
+
borderRadius: 3,
|
|
123
|
+
}}
|
|
124
|
+
/>
|
|
125
|
+
);
|
|
126
|
+
})}
|
|
127
|
+
</div>
|
|
128
|
+
);
|
|
129
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// freeze-annotate 定格标注(轮 G)——真实卡片流运动中定格,
|
|
2
|
+
// 马克笔琥珀圈注(feTurbulence 手绘抖动)圈住目标卡 + 箭头点题,解冻继续。
|
|
3
|
+
// remap:0–45 流动 → 45–100 定格(斜率0)→ 100–135 解冻(1.4x 补偿)。
|
|
4
|
+
import { AbsoluteFill, Img, interpolate, staticFile, useCurrentFrame } from 'remotion';
|
|
5
|
+
import layout from '../_textures/live-layout.json';
|
|
6
|
+
|
|
7
|
+
export const FREEZEANNOTATE_DUR = 135;
|
|
8
|
+
|
|
9
|
+
const CARD_W = 460;
|
|
10
|
+
const GAP = 60;
|
|
11
|
+
const RAIL = layout.projects.cards.slice(0, 9);
|
|
12
|
+
const TARGET_I = 5;
|
|
13
|
+
const AMBER = '#b45309';
|
|
14
|
+
|
|
15
|
+
export const FreezeAnnotateReal: React.FC = () => {
|
|
16
|
+
const frame = useCurrentFrame();
|
|
17
|
+
const src = interpolate(frame, [0, 45, 100, 135], [0, 45, 45, 94], {
|
|
18
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
19
|
+
});
|
|
20
|
+
const dx = src * 22;
|
|
21
|
+
const draw = interpolate(frame, [52, 60], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
22
|
+
const arrowDraw = interpolate(frame, [60, 66], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
23
|
+
const fade = interpolate(frame, [96, 104], [1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
24
|
+
// 导轨起点 -880:定格时(dx=990)目标卡 k=5 中心 = -880+2600-990+230 = 960 屏中
|
|
25
|
+
const X0 = -880;
|
|
26
|
+
const targetX = X0 + TARGET_I * (CARD_W + GAP) - dx + CARD_W / 2;
|
|
27
|
+
const C = 1750; // 椭圆周长近似
|
|
28
|
+
return (
|
|
29
|
+
<AbsoluteFill style={{ backgroundColor: '#f9f6f1', overflow: 'hidden' }}>
|
|
30
|
+
<div style={{ position: 'absolute', top: 370, transform: `translateX(${-dx + X0}px)` }}>
|
|
31
|
+
{Array.from({ length: 14 }).map((_, k) => {
|
|
32
|
+
const c = RAIL[k % RAIL.length];
|
|
33
|
+
const isTarget = k === TARGET_I;
|
|
34
|
+
return (
|
|
35
|
+
<Img
|
|
36
|
+
key={k}
|
|
37
|
+
src={staticFile(`textures/live/${isTarget ? 'card4-hires.png' : c.file}`)}
|
|
38
|
+
style={{
|
|
39
|
+
position: 'absolute', left: k * (CARD_W + GAP), top: 0,
|
|
40
|
+
width: CARD_W, borderRadius: 12,
|
|
41
|
+
boxShadow: '0 4px 16px rgba(31,28,23,0.10)',
|
|
42
|
+
}}
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
45
|
+
})}
|
|
46
|
+
</div>
|
|
47
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0, pointerEvents: 'none', opacity: fade }}>
|
|
48
|
+
<defs>
|
|
49
|
+
<filter id="rough">
|
|
50
|
+
<feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="2" seed="7" result="n" />
|
|
51
|
+
<feDisplacementMap in="SourceGraphic" in2="n" scale="7" />
|
|
52
|
+
</filter>
|
|
53
|
+
</defs>
|
|
54
|
+
<ellipse
|
|
55
|
+
cx={targetX} cy={560} rx={290} ry={230}
|
|
56
|
+
fill="none" stroke={AMBER} strokeWidth={8} strokeLinecap="round"
|
|
57
|
+
strokeDasharray={C} strokeDashoffset={C * (1 - draw)}
|
|
58
|
+
transform={`rotate(-6 ${targetX} 560)`}
|
|
59
|
+
filter="url(#rough)"
|
|
60
|
+
/>
|
|
61
|
+
<path
|
|
62
|
+
d={`M ${targetX + 330} 190 Q ${targetX + 220} 240 ${targetX + 140} 320`}
|
|
63
|
+
fill="none" stroke={AMBER} strokeWidth={8} strokeLinecap="round"
|
|
64
|
+
strokeDasharray={420} strokeDashoffset={420 * (1 - arrowDraw)}
|
|
65
|
+
filter="url(#rough)"
|
|
66
|
+
/>
|
|
67
|
+
</svg>
|
|
68
|
+
</AbsoluteFill>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// speed-ramp 变速(轮 C)——真实卡片流帧号 remap:快(斜率2.2) →
|
|
2
|
+
// 0.2x 慢速展示窗 → 快。慢速窗中目标卡(card4-hires)清晰滑过屏中。
|
|
3
|
+
// blur 联动速率:快段包 blur、慢段不包,反差即"凝视感"。
|
|
4
|
+
import { AbsoluteFill, Img, interpolate, staticFile, useCurrentFrame } from 'remotion';
|
|
5
|
+
import { CameraMotionBlur } from '@remotion/motion-blur';
|
|
6
|
+
import layout from '../_textures/live-layout.json';
|
|
7
|
+
|
|
8
|
+
export const SPEEDRAMP_DUR = 135;
|
|
9
|
+
|
|
10
|
+
const CARD_W = 460;
|
|
11
|
+
const GAP = 60;
|
|
12
|
+
const RAIL = layout.projects.cards.slice(0, 9);
|
|
13
|
+
const TARGET_I = 5;
|
|
14
|
+
|
|
15
|
+
const Scene: React.FC = () => {
|
|
16
|
+
const frame = useCurrentFrame();
|
|
17
|
+
// remap:0–40f 走 88 源帧(快),40–85f 走 9 源帧(0.2x),85–135f 走 110(快)
|
|
18
|
+
const src = interpolate(frame, [0, 40, 85, 135], [0, 88, 97, 207], {
|
|
19
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
20
|
+
});
|
|
21
|
+
const dx = src * 28;
|
|
22
|
+
return (
|
|
23
|
+
<AbsoluteFill style={{ backgroundColor: '#f9f6f1', overflow: 'hidden' }}>
|
|
24
|
+
{/* 偏移 717:让慢速窗中点(src≈92.4,dx≈2587)时目标卡 k=5 中心落屏中 */}
|
|
25
|
+
<div style={{ position: 'absolute', top: 360, transform: `translateX(${-dx + 717}px)` }}>
|
|
26
|
+
{Array.from({ length: 16 }).map((_, k) => {
|
|
27
|
+
const c = RAIL[k % RAIL.length];
|
|
28
|
+
const isTarget = k === TARGET_I;
|
|
29
|
+
return (
|
|
30
|
+
<Img
|
|
31
|
+
key={k}
|
|
32
|
+
src={staticFile(`textures/live/${isTarget ? 'card4-hires.png' : c.file}`)}
|
|
33
|
+
style={{
|
|
34
|
+
position: 'absolute', left: k * (CARD_W + GAP), top: isTarget ? -16 : 0,
|
|
35
|
+
width: CARD_W, borderRadius: 12,
|
|
36
|
+
boxShadow: isTarget
|
|
37
|
+
? '0 10px 32px rgba(31,28,23,0.18)'
|
|
38
|
+
: '0 4px 16px rgba(31,28,23,0.10)',
|
|
39
|
+
}}
|
|
40
|
+
/>
|
|
41
|
+
);
|
|
42
|
+
})}
|
|
43
|
+
</div>
|
|
44
|
+
</AbsoluteFill>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const SpeedRampReal: React.FC = () => {
|
|
49
|
+
const frame = useCurrentFrame();
|
|
50
|
+
const fast = frame < 42 || frame > 83;
|
|
51
|
+
return fast ? (
|
|
52
|
+
<CameraMotionBlur shutterAngle={200} samples={20}>
|
|
53
|
+
<Scene />
|
|
54
|
+
</CameraMotionBlur>
|
|
55
|
+
) : (
|
|
56
|
+
<Scene />
|
|
57
|
+
);
|
|
58
|
+
};
|