hyper-animator-codex 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -3
- package/bin/hyper-animator-codex.mjs +1 -1
- package/lib/minimax-config.mjs +3 -3
- package/package.json +1 -1
- package/skills/hyper-animator-codex/SKILL.md +58 -20
- package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
- package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +214 -0
- package/skills/hyper-animator-codex/contracts/workflow-policy.json +85 -0
- package/skills/hyper-animator-codex/references/HyperFrames-AI-Generation-Patterns-codex.md +788 -0
- package/skills/hyper-animator-codex/references/beat-sync-workflow.md +7 -0
- package/skills/hyper-animator-codex/references/examples/shot-plan-dual-catalog.json +69 -0
- package/skills/hyper-animator-codex/references/hyperframes-agent-pseudocode.ts +1 -1
- package/skills/hyper-animator-codex/references/hyperframes-catalog-map.json +97 -230
- package/skills/hyper-animator-codex/references/hyperframes-intent-workflow.md +23 -7
- package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
- package/skills/hyper-animator-codex/references/narration-audio-workflow.md +31 -1
- package/skills/hyper-animator-codex/references/shotcraft/LICENSE +202 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ai-stream-response/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/autolayout-gap-dial/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-cut-moves/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-step-list-theme-cycle/README.md +59 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/before-after-slider-scrub/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bottom-push-stack-wipe/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-frame-snap/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-ink-open/README.md +35 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bubble-swarm-takeover/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/canvas-materialize-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flip-reveal/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flock-tumble/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cel-flash-stomp/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/chart-live-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/circle-match-iris/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cloner-depth-echo/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/collab-cursor-moves/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/color-block-step-wipe/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/command-palette-summon/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crane-rise-reveal/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crash-zoom-punch/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/dataviz-landscape-open/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/deck-deal-flyin/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/depth-layer-moves/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/document-typewriter-reveal/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/draw-svg-trace/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/edit-hook-moves/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/element-body-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/fui-hud-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gauge-readout-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/glow-flyline-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gradient-word-sweep/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/graze-face-tour/README.md +56 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hashtag-to-pill-materialize/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hires-rasterize-3d-text/README.md +34 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-field-colorize/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-performance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/impact-feedback/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/input-trigger-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/integration-hub-map/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/letterspace-materialize/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/light-play-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-boil/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-carry-transition/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/list-stack-press/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/magician-card-flourish/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/marker-underline-title/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/montage-rhythm-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/morph-from-primitive/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-forerun/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-orbit-drop/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-triple-marquee/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/odometer-digit-roll/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/outro-group-photo-launch/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/overhead-camera-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-turn-transitions/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-waterfall-wall/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/panel-grid-moves/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-craft-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-plane-messenger/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-title-card/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-celebrate-hits/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-sand-fill/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/pill-slot-cycle/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/print-texture-transitions/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/rhythm-interrupt-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/riso-print-hits/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/row-embed/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/runway-ground-skim/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/sakuga-timing-shift/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scene-locked-title/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scroll-brake-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/segmented-thumb-hero/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/shot-transitions/README.md +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/skeleton-reveal/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/slam-entrance-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/smear-multiples/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/space-camera-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spectrum-morph-ui/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/speed-ramp-freeze/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/split-flap-title/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-hero-card/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-sweep-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/steep-tilt-glide/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/stroke-segment-build/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tear-streak-transitions/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tension-camera-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-as-mask/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-column-converge/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/theme-switch-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/timeline-travel/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/title-demote-to-label/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/trailer-grammar-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-hidden-cut/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-travel/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-and-filter/README.md +37 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-assembly-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-entrance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-rhythm-sync/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/typewriter-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-strip-away-outro/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-to-brand-morph/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/voice-waveform-live/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wall-reveal-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wipe-transitions/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/word-relay-filmstrip/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/catalog.json +3946 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
- package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
- package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
- package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
- package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
- package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
- package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
- package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
- package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
- package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +193 -0
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// 落点冲击套件(impact-burst-kit)——shockwave-ring + particle-burst 组合变异。
|
|
2
|
+
// 主卡砸落的落点帧同时触发:冲击波环扩散 + 14 粒子放射迸发 + 震屏,
|
|
3
|
+
// 且冲击波前沿扫到左右邻卡的那一帧(按半径-距离算准=落点后 3f)邻卡被
|
|
4
|
+
// 向外推开再 spring 弹回——"波及邻居"即两条词汇焊接成立的证据。
|
|
5
|
+
// 关键帧:0–14 两侧卡驻场、主卡 scale1.8/y-120 悬停 → 14–20 主卡 6f 加速砸落 →
|
|
6
|
+
// 20 落点帧:环 80→900px(14f out-cubic, op .75→0) + 14 粒子飞散 160–340px(22f)
|
|
7
|
+
// + 4f 震屏 6px 衰减 + 主卡 6f 压扁回弹 → 23 环前沿过邻卡(中心距 460px):
|
|
8
|
+
// 邻卡外推 30px + rotate ±3° 阻尼振荡弹回(40f 内钳到 0) → 63–140 全静止(77f)。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
11
|
+
import { G, Card, TitleBlock } from '../_fixtures/Fixtures';
|
|
12
|
+
|
|
13
|
+
// 伪随机(帧确定)
|
|
14
|
+
const h = (n: number): number => {
|
|
15
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
16
|
+
return s - Math.floor(s);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const CW = 400;
|
|
20
|
+
const CH = 280;
|
|
21
|
+
const GAP = 60;
|
|
22
|
+
const X_L = (1920 - (CW * 3 + GAP * 2)) / 2; // 300
|
|
23
|
+
const Y = (1080 - CH) / 2; // 400
|
|
24
|
+
const CX = 960; // 主卡中心
|
|
25
|
+
const CY = Y + CH / 2; // 540
|
|
26
|
+
|
|
27
|
+
const IMPACT = 20; // 落点帧
|
|
28
|
+
// 冲击波:80→900px 14f out-cubic。前沿到达邻卡中心距 460px 的帧:
|
|
29
|
+
// (460-80)/820=0.463 → 1-(1-p)^3 → p≈0.19 → t≈2.6f → 取落点后 3f = 帧 23
|
|
30
|
+
const HIT_NEIGHBOR = IMPACT + 3;
|
|
31
|
+
|
|
32
|
+
// 14 个粒子:方/圆混合,角度带向上偏置,飞散 160–340px 减速缩小消失
|
|
33
|
+
const PARTICLES = Array.from({ length: 14 }).map((_, i) => ({
|
|
34
|
+
angle: -Math.PI / 2 + (h(i + 1) - 0.5) * Math.PI * 1.7, // 上半球为主
|
|
35
|
+
dist: 160 + h(i + 40) * 180,
|
|
36
|
+
size: 8 + h(i + 80) * 10,
|
|
37
|
+
square: i % 2 === 0,
|
|
38
|
+
}));
|
|
39
|
+
|
|
40
|
+
// 邻卡被推开的阻尼振荡包络:t=0 瞬时到 1,之后余弦衰减弹回,40f 后钳 0 保真静止
|
|
41
|
+
const pushEnv = (f: number): number => {
|
|
42
|
+
const t = f - HIT_NEIGHBOR;
|
|
43
|
+
if (t < 0 || t >= 40) return 0;
|
|
44
|
+
return Math.cos(t * 0.5) * Math.exp(-t / 8);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const ImpactBurstKit: React.FC = () => {
|
|
48
|
+
const frame = useCurrentFrame();
|
|
49
|
+
|
|
50
|
+
// ── 主卡砸落:14–20 帧 scale 1.8→1 / y -120→0,加速进场
|
|
51
|
+
const dropP = interpolate(frame, [14, IMPACT], [0, 1], {
|
|
52
|
+
extrapolateLeft: 'clamp',
|
|
53
|
+
extrapolateRight: 'clamp',
|
|
54
|
+
easing: Easing.in(Easing.cubic),
|
|
55
|
+
});
|
|
56
|
+
const mainScale = interpolate(dropP, [0, 1], [1.8, 1]);
|
|
57
|
+
const mainDy = interpolate(dropP, [0, 1], [-120, 0]);
|
|
58
|
+
// 落点后 6f 压扁回弹(squash & stretch)
|
|
59
|
+
const sq = interpolate(frame, [IMPACT, IMPACT + 3, IMPACT + 6], [0, 1, 0], {
|
|
60
|
+
extrapolateLeft: 'clamp',
|
|
61
|
+
extrapolateRight: 'clamp',
|
|
62
|
+
easing: Easing.out(Easing.quad),
|
|
63
|
+
});
|
|
64
|
+
const mainSx = mainScale * (1 + 0.07 * sq);
|
|
65
|
+
const mainSy = mainScale * (1 - 0.1 * sq);
|
|
66
|
+
|
|
67
|
+
// ── ① 冲击波环:半径 80→900,14f,opacity 0.75→0
|
|
68
|
+
const ringP = interpolate(frame, [IMPACT, IMPACT + 14], [0, 1], {
|
|
69
|
+
extrapolateLeft: 'clamp',
|
|
70
|
+
extrapolateRight: 'clamp',
|
|
71
|
+
easing: Easing.out(Easing.cubic),
|
|
72
|
+
});
|
|
73
|
+
const ringR = interpolate(ringP, [0, 1], [80, 900]);
|
|
74
|
+
const ringOp = frame >= IMPACT && frame < IMPACT + 14 ? 0.75 * (1 - ringP) : 0;
|
|
75
|
+
|
|
76
|
+
// ── ② 粒子:落点起 22f,减速飞散 + 缩小 + 淡出
|
|
77
|
+
const pT = interpolate(frame, [IMPACT, IMPACT + 22], [0, 1], {
|
|
78
|
+
extrapolateLeft: 'clamp',
|
|
79
|
+
extrapolateRight: 'clamp',
|
|
80
|
+
easing: Easing.out(Easing.cubic),
|
|
81
|
+
});
|
|
82
|
+
const particlesAlive = frame >= IMPACT && frame < IMPACT + 22;
|
|
83
|
+
|
|
84
|
+
// ── ③ 邻卡外推 30px + rotate ±3°,阻尼弹回
|
|
85
|
+
const env = pushEnv(frame);
|
|
86
|
+
const pushX = 30 * env;
|
|
87
|
+
const pushRot = 3 * env;
|
|
88
|
+
|
|
89
|
+
// ── ④ 震屏:落点起 4f,6px 衰减(h 伪随机方向,帧确定)
|
|
90
|
+
let shakeX = 0;
|
|
91
|
+
let shakeY = 0;
|
|
92
|
+
if (frame >= IMPACT && frame < IMPACT + 4) {
|
|
93
|
+
const amp = 6 * (1 - (frame - IMPACT) / 4);
|
|
94
|
+
shakeX = (h(frame * 3.7) - 0.5) * 2 * amp;
|
|
95
|
+
shakeY = (h(frame * 7.1 + 13) - 0.5) * 2 * amp;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return (
|
|
99
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
100
|
+
<div style={{ position: 'absolute', inset: 0, transform: `translate(${shakeX}px, ${shakeY}px)` }}>
|
|
101
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
102
|
+
<TitleBlock text="IMPACT BURST KIT" size={54} />
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
{/* 左邻卡:被冲击波推开再弹回 */}
|
|
106
|
+
<div
|
|
107
|
+
style={{
|
|
108
|
+
position: 'absolute',
|
|
109
|
+
left: X_L,
|
|
110
|
+
top: Y,
|
|
111
|
+
transform: `translateX(${-pushX}px) rotate(${-pushRot}deg)`,
|
|
112
|
+
}}
|
|
113
|
+
>
|
|
114
|
+
<Card w={CW} h={CH} seed={2} />
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
{/* 右邻卡 */}
|
|
118
|
+
<div
|
|
119
|
+
style={{
|
|
120
|
+
position: 'absolute',
|
|
121
|
+
left: X_L + (CW + GAP) * 2,
|
|
122
|
+
top: Y,
|
|
123
|
+
transform: `translateX(${pushX}px) rotate(${pushRot}deg)`,
|
|
124
|
+
}}
|
|
125
|
+
>
|
|
126
|
+
<Card w={CW} h={CH} seed={4} />
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
{/* 主卡:砸落 + 落点压扁回弹 */}
|
|
130
|
+
<div
|
|
131
|
+
style={{
|
|
132
|
+
position: 'absolute',
|
|
133
|
+
left: X_L + CW + GAP,
|
|
134
|
+
top: Y + mainDy,
|
|
135
|
+
transform: `scale(${mainSx}, ${mainSy})`,
|
|
136
|
+
transformOrigin: '50% 100%',
|
|
137
|
+
}}
|
|
138
|
+
>
|
|
139
|
+
<Card w={CW} h={CH} seed={7} style={{ boxShadow: '0 6px 18px rgba(0,0,0,0.16)' }} />
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
{/* ② 粒子迸发(画在卡之上) */}
|
|
143
|
+
{particlesAlive &&
|
|
144
|
+
PARTICLES.map((p, i) => {
|
|
145
|
+
const px = CX + Math.cos(p.angle) * p.dist * pT;
|
|
146
|
+
const py = CY + Math.sin(p.angle) * p.dist * pT;
|
|
147
|
+
const s = p.size * (1 - pT);
|
|
148
|
+
if (s < 0.5) return null;
|
|
149
|
+
return (
|
|
150
|
+
<div
|
|
151
|
+
key={i}
|
|
152
|
+
style={{
|
|
153
|
+
position: 'absolute',
|
|
154
|
+
left: px - s / 2,
|
|
155
|
+
top: py - s / 2,
|
|
156
|
+
width: s,
|
|
157
|
+
height: s,
|
|
158
|
+
background: G.ink,
|
|
159
|
+
borderRadius: p.square ? 2 : '50%',
|
|
160
|
+
opacity: 1 - pT * pT,
|
|
161
|
+
}}
|
|
162
|
+
/>
|
|
163
|
+
);
|
|
164
|
+
})}
|
|
165
|
+
|
|
166
|
+
{/* ① 冲击波环(最上层扫过邻卡) */}
|
|
167
|
+
{ringOp > 0 && (
|
|
168
|
+
<div
|
|
169
|
+
style={{
|
|
170
|
+
position: 'absolute',
|
|
171
|
+
left: CX - ringR,
|
|
172
|
+
top: CY - ringR,
|
|
173
|
+
width: ringR * 2,
|
|
174
|
+
height: ringR * 2,
|
|
175
|
+
border: `3px solid ${G.ink}`,
|
|
176
|
+
borderRadius: '50%',
|
|
177
|
+
opacity: ringOp,
|
|
178
|
+
boxSizing: 'border-box',
|
|
179
|
+
}}
|
|
180
|
+
/>
|
|
181
|
+
)}
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
);
|
|
185
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// 金田透视急停(kanada-perspective-snap)——金田伊功式夸张透视入场。
|
|
2
|
+
// 一张卡片以鱼眼级夸张透视姿态高速甩入画面中心:容器 perspective 300→1500px
|
|
3
|
+
// (短焦→长焦,透视畸变随之收敛),卡片 rotate3d(0.5,1,0.1) 58°→0 +
|
|
4
|
+
// scale 1.7→1 + translateX -700→0,近角冲出画面感。落定瞬间"啪"地弹平:
|
|
5
|
+
// rotateY 过冲 +5° 再 4f 回 0;同时 6px 震屏 2f 衰减,拉长斜影收为正常投影。
|
|
6
|
+
// 甩入期整卡叠 blur(2px) 增速感,落定即摘(保证收尾逐帧全同)。
|
|
7
|
+
// 关键帧:0–18 透视甩入(out cubic)→ 14–18 rotateY 过冲至 +5° →
|
|
8
|
+
// 18–22 回弹归 0 + 震屏衰减 + 阴影收正 → 22–130 全静止(≥45f)。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
11
|
+
import { G, Card, TitleBlock } from '../_fixtures/Fixtures';
|
|
12
|
+
|
|
13
|
+
// 确定性伪随机(震屏抖动用)
|
|
14
|
+
const h = (n: number): number => {
|
|
15
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
16
|
+
return s - Math.floor(s);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const CLAMP = { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' } as const;
|
|
20
|
+
|
|
21
|
+
const CARD_W = 520;
|
|
22
|
+
const CARD_H = 340;
|
|
23
|
+
const CX = (1920 - CARD_W) / 2; // 700
|
|
24
|
+
const CY = (1080 - CARD_H) / 2; // 370
|
|
25
|
+
|
|
26
|
+
export const KanadaPerspectiveSnap: React.FC = () => {
|
|
27
|
+
const frame = useCurrentFrame();
|
|
28
|
+
|
|
29
|
+
// 0–18f 甩入主通道(out cubic:先猛后缓,急停感)
|
|
30
|
+
const p = interpolate(frame, [0, 18], [0, 1], { ...CLAMP, easing: Easing.out(Easing.cubic) });
|
|
31
|
+
const persp = interpolate(p, [0, 1], [300, 1500]); // 短焦鱼眼→长焦收平
|
|
32
|
+
const angle3d = interpolate(p, [0, 1], [58, 0]); // rotate3d(0.5,1,0.1)
|
|
33
|
+
const scale = interpolate(p, [0, 1], [1.7, 1]);
|
|
34
|
+
const tx = interpolate(p, [0, 1], [-700, 0]);
|
|
35
|
+
|
|
36
|
+
// rotateY 过冲通道:14–18f 冲到 +5°,18–22f "啪"地回 0
|
|
37
|
+
const rotY =
|
|
38
|
+
frame < 18
|
|
39
|
+
? interpolate(frame, [14, 18], [0, 5], CLAMP)
|
|
40
|
+
: interpolate(frame, [18, 22], [5, 0], { ...CLAMP, easing: Easing.out(Easing.cubic) });
|
|
41
|
+
|
|
42
|
+
// 落定震屏:18f 起 6px,2f 内衰减到 0(21f 后恒为 0,保证真静止)
|
|
43
|
+
const shakeAmp = frame >= 18 ? interpolate(frame, [18, 21], [6, 0], CLAMP) : 0;
|
|
44
|
+
const shakeX = shakeAmp * (h(frame * 7 + 1) * 2 - 1);
|
|
45
|
+
const shakeY = shakeAmp * (h(frame * 13 + 2) * 2 - 1);
|
|
46
|
+
|
|
47
|
+
// 阴影:飞行期拉长斜影(大偏移大模糊)→ 落定收为正常投影(18–22f 收拢)
|
|
48
|
+
const shOff = frame < 18 ? interpolate(p, [0, 1], [1, 0.35]) : interpolate(frame, [18, 22], [0.35, 0], { ...CLAMP, easing: Easing.out(Easing.quad) });
|
|
49
|
+
const shX = interpolate(shOff, [0, 1], [0, 70]);
|
|
50
|
+
const shY = interpolate(shOff, [0, 1], [8, 52]);
|
|
51
|
+
const shBlur = interpolate(shOff, [0, 1], [14, 36]);
|
|
52
|
+
const shAlpha = interpolate(shOff, [0, 1], [0.16, 0.3]);
|
|
53
|
+
|
|
54
|
+
// 甩速 blur:透视扭曲期叠 2px,落定(18f)即摘,收尾无逐帧滤镜
|
|
55
|
+
const blur = frame < 18 ? 2 : 0;
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
59
|
+
<div style={{ position: 'absolute', left: shakeX, top: shakeY, width: 1920, height: 1080 }}>
|
|
60
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
61
|
+
<TitleBlock text="KANADA PERSPECTIVE SNAP" size={54} />
|
|
62
|
+
</div>
|
|
63
|
+
{/* 落点槽位(虚线框,给"甩到哪"一个参照) */}
|
|
64
|
+
<div
|
|
65
|
+
style={{
|
|
66
|
+
position: 'absolute',
|
|
67
|
+
left: CX - 20,
|
|
68
|
+
top: CY - 20,
|
|
69
|
+
width: CARD_W + 40,
|
|
70
|
+
height: CARD_H + 40,
|
|
71
|
+
border: `3px dashed ${G.bar}`,
|
|
72
|
+
borderRadius: 22,
|
|
73
|
+
boxSizing: 'border-box',
|
|
74
|
+
}}
|
|
75
|
+
/>
|
|
76
|
+
{/* 透视容器:perspective 随落定从鱼眼收敛到长焦 */}
|
|
77
|
+
<div style={{ position: 'absolute', left: CX, top: CY, perspective: `${persp}px`, perspectiveOrigin: '30% 50%' }}>
|
|
78
|
+
<div
|
|
79
|
+
style={{
|
|
80
|
+
transform: `translateX(${tx}px) scale(${scale}) rotate3d(0.5, 1, 0.1, ${angle3d}deg) rotateY(${rotY}deg)`,
|
|
81
|
+
transformOrigin: '20% 50%',
|
|
82
|
+
filter: `drop-shadow(${shX}px ${shY}px ${shBlur}px rgba(0,0,0,${shAlpha}))${blur ? ` blur(${blur}px)` : ''}`,
|
|
83
|
+
}}
|
|
84
|
+
>
|
|
85
|
+
<Card w={CARD_W} h={CARD_H} seed={3} />
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
);
|
|
91
|
+
};
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
// 比分砸落入场(score-slam)——ESPN 比分弹窗 slam。
|
|
2
|
+
// KPI 卡从 scale 2.5 / rotate 5° / y-80 高空加速砸落屏心,落点帧同时触发
|
|
3
|
+
// 三件套:冲击波描边圆环扩散消散、8 个尘点小方块 seeded 抛物线飞散、
|
|
4
|
+
// 整画面震屏指数衰减。砸落带 3% 压缩过冲回弹落定。
|
|
5
|
+
// 关键帧:0–8 环境 hold → 8–14 砸落(Easing.in(quad),scale 2.5→0.97,
|
|
6
|
+
// rotate 5→0,y -80→0)→ 14 落点帧触发环/尘/震 → 14–22 过冲回弹 0.97→1 →
|
|
7
|
+
// 14–28 圆环 60→720px 直径 op 0.7→0 → 14–30 尘点飞散 → 14–19 震屏 18px 衰减
|
|
8
|
+
// → 30–135 全静止(≥45f,无逐帧噪声层)。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
11
|
+
import { G, FakeDashboard, TitleBlock } from '../_fixtures/Fixtures';
|
|
12
|
+
|
|
13
|
+
// 库规伪随机
|
|
14
|
+
const h = (n: number) => {
|
|
15
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
16
|
+
return s - Math.floor(s);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const IMPACT = 14; // 落点帧
|
|
20
|
+
const CX = 960;
|
|
21
|
+
const CY = 540;
|
|
22
|
+
const CARD_W = 460;
|
|
23
|
+
const CARD_H = 260;
|
|
24
|
+
|
|
25
|
+
export const ScoreSlam: React.FC = () => {
|
|
26
|
+
const frame = useCurrentFrame();
|
|
27
|
+
|
|
28
|
+
// —— 卡片砸落:8–14 加速下砸到 0.97(压缩过冲),14–22 回弹到 1 ——
|
|
29
|
+
const slamScale =
|
|
30
|
+
frame < IMPACT
|
|
31
|
+
? interpolate(frame, [8, IMPACT], [2.5, 0.97], {
|
|
32
|
+
extrapolateLeft: 'clamp',
|
|
33
|
+
extrapolateRight: 'clamp',
|
|
34
|
+
easing: Easing.in(Easing.quad),
|
|
35
|
+
})
|
|
36
|
+
: interpolate(frame, [IMPACT, 22], [0.97, 1], {
|
|
37
|
+
extrapolateLeft: 'clamp',
|
|
38
|
+
extrapolateRight: 'clamp',
|
|
39
|
+
easing: Easing.out(Easing.cubic),
|
|
40
|
+
});
|
|
41
|
+
const slamRot = interpolate(frame, [8, IMPACT], [5, 0], {
|
|
42
|
+
extrapolateLeft: 'clamp',
|
|
43
|
+
extrapolateRight: 'clamp',
|
|
44
|
+
easing: Easing.in(Easing.quad),
|
|
45
|
+
});
|
|
46
|
+
const slamY = interpolate(frame, [8, IMPACT], [-80, 0], {
|
|
47
|
+
extrapolateLeft: 'clamp',
|
|
48
|
+
extrapolateRight: 'clamp',
|
|
49
|
+
easing: Easing.in(Easing.quad),
|
|
50
|
+
});
|
|
51
|
+
const cardOp = interpolate(frame, [8, 11], [0, 1], {
|
|
52
|
+
extrapolateLeft: 'clamp',
|
|
53
|
+
extrapolateRight: 'clamp',
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// —— 震屏:落点帧起 5f,18px 指数衰减,seeded 方向,19f 后严格归零 ——
|
|
57
|
+
let shakeX = 0;
|
|
58
|
+
let shakeY = 0;
|
|
59
|
+
if (frame >= IMPACT && frame < IMPACT + 5) {
|
|
60
|
+
const t = frame - IMPACT;
|
|
61
|
+
const amp = 18 * Math.exp(-t * 0.9);
|
|
62
|
+
shakeX = amp * (h(frame * 7 + 1) * 2 - 1);
|
|
63
|
+
shakeY = amp * (h(frame * 13 + 2) * 2 - 1);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// —— 冲击波圆环:14f 内直径 60→720,opacity 0.7→0 ——
|
|
67
|
+
const ringT = interpolate(frame, [IMPACT, IMPACT + 14], [0, 1], {
|
|
68
|
+
extrapolateLeft: 'clamp',
|
|
69
|
+
extrapolateRight: 'clamp',
|
|
70
|
+
easing: Easing.out(Easing.cubic),
|
|
71
|
+
});
|
|
72
|
+
const ringD = interpolate(ringT, [0, 1], [60, 860]);
|
|
73
|
+
// 不透明度走线性帧时间(与扩散的 out-cubic 解耦),扩到最大前都保持可见
|
|
74
|
+
const ringTLin = interpolate(frame, [IMPACT, IMPACT + 14], [0, 1], {
|
|
75
|
+
extrapolateLeft: 'clamp',
|
|
76
|
+
extrapolateRight: 'clamp',
|
|
77
|
+
});
|
|
78
|
+
const ringOp = interpolate(ringTLin, [0, 0.65, 1], [0.75, 0.55, 0]);
|
|
79
|
+
const ringOn = frame >= IMPACT && frame < IMPACT + 14;
|
|
80
|
+
|
|
81
|
+
// —— 8 个尘点:seeded 角度抛物线飞散 120–260px,16f 减速缩小消失 ——
|
|
82
|
+
const dustT = interpolate(frame, [IMPACT, IMPACT + 16], [0, 1], {
|
|
83
|
+
extrapolateLeft: 'clamp',
|
|
84
|
+
extrapolateRight: 'clamp',
|
|
85
|
+
easing: Easing.out(Easing.cubic),
|
|
86
|
+
});
|
|
87
|
+
const dustTLin = interpolate(frame, [IMPACT, IMPACT + 16], [0, 1], {
|
|
88
|
+
extrapolateLeft: 'clamp',
|
|
89
|
+
extrapolateRight: 'clamp',
|
|
90
|
+
});
|
|
91
|
+
const dustOn = frame >= IMPACT && frame < IMPACT + 16;
|
|
92
|
+
|
|
93
|
+
return (
|
|
94
|
+
<div
|
|
95
|
+
style={{
|
|
96
|
+
width: 1920,
|
|
97
|
+
height: 1080,
|
|
98
|
+
background: G.bg,
|
|
99
|
+
position: 'relative',
|
|
100
|
+
overflow: 'hidden',
|
|
101
|
+
}}
|
|
102
|
+
>
|
|
103
|
+
{/* 震屏容器:整画面一起抖 */}
|
|
104
|
+
<div
|
|
105
|
+
style={{
|
|
106
|
+
position: 'absolute',
|
|
107
|
+
inset: 0,
|
|
108
|
+
transform: `translate(${shakeX}px, ${shakeY}px)`,
|
|
109
|
+
}}
|
|
110
|
+
>
|
|
111
|
+
{/* 虚化 dashboard 环境底 */}
|
|
112
|
+
<div
|
|
113
|
+
style={{
|
|
114
|
+
position: 'absolute',
|
|
115
|
+
left: 0,
|
|
116
|
+
top: 0,
|
|
117
|
+
filter: 'blur(6px)',
|
|
118
|
+
transform: 'scale(1.05)',
|
|
119
|
+
transformOrigin: '50% 50%',
|
|
120
|
+
}}
|
|
121
|
+
>
|
|
122
|
+
<FakeDashboard variant="B" />
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
126
|
+
<TitleBlock text="SCORE SLAM" size={54} />
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
{/* ② 尘点飞散 */}
|
|
130
|
+
{dustOn &&
|
|
131
|
+
Array.from({ length: 8 }).map((_, i) => {
|
|
132
|
+
const ang = (i / 8) * Math.PI * 2 + (h(i + 3) - 0.5) * 0.7;
|
|
133
|
+
const dist = 160 + h(i + 11) * 160; // 160–320px
|
|
134
|
+
const size = 18 + h(i + 23) * 12; // 18–30px
|
|
135
|
+
const dx = Math.cos(ang) * dist * dustT;
|
|
136
|
+
// 抛物线:先随角度飞出,再叠加重力下坠
|
|
137
|
+
const dy = Math.sin(ang) * dist * dustT + 90 * dustT * dustT;
|
|
138
|
+
const s = size * (1 - 0.75 * dustTLin);
|
|
139
|
+
const op = interpolate(dustTLin, [0, 0.75, 1], [0.9, 0.7, 0]);
|
|
140
|
+
return (
|
|
141
|
+
<div
|
|
142
|
+
key={i}
|
|
143
|
+
style={{
|
|
144
|
+
position: 'absolute',
|
|
145
|
+
left: CX + dx - s / 2,
|
|
146
|
+
top: CY + CARD_H / 2 - 20 + dy - s / 2,
|
|
147
|
+
width: s,
|
|
148
|
+
height: s,
|
|
149
|
+
background: G.ink,
|
|
150
|
+
opacity: op,
|
|
151
|
+
borderRadius: 2,
|
|
152
|
+
}}
|
|
153
|
+
/>
|
|
154
|
+
);
|
|
155
|
+
})}
|
|
156
|
+
|
|
157
|
+
{/* ① 冲击波圆环 */}
|
|
158
|
+
{ringOn && (
|
|
159
|
+
<div
|
|
160
|
+
style={{
|
|
161
|
+
position: 'absolute',
|
|
162
|
+
left: CX - ringD / 2,
|
|
163
|
+
top: CY - ringD / 2,
|
|
164
|
+
width: ringD,
|
|
165
|
+
height: ringD,
|
|
166
|
+
borderRadius: '50%',
|
|
167
|
+
border: `6px solid ${G.ink}`,
|
|
168
|
+
opacity: ringOp,
|
|
169
|
+
boxSizing: 'border-box',
|
|
170
|
+
}}
|
|
171
|
+
/>
|
|
172
|
+
)}
|
|
173
|
+
|
|
174
|
+
{/* KPI 卡本体 */}
|
|
175
|
+
{frame >= 8 && (
|
|
176
|
+
<div
|
|
177
|
+
style={{
|
|
178
|
+
position: 'absolute',
|
|
179
|
+
left: CX - CARD_W / 2,
|
|
180
|
+
top: CY - CARD_H / 2,
|
|
181
|
+
width: CARD_W,
|
|
182
|
+
height: CARD_H,
|
|
183
|
+
background: G.card,
|
|
184
|
+
border: `3px solid ${G.border}`,
|
|
185
|
+
borderRadius: 18,
|
|
186
|
+
boxShadow: '0 10px 30px rgba(0,0,0,0.18)',
|
|
187
|
+
display: 'flex',
|
|
188
|
+
flexDirection: 'column',
|
|
189
|
+
alignItems: 'center',
|
|
190
|
+
justifyContent: 'center',
|
|
191
|
+
gap: 8,
|
|
192
|
+
opacity: cardOp,
|
|
193
|
+
transform: `translateY(${slamY}px) rotate(${slamRot}deg) scale(${slamScale})`,
|
|
194
|
+
transformOrigin: '50% 50%',
|
|
195
|
+
}}
|
|
196
|
+
>
|
|
197
|
+
<div
|
|
198
|
+
style={{
|
|
199
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
200
|
+
fontWeight: 800,
|
|
201
|
+
fontSize: 110,
|
|
202
|
+
color: G.ink,
|
|
203
|
+
letterSpacing: -3,
|
|
204
|
+
lineHeight: 1,
|
|
205
|
+
}}
|
|
206
|
+
>
|
|
207
|
+
+247%
|
|
208
|
+
</div>
|
|
209
|
+
<div
|
|
210
|
+
style={{
|
|
211
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
212
|
+
fontWeight: 600,
|
|
213
|
+
fontSize: 26,
|
|
214
|
+
color: G.mid,
|
|
215
|
+
letterSpacing: 4,
|
|
216
|
+
}}
|
|
217
|
+
>
|
|
218
|
+
QUARTERLY GROWTH
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
)}
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
);
|
|
225
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// 残像分身(smear-multiples)——smear frame 多重残像。
|
|
2
|
+
// 卡片高速横移时身后拖 4 个"可数"的半透明完整分身(各取当前帧减 k*2 帧
|
|
3
|
+
// 时刻的位置,同一条插值函数换帧号求值,天然帧确定),与运动模糊的连续糊
|
|
4
|
+
// 相区别。分身仅在本体速度 >25px/f 时可见(速度 = 相邻帧位置差)。
|
|
5
|
+
// 关键帧:0–25 左槽 hold → 25–37 横移 900px(inOut cubic,带 3% 过冲)→
|
|
6
|
+
// 35–38 分身延迟收缩至 0 合拢进本体 + opacity 归零 → 37–43 过冲回弹 → 43–130 全静止。
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
9
|
+
import { G, Card, TitleBlock } from '../_fixtures/Fixtures';
|
|
10
|
+
|
|
11
|
+
const X0 = 240; // 左槽卡片左边缘
|
|
12
|
+
const X1 = 1140; // 右槽卡片左边缘(横移 900px)
|
|
13
|
+
const OVER = 27; // 3% 过冲
|
|
14
|
+
const Y = 380; // 卡片顶边(垂直居中 1080-320)
|
|
15
|
+
|
|
16
|
+
// 本体位置:25–37 高速横移到过冲点,37–43 回弹落座,之后恒定 → 帧确定
|
|
17
|
+
const posAt = (f: number): number =>
|
|
18
|
+
f < 37
|
|
19
|
+
? interpolate(f, [25, 37], [X0, X1 + OVER], {
|
|
20
|
+
extrapolateLeft: 'clamp',
|
|
21
|
+
extrapolateRight: 'clamp',
|
|
22
|
+
easing: Easing.inOut(Easing.cubic),
|
|
23
|
+
})
|
|
24
|
+
: interpolate(f, [37, 43], [X1 + OVER, X1], {
|
|
25
|
+
extrapolateLeft: 'clamp',
|
|
26
|
+
extrapolateRight: 'clamp',
|
|
27
|
+
easing: Easing.out(Easing.cubic),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const Slot: React.FC<{ x: number }> = ({ x }) => (
|
|
31
|
+
<div
|
|
32
|
+
style={{
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
left: x - 20,
|
|
35
|
+
top: Y - 20,
|
|
36
|
+
width: 520,
|
|
37
|
+
height: 360,
|
|
38
|
+
border: `3px dashed ${G.bar}`,
|
|
39
|
+
borderRadius: 20,
|
|
40
|
+
boxSizing: 'border-box',
|
|
41
|
+
}}
|
|
42
|
+
/>
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
export const SmearMultiples: React.FC = () => {
|
|
46
|
+
const frame = useCurrentFrame();
|
|
47
|
+
const bodyX = posAt(frame);
|
|
48
|
+
// 本体速度 = 相邻帧位置差;>25px/f 才渲染分身
|
|
49
|
+
const speed = Math.abs(posAt(frame) - posAt(frame - 1));
|
|
50
|
+
const speedGate = interpolate(speed, [25, 60], [0, 1], {
|
|
51
|
+
extrapolateLeft: 'clamp',
|
|
52
|
+
extrapolateRight: 'clamp',
|
|
53
|
+
});
|
|
54
|
+
// 落位合拢:35–38 三帧内分身延迟收缩到 0(位置滑向本体)+ 不透明度归零
|
|
55
|
+
const cv = interpolate(frame, [35, 38], [0, 1], {
|
|
56
|
+
extrapolateLeft: 'clamp',
|
|
57
|
+
extrapolateRight: 'clamp',
|
|
58
|
+
easing: Easing.out(Easing.quad),
|
|
59
|
+
});
|
|
60
|
+
const convergeFade = frame >= 35 ? 1 - cv : 0;
|
|
61
|
+
|
|
62
|
+
const ghostOps = [0.45, 0.3, 0.18, 0.09];
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
66
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
67
|
+
<TitleBlock text="SMEAR MULTIPLES" size={54} />
|
|
68
|
+
</div>
|
|
69
|
+
<Slot x={X0} />
|
|
70
|
+
<Slot x={X1} />
|
|
71
|
+
{/* 4 个分身:第 k 个取 frame - k*2 帧时刻的位置;合拢期延迟×(1-cv) 收缩到 0 */}
|
|
72
|
+
{ghostOps.map((baseOp, i) => {
|
|
73
|
+
const k = i + 1;
|
|
74
|
+
const gx = posAt(frame - k * 2 * (1 - cv));
|
|
75
|
+
const op = baseOp * Math.max(speedGate, convergeFade);
|
|
76
|
+
if (op <= 0.001) return null;
|
|
77
|
+
return (
|
|
78
|
+
<div key={k} style={{ position: 'absolute', left: gx, top: Y, opacity: op }}>
|
|
79
|
+
<Card w={480} h={320} seed={5} />
|
|
80
|
+
</div>
|
|
81
|
+
);
|
|
82
|
+
})}
|
|
83
|
+
<div style={{ position: 'absolute', left: bodyX, top: Y }}>
|
|
84
|
+
<Card w={480} h={320} seed={5} />
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
);
|
|
88
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { CameraMotionBlur } from '@remotion/motion-blur';
|
|
4
|
+
import { FakeDashboard, G } from '../_fixtures/Fixtures';
|
|
5
|
+
|
|
6
|
+
// drone-dive-landing:上帝视角俯视整页平躺的 dashboard(近垂直俯角、缩小居中),
|
|
7
|
+
// 相机猛扎下来——俯角抬平、页面放大立正,最后一段气垫式长尾减速,
|
|
8
|
+
// 稳稳停在 hero 卡正前方特写。FPV 无人机俯冲降落的运镜翻译。
|
|
9
|
+
//
|
|
10
|
+
// hero 卡 = FakeDashboard A 网格左上格:
|
|
11
|
+
// 侧栏 220 + padding 36 = x 256 起,列宽 (1628-56)/3 = 524;
|
|
12
|
+
// 顶栏 72 + padding 36 = y 108 起,行高 (936-28)/2 = 454。
|
|
13
|
+
// 卡中心 (256+262, 108+227) = (518, 335),全程 transform-origin 钉在这里。
|
|
14
|
+
const HERO = { cx: 518, cy: 335 };
|
|
15
|
+
const DIVE_START = 20; // 开头 hold 20f:上帝视角建立
|
|
16
|
+
const DIVE_END = 45; // 主俯冲段 25f,ease-in(cubic) 越冲越快
|
|
17
|
+
const LAND_END = 65; // 气垫段 20f,ease-out(quint) 长尾减速,之后真静止
|
|
18
|
+
const DIVE_SHARE = 0.82; // 俯冲段吃掉 82% 行程,剩 18% 留给气垫
|
|
19
|
+
|
|
20
|
+
const Scene: React.FC = () => {
|
|
21
|
+
const frame = useCurrentFrame();
|
|
22
|
+
|
|
23
|
+
// 两段速度曲线拼一条行程 p∈[0,1]:先猛加速扎下,切换帧速度骤降 = 气垫顶住的体感
|
|
24
|
+
const pDive = interpolate(frame, [DIVE_START, DIVE_END], [0, DIVE_SHARE], {
|
|
25
|
+
extrapolateLeft: 'clamp',
|
|
26
|
+
extrapolateRight: 'clamp',
|
|
27
|
+
easing: Easing.in(Easing.cubic),
|
|
28
|
+
});
|
|
29
|
+
const pLand = interpolate(frame, [DIVE_END, LAND_END], [0, 1 - DIVE_SHARE], {
|
|
30
|
+
extrapolateLeft: 'clamp',
|
|
31
|
+
extrapolateRight: 'clamp',
|
|
32
|
+
easing: Easing.out(Easing.poly(5)),
|
|
33
|
+
});
|
|
34
|
+
const p = frame < DIVE_END ? pDive : DIVE_SHARE + pLand;
|
|
35
|
+
|
|
36
|
+
// 三轴联动,全部由同一条 p 驱动(同一台"相机"的一次连续机动)
|
|
37
|
+
const rotX = interpolate(p, [0, 1], [72, 0]); // 俯角抬平
|
|
38
|
+
const scale = interpolate(p, [0, 1], [0.42, 1.35]); // 缩小全景 → hero 特写
|
|
39
|
+
// 平移:起点让整页平躺在画面中央偏上;终点 hero 卡中心正对画面中心
|
|
40
|
+
const tx = interpolate(p, [0, 1], [256, 960 - HERO.cx]);
|
|
41
|
+
const ty = interpolate(p, [0, 1], [150, 540 - HERO.cy]);
|
|
42
|
+
|
|
43
|
+
// 地面投影:俯视时页面悬空、下方拖一团椭圆软影;落地立正后影子收干
|
|
44
|
+
const shadowOp = interpolate(p, [0, 0.8], [0.32, 0], {
|
|
45
|
+
extrapolateLeft: 'clamp',
|
|
46
|
+
extrapolateRight: 'clamp',
|
|
47
|
+
});
|
|
48
|
+
const shadowW = 1300 * (0.6 + scale * 0.4);
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
52
|
+
{/* 地面软影(高度感线索) */}
|
|
53
|
+
<div
|
|
54
|
+
style={{
|
|
55
|
+
position: 'absolute',
|
|
56
|
+
left: 960 - shadowW / 2,
|
|
57
|
+
top: 620,
|
|
58
|
+
width: shadowW,
|
|
59
|
+
height: 320,
|
|
60
|
+
borderRadius: '50%',
|
|
61
|
+
background: 'radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 68%)',
|
|
62
|
+
opacity: shadowOp,
|
|
63
|
+
filter: 'blur(18px)',
|
|
64
|
+
}}
|
|
65
|
+
/>
|
|
66
|
+
{/* 相机 = perspective 容器;页面绕 hero 卡中心做 rotateX + scale + translate */}
|
|
67
|
+
<AbsoluteFill style={{ perspective: 1400 }}>
|
|
68
|
+
<div
|
|
69
|
+
style={{
|
|
70
|
+
position: 'absolute',
|
|
71
|
+
width: 1920,
|
|
72
|
+
height: 1080,
|
|
73
|
+
transformOrigin: `${HERO.cx}px ${HERO.cy}px`,
|
|
74
|
+
transform: `translate(${tx}px, ${ty}px) rotateX(${rotX}deg) scale(${scale})`,
|
|
75
|
+
boxShadow: `0 ${6 + (1 - p) * 30}px ${20 + (1 - p) * 60}px rgba(0,0,0,${0.1 + (1 - p) * 0.14})`,
|
|
76
|
+
borderRadius: 6,
|
|
77
|
+
overflow: 'hidden',
|
|
78
|
+
}}
|
|
79
|
+
>
|
|
80
|
+
<FakeDashboard variant="A" />
|
|
81
|
+
</div>
|
|
82
|
+
</AbsoluteFill>
|
|
83
|
+
</AbsoluteFill>
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const DroneDiveLanding: React.FC = () => (
|
|
88
|
+
<CameraMotionBlur shutterAngle={220} samples={9}>
|
|
89
|
+
<Scene />
|
|
90
|
+
</CameraMotionBlur>
|
|
91
|
+
);
|