hyper-animator-codex 0.7.1 → 0.8.1
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 -4
- package/bin/hyper-animator-codex.mjs +1 -1
- package/lib/minimax-config.mjs +3 -3
- package/package.json +4 -1
- package/skills/hyper-animator-codex/SKILL.md +66 -22
- package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
- package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +280 -0
- package/skills/hyper-animator-codex/contracts/workflow-policy.json +97 -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 +99 -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 +32 -8
- package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
- package/skills/hyper-animator-codex/references/narration-audio-workflow.md +47 -10
- 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/motion-pack/README.md +32 -0
- package/skills/hyper-animator-codex/references/shotcraft/motion-pack/shotcraft-motion-pack.js +178 -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/git_checkpoint.mjs +2 -2
- 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 +266 -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,315 @@
|
|
|
1
|
+
// steep-tilt-glide v5(批次 14 #2)。用户意见(逐字):
|
|
2
|
+
// "角度不对,你看看原片这个镜头的角度;以及镜头是固定的,但是页面本身
|
|
3
|
+
// 往其3d空间的横面方向移动的效果"
|
|
4
|
+
// ——两点落实:①角度对照原片密帧校准(右缘近、左缘远的陡峭 rotateY,
|
|
5
|
+
// 顶缘向右上扬、透视灭点在左中下);②运动模型改"物动镜不动":
|
|
6
|
+
// perspective / perspectiveOrigin / rotateY / rotateZ 全程一个常数不动,
|
|
7
|
+
// 动的只有页面自身沿其 3D 平面横向(局部 X 轴)的滑移 translateX。
|
|
8
|
+
// v4 的悬空贴落(FloatWrap 同形软影)保留。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { AbsoluteFill, interpolate, useCurrentFrame, Easing } from 'remotion';
|
|
11
|
+
|
|
12
|
+
const FONT = 'Helvetica, Arial, sans-serif';
|
|
13
|
+
const INK = '#2f2f36';
|
|
14
|
+
|
|
15
|
+
const easeFall = Easing.bezier(0.5, 0.05, 0.6, 1); // 加速贴落、末端软着陆
|
|
16
|
+
|
|
17
|
+
/* 悬浮 + 同形软影(GrazeFaceTour FloatWrap 模式) */
|
|
18
|
+
const FloatWrap: React.FC<{ h: number; children: React.ReactNode }> = ({ h, children }) => (
|
|
19
|
+
<div style={{ position: 'relative' }}>
|
|
20
|
+
{h > 2 && (
|
|
21
|
+
<div style={{
|
|
22
|
+
position: 'absolute', inset: 0,
|
|
23
|
+
transform: `translate(${h * 0.24}px, ${h * 0.46}px) scale(${1 + h * 0.0009})`,
|
|
24
|
+
filter: `blur(${5 + h * 0.075}px) brightness(0.35) saturate(0.4)`,
|
|
25
|
+
opacity: Math.min(0.38, 0.15 + h * 0.0016),
|
|
26
|
+
pointerEvents: 'none',
|
|
27
|
+
}}>{children}</div>
|
|
28
|
+
)}
|
|
29
|
+
<div style={{ transform: `translate(${-h * 0.34}px, ${-h * 0.8}px)` }}>{children}</div>
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
/* land=贴合完成时刻(0..1),之前从 H 高度加速贴落 */
|
|
34
|
+
const liftOf = (t: number, land: number, H = 230) => {
|
|
35
|
+
const FALL = 0.32;
|
|
36
|
+
const p = Math.min(1, Math.max(0, (t - (land - FALL)) / FALL));
|
|
37
|
+
return (1 - easeFall(p)) * H;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/* ClickUp 彩色小 logo(双 V 叠形近似) */
|
|
41
|
+
const CULogo: React.FC<{ size: number }> = ({ size }) => (
|
|
42
|
+
<svg width={size} height={size} viewBox="0 0 100 100">
|
|
43
|
+
<defs>
|
|
44
|
+
<linearGradient id="cu1" x1="0" y1="0" x2="1" y2="0">
|
|
45
|
+
<stop offset="0" stopColor="#8930fd" />
|
|
46
|
+
<stop offset="1" stopColor="#49ccf9" />
|
|
47
|
+
</linearGradient>
|
|
48
|
+
<linearGradient id="cu2" x1="0" y1="0" x2="1" y2="0">
|
|
49
|
+
<stop offset="0" stopColor="#ff02f0" />
|
|
50
|
+
<stop offset="1" stopColor="#ffc800" />
|
|
51
|
+
</linearGradient>
|
|
52
|
+
</defs>
|
|
53
|
+
<path d="M 14 62 L 50 30 L 86 62" fill="none" stroke="url(#cu1)" strokeWidth="16" strokeLinecap="round" strokeLinejoin="round" />
|
|
54
|
+
<path d="M 22 84 L 50 62 L 78 84" fill="none" stroke="url(#cu2)" strokeWidth="16" strokeLinecap="round" strokeLinejoin="round" />
|
|
55
|
+
</svg>
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
/* Dropbox 蓝四菱形 glyph(原片 f45/f60 主区圆角灰砖里的图标) */
|
|
59
|
+
const DropboxGlyph: React.FC<{ size: number }> = ({ size }) => (
|
|
60
|
+
<svg width={size} height={size} viewBox="0 0 100 100">
|
|
61
|
+
{[[50, 8, 27, 22], [50, 8, 73, 22], [50, 36, 27, 50], [50, 36, 73, 50]].map(() => null)}
|
|
62
|
+
<g fill="#0061fe">
|
|
63
|
+
<path d="M 27 10 L 50 25 L 27 40 L 4 25 Z" />
|
|
64
|
+
<path d="M 73 10 L 96 25 L 73 40 L 50 25 Z" />
|
|
65
|
+
<path d="M 27 40 L 50 55 L 27 70 L 4 55 Z" />
|
|
66
|
+
<path d="M 73 40 L 96 55 L 73 70 L 50 55 Z" />
|
|
67
|
+
<path d="M 27 74 L 50 89 L 73 74 L 50 62 Z" />
|
|
68
|
+
</g>
|
|
69
|
+
</svg>
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
/* 页面:宽 6200 —— 左段=ClickUp3.0 顶栏+侧栏(用户截图三张全在此段),
|
|
73
|
+
右段=原片后程滑入的 Dropbox 砖、大 W 字、Product Management 列表 */
|
|
74
|
+
const PW = 6200;
|
|
75
|
+
const PH = 2400;
|
|
76
|
+
|
|
77
|
+
const Panel: React.FC<{ shade: number; t?: number }> = ({ shade, t = 1 }) => (
|
|
78
|
+
<div style={{
|
|
79
|
+
width: PW, height: PH, background: '#f4f4f6', borderRadius: 64,
|
|
80
|
+
position: 'relative', overflow: 'hidden',
|
|
81
|
+
boxShadow: '0 0 220px rgba(220,210,255,0.35)',
|
|
82
|
+
fontFamily: FONT,
|
|
83
|
+
}}>
|
|
84
|
+
{/* 顶部 tab 条(贯穿整页;文字悬空贴落) */}
|
|
85
|
+
<div style={{
|
|
86
|
+
position: 'absolute', top: 0, left: 0, width: PW, height: 230,
|
|
87
|
+
borderBottom: '4px solid #dcdce2', display: 'flex', alignItems: 'center', paddingLeft: 130,
|
|
88
|
+
}}>
|
|
89
|
+
<FloatWrap h={liftOf(t, 0.3)}>
|
|
90
|
+
<div style={{ display: 'flex', alignItems: 'center' }}>
|
|
91
|
+
<svg width={58} height={58} viewBox="0 0 40 40" style={{ marginRight: 34 }}>
|
|
92
|
+
{[[4, 4], [23, 4], [4, 23], [23, 23]].map(([x, y], i) => (
|
|
93
|
+
<rect key={i} x={x} y={y} width={13} height={13} rx={3} fill="none" stroke="#4a4a52" strokeWidth={3.5} />
|
|
94
|
+
))}
|
|
95
|
+
</svg>
|
|
96
|
+
<div style={{ fontSize: 66, color: INK, fontWeight: 500 }}>Product analytics</div>
|
|
97
|
+
</div>
|
|
98
|
+
</FloatWrap>
|
|
99
|
+
<FloatWrap h={liftOf(t, 0.42, 280)}>
|
|
100
|
+
<div style={{ display: 'flex', alignItems: 'center' }}>
|
|
101
|
+
<div style={{ width: 72, height: 72, borderRadius: 20, background: '#4147f5', marginLeft: 150, flexShrink: 0 }} />
|
|
102
|
+
<div style={{ fontSize: 165, color: '#26262c', fontWeight: 550, marginLeft: 110, letterSpacing: 1, whiteSpace: 'nowrap' }}>ClickUp 3.0</div>
|
|
103
|
+
</div>
|
|
104
|
+
</FloatWrap>
|
|
105
|
+
{/* 顶栏右延的淡 tab(对齐 clickup04 顶栏 Widget brainstorm / Design system) */}
|
|
106
|
+
{[['Widget brainstorm', 3050], ['Design system', 3900], ['Design', 4650]].map(([tb, x]) => (
|
|
107
|
+
<div key={tb as string} style={{ position: 'absolute', left: x as number, top: 88, fontSize: 58, color: '#8d8d96' }}>{tb}</div>
|
|
108
|
+
))}
|
|
109
|
+
</div>
|
|
110
|
+
{/* ClickUp logo 行 */}
|
|
111
|
+
<div style={{ position: 'absolute', left: 120, top: 560 }}>
|
|
112
|
+
<FloatWrap h={liftOf(t, 0.54, 250)}>
|
|
113
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 26 }}>
|
|
114
|
+
<CULogo size={104} />
|
|
115
|
+
<div style={{ fontSize: 92, fontWeight: 800, color: '#222228', letterSpacing: -1 }}>ClickUp</div>
|
|
116
|
+
</div>
|
|
117
|
+
</FloatWrap>
|
|
118
|
+
</div>
|
|
119
|
+
{/* 主区圆角灰砖:Dropbox 图标 + 下拉 chevron(原片 f45–f60) */}
|
|
120
|
+
<div style={{ position: 'absolute', left: 1330, top: 440 }}>
|
|
121
|
+
<FloatWrap h={liftOf(t, 0.62, 260)}>
|
|
122
|
+
<div style={{
|
|
123
|
+
width: 620, height: 350, background: '#ebebef', borderRadius: 56,
|
|
124
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 60,
|
|
125
|
+
}}>
|
|
126
|
+
<div style={{
|
|
127
|
+
width: 210, height: 210, background: '#fdfdfe', borderRadius: 44,
|
|
128
|
+
boxShadow: '0 6px 60px rgba(180,180,200,0.35)',
|
|
129
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
130
|
+
}}>
|
|
131
|
+
<DropboxGlyph size={130} />
|
|
132
|
+
</div>
|
|
133
|
+
<svg width={90} height={90} viewBox="0 0 40 40">
|
|
134
|
+
<path d="M 10 15 L 20 26 L 30 15" fill="none" stroke="#6a6a74" strokeWidth={3.6} strokeLinecap="round" strokeLinejoin="round" />
|
|
135
|
+
</svg>
|
|
136
|
+
</div>
|
|
137
|
+
</FloatWrap>
|
|
138
|
+
</div>
|
|
139
|
+
{/* Home 宽药丸(紫边细线横贯面板) */}
|
|
140
|
+
<div style={{ position: 'absolute', left: 110, top: 830, width: 2900 }}>
|
|
141
|
+
<FloatWrap h={liftOf(t, 0.68, 260)}>
|
|
142
|
+
<div style={{
|
|
143
|
+
width: 2900, height: 168,
|
|
144
|
+
borderRadius: 34, border: '3.5px solid rgba(118,108,238,0.75)',
|
|
145
|
+
background: 'rgba(122,110,240,0.09)', display: 'flex', alignItems: 'center',
|
|
146
|
+
gap: 40, paddingLeft: 56, boxSizing: 'border-box',
|
|
147
|
+
}}>
|
|
148
|
+
<svg width={66} height={66} viewBox="0 0 40 40">
|
|
149
|
+
<path d="M 6 20 L 20 7 L 34 20 M 11 17 V 33 H 29 V 17" fill="none" stroke="#5a5ad2" strokeWidth={3.4} strokeLinecap="round" strokeLinejoin="round" />
|
|
150
|
+
</svg>
|
|
151
|
+
<div style={{ fontSize: 70, color: '#5353cf', fontWeight: 550 }}>Home</div>
|
|
152
|
+
</div>
|
|
153
|
+
</FloatWrap>
|
|
154
|
+
</div>
|
|
155
|
+
{/* Inbox 行 */}
|
|
156
|
+
<div style={{ position: 'absolute', left: 166, top: 1070 }}>
|
|
157
|
+
<FloatWrap h={liftOf(t, 0.8, 240)}>
|
|
158
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 40 }}>
|
|
159
|
+
<svg width={64} height={64} viewBox="0 0 40 40">
|
|
160
|
+
<path d="M 20 5 C 13 5 10 10 10 16 V 24 L 6 30 H 34 L 30 24 V 16 C 30 10 27 5 20 5 Z M 16 33 C 16 36 24 36 24 33"
|
|
161
|
+
fill="none" stroke="#3a3a42" strokeWidth={3} strokeLinecap="round" strokeLinejoin="round" />
|
|
162
|
+
</svg>
|
|
163
|
+
<div style={{ fontSize: 70, color: INK }}>Inbox</div>
|
|
164
|
+
</div>
|
|
165
|
+
</FloatWrap>
|
|
166
|
+
</div>
|
|
167
|
+
{/* 更多侧栏行 */}
|
|
168
|
+
{['Docs', 'Dashboards'].map((tb, i) => (
|
|
169
|
+
<div key={tb} style={{ position: 'absolute', left: 166, top: 1310 + i * 240 }}>
|
|
170
|
+
<FloatWrap h={liftOf(t, 0.86 + i * 0.06, 230)}>
|
|
171
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 40 }}>
|
|
172
|
+
<div style={{ width: 58, height: 58, border: '6px solid #8f8f98', borderRadius: 14 }} />
|
|
173
|
+
<div style={{ fontSize: 70, color: INK }}>{tb}</div>
|
|
174
|
+
</div>
|
|
175
|
+
</FloatWrap>
|
|
176
|
+
</div>
|
|
177
|
+
))}
|
|
178
|
+
{/* 主区轮播左箭头(原片 f60 中景的 "<") */}
|
|
179
|
+
<div style={{ position: 'absolute', left: 2440, top: 1060 }}>
|
|
180
|
+
<svg width={120} height={120} viewBox="0 0 40 40">
|
|
181
|
+
<path d="M 26 6 L 12 20 L 26 34" fill="none" stroke="#2c2c33" strokeWidth={4.4} strokeLinecap="round" strokeLinejoin="round" />
|
|
182
|
+
</svg>
|
|
183
|
+
</div>
|
|
184
|
+
{/* 大 W 字形(原片中程右上滑入的大字残段) */}
|
|
185
|
+
<div style={{ position: 'absolute', left: 3050, top: 300, fontSize: 430, fontWeight: 700, color: '#26262c', letterSpacing: -6 }}>W</div>
|
|
186
|
+
{/* 主区白色圆角卡群(右下淡白砖) */}
|
|
187
|
+
{[[2620, 620, 640, 380], [2740, 1360, 720, 420], [2620, 1900, 560, 330]].map(([x, y, w, h], i) => (
|
|
188
|
+
<div key={i} style={{
|
|
189
|
+
position: 'absolute', left: x, top: y, width: w, height: h,
|
|
190
|
+
background: '#fbfbfd', borderRadius: 56, boxShadow: '0 6px 60px rgba(190,190,205,0.3)',
|
|
191
|
+
}} />
|
|
192
|
+
))}
|
|
193
|
+
{/* —— 右段:Product Management 列表(原片尾程满幅白页) —— */}
|
|
194
|
+
<div style={{
|
|
195
|
+
position: 'absolute', left: 3560, top: 230, width: PW - 3560, height: PH - 230,
|
|
196
|
+
background: '#fbfbfd',
|
|
197
|
+
}}>
|
|
198
|
+
<div style={{ position: 'absolute', left: 220, top: 200, fontSize: 150, fontWeight: 750, color: '#232329', letterSpacing: -2, whiteSpace: 'nowrap' }}>Product Management</div>
|
|
199
|
+
{/* List / Board tabs */}
|
|
200
|
+
<div style={{ position: 'absolute', left: 240, top: 480, display: 'flex', gap: 110, alignItems: 'center' }}>
|
|
201
|
+
<div style={{
|
|
202
|
+
display: 'flex', alignItems: 'center', gap: 26, background: '#ececf1',
|
|
203
|
+
borderRadius: 22, padding: '20px 40px',
|
|
204
|
+
}}>
|
|
205
|
+
<svg width={56} height={56} viewBox="0 0 40 40">
|
|
206
|
+
{[9, 20, 31].map((y) => (
|
|
207
|
+
<g key={y}>
|
|
208
|
+
<rect x={5} y={y - 1.6} width={4} height={4} fill="#3a3a42" />
|
|
209
|
+
<rect x={14} y={y - 1.4} width={20} height={3.4} rx={1.6} fill="#3a3a42" />
|
|
210
|
+
</g>
|
|
211
|
+
))}
|
|
212
|
+
</svg>
|
|
213
|
+
<div style={{ fontSize: 62, fontWeight: 600, color: '#2c2c33' }}>List</div>
|
|
214
|
+
</div>
|
|
215
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 26 }}>
|
|
216
|
+
<svg width={56} height={56} viewBox="0 0 40 40">
|
|
217
|
+
<rect x={5} y={7} width={12} height={26} rx={3} fill="none" stroke="#3a3a42" strokeWidth={3} />
|
|
218
|
+
<rect x={23} y={7} width={12} height={18} rx={3} fill="none" stroke="#3a3a42" strokeWidth={3} />
|
|
219
|
+
</svg>
|
|
220
|
+
<div style={{ fontSize: 62, fontWeight: 500, color: '#2c2c33' }}>Board</div>
|
|
221
|
+
</div>
|
|
222
|
+
<div style={{ fontSize: 56, color: '#9a9aa4', marginLeft: -40 }}>11</div>
|
|
223
|
+
</div>
|
|
224
|
+
<div style={{ position: 'absolute', left: 900, top: 620, width: 1500, height: 3, background: '#e4e4ea' }} />
|
|
225
|
+
{/* IN PROGRESS chip */}
|
|
226
|
+
<div style={{
|
|
227
|
+
position: 'absolute', left: 240, top: 850, background: '#fce4f5', color: '#c93bb0',
|
|
228
|
+
fontSize: 46, fontWeight: 650, letterSpacing: 2, padding: '14px 30px', borderRadius: 14,
|
|
229
|
+
}}>IN PROGRESS</div>
|
|
230
|
+
<div style={{ position: 'absolute', left: 244, top: 1030, fontSize: 44, fontWeight: 600, color: '#8f8f98', letterSpacing: 1 }}>TASK NAME</div>
|
|
231
|
+
{/* 任务行 */}
|
|
232
|
+
{[['New Feature Launch', '#3a3a42'], ['Roadmap Q3', '#55555e'], ['User Testing', '#83838d'], ['Bug Triage', '#b3b3bc']].map(([name, col], i) => (
|
|
233
|
+
<div key={name as string} style={{ position: 'absolute', left: 280, top: 1180 + i * 210, display: 'flex', alignItems: 'center', gap: 56 }}>
|
|
234
|
+
<div style={{ width: 42, height: 42, borderRadius: 12, background: '#e33bc6' }} />
|
|
235
|
+
<div style={{ fontSize: 64, fontWeight: 550, color: col as string, whiteSpace: 'nowrap' }}>{name}</div>
|
|
236
|
+
</div>
|
|
237
|
+
))}
|
|
238
|
+
</div>
|
|
239
|
+
{/* 亮度:面板内黑罩(随进度揭亮) */}
|
|
240
|
+
<div style={{ position: 'absolute', inset: 0, background: '#050409', opacity: shade }} />
|
|
241
|
+
{/* 左缘额外阴影(起始更暗,随亮度一同退去) */}
|
|
242
|
+
<div style={{
|
|
243
|
+
position: 'absolute', inset: 0,
|
|
244
|
+
background: 'linear-gradient(90deg, rgba(5,4,9,0.9), rgba(5,4,9,0) 42%)',
|
|
245
|
+
opacity: Math.min(1, shade * 1.6),
|
|
246
|
+
}} />
|
|
247
|
+
</div>
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
/* 固定镜头 + 页面沿自身平面横向滑移。
|
|
251
|
+
* 镜头常数(对照原片密帧校准):perspective 1150、origin 24% 62%、
|
|
252
|
+
* rotateY(-38°)(右缘近、左缘远,顶缘向右上扬)+ rotateZ(-2°)。
|
|
253
|
+
* lx = 页面局部 X 平移(页面自己的横面方向),全程唯一动的量 */
|
|
254
|
+
// v7(批次 16):用户意见"改成60度吧"——rotY -53 → -60(精确定值)
|
|
255
|
+
const CAM = { persp: 1100, origin: '30% 58%', rotY: -60, rotZ: -2, left: '40%', top: '15%', scale: 0.62 };
|
|
256
|
+
|
|
257
|
+
const PanelLayer: React.FC<{ lx: number; shade: number; opacity: number; t: number }> = ({ lx, shade, opacity, t }) => (
|
|
258
|
+
<AbsoluteFill style={{ opacity }}>
|
|
259
|
+
<AbsoluteFill style={{ perspective: CAM.persp, perspectiveOrigin: CAM.origin }}>
|
|
260
|
+
<div style={{
|
|
261
|
+
position: 'absolute', left: CAM.left, top: CAM.top,
|
|
262
|
+
transform: `rotateY(${CAM.rotY}deg) rotateZ(${CAM.rotZ}deg)`, transformOrigin: 'left top',
|
|
263
|
+
}}>
|
|
264
|
+
{/* 页面自身在其 3D 平面内横移(局部 X 轴) */}
|
|
265
|
+
<div style={{ transform: `scale(${CAM.scale}) translateX(${lx}px)`, transformOrigin: 'left top' }}>
|
|
266
|
+
<Panel shade={shade} t={t} />
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</AbsoluteFill>
|
|
270
|
+
</AbsoluteFill>
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
export const SteepTiltGlide: React.FC = () => {
|
|
274
|
+
const frame = useCurrentFrame();
|
|
275
|
+
|
|
276
|
+
// 页面滑移(物动镜不动):局部 X 从 +140 → -2680,起步柔和后近匀速,
|
|
277
|
+
// 全程不安定停死(bezier 尾段斜率不归零)
|
|
278
|
+
const glide = Easing.bezier(0.3, 0.12, 0.72, 0.9);
|
|
279
|
+
const lxAt = (f: number) => {
|
|
280
|
+
const p = interpolate(f, [0, 120], [0, 1], { easing: glide, extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
281
|
+
return interpolate(p, [0, 1], [60, -4100]);
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
const lx = lxAt(frame);
|
|
285
|
+
// 面板黑罩:起始暗 → 约 1.4s 全亮(对齐原片节奏)
|
|
286
|
+
const shade = interpolate(frame, [0, 18, 44], [0.7, 0.4, 0], { extrapolateRight: 'clamp' });
|
|
287
|
+
// 重影强度 ∝ 滑移速度(拖尾=过去时刻的局部位置,同一固定镜头下重投影)
|
|
288
|
+
const speed = Math.abs(lxAt(frame - 1) - lxAt(frame + 1)) / 2;
|
|
289
|
+
const g1 = Math.min(0.42, speed * 0.03);
|
|
290
|
+
const g2 = Math.min(0.22, speed * 0.016);
|
|
291
|
+
// 文字悬空贴落进程(v4 保留)
|
|
292
|
+
const drop = interpolate(frame, [4, 100], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
293
|
+
// 紫晕随亮度浮现
|
|
294
|
+
const glow = interpolate(frame, [14, 70], [0.15, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
295
|
+
|
|
296
|
+
return (
|
|
297
|
+
<AbsoluteFill style={{ background: '#060409' }}>
|
|
298
|
+
{/* 左侧紫晕 */}
|
|
299
|
+
<AbsoluteFill style={{
|
|
300
|
+
opacity: glow,
|
|
301
|
+
background: 'radial-gradient(ellipse 40% 50% at 20% 66%, rgba(118,58,190,0.30), transparent 70%)',
|
|
302
|
+
}} />
|
|
303
|
+
{/* 重影(先画,垫在本体后面;位置=过去时刻的页面局部位移) */}
|
|
304
|
+
{g2 > 0.02 && <PanelLayer lx={lxAt(frame - 5)} shade={shade} opacity={g2} t={drop} />}
|
|
305
|
+
{g1 > 0.02 && <PanelLayer lx={lxAt(frame - 2.5)} shade={shade} opacity={g1} t={drop} />}
|
|
306
|
+
{/* 本体 */}
|
|
307
|
+
<PanelLayer lx={lx} shade={shade} opacity={1} t={drop} />
|
|
308
|
+
{/* 暗角 */}
|
|
309
|
+
<AbsoluteFill style={{
|
|
310
|
+
background: 'radial-gradient(ellipse 105% 95% at 55% 42%, transparent 60%, rgba(3,2,8,0.25) 85%, rgba(2,1,6,0.5) 100%)',
|
|
311
|
+
pointerEvents: 'none',
|
|
312
|
+
}} />
|
|
313
|
+
</AbsoluteFill>
|
|
314
|
+
);
|
|
315
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// stroke-segment-build —— 断笔成字(《异形》式)
|
|
2
|
+
// "SHIP" 拆成 16 段互不相连的粗线段,按乱序表逐段点亮。
|
|
3
|
+
// 前 70%(11 段)读不出字,最后 3 段落位瞬间突然可读;
|
|
4
|
+
// 末段落位帧整字轻微 scale 脉冲(1→1.06→1)。
|
|
5
|
+
// 每段入场:opacity 0→1 + 沿笔画方向 12px 滑入(out 缓动),6f。
|
|
6
|
+
// f0–14 静置空场;末段落位于 f104,脉冲至 f112,真静止 ≥38f(150f 总长)。
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
9
|
+
import { G, TitleBlock } from '../_fixtures/Fixtures';
|
|
10
|
+
|
|
11
|
+
// "SHIP" 手工笔画段。坐标系:每字 200 宽、320 高,字间距 60。
|
|
12
|
+
// 段 = {x1,y1,x2,y2},线宽 44,方形端帽(不连续感更强)。
|
|
13
|
+
type Seg = { x1: number; y1: number; x2: number; y2: number };
|
|
14
|
+
|
|
15
|
+
const K = 200; // 字宽
|
|
16
|
+
const H = 320; // 字高
|
|
17
|
+
const ADV = K + 60;
|
|
18
|
+
|
|
19
|
+
// S:4 段(上横、左上竖、中横、右下竖+下横 → 拆成 5 也行,取 4)
|
|
20
|
+
// H:3 段(左竖、右竖、中横)
|
|
21
|
+
// I:3 段(上横、中竖、下横)
|
|
22
|
+
// P:4 段(左竖、上横、右短竖、中横)—— 共 14 段;S 再拆 2 段成 16
|
|
23
|
+
const SEGS: Seg[] = [
|
|
24
|
+
// S (x offset 0) —— 6 段
|
|
25
|
+
{ x1: 30, y1: 22, x2: 185, y2: 22 }, // 0 上横
|
|
26
|
+
{ x1: 22, y1: 44, x2: 22, y2: 130 }, // 1 左上竖
|
|
27
|
+
{ x1: 30, y1: 152, x2: 175, y2: 152 }, // 2 中横
|
|
28
|
+
{ x1: 178, y1: 174, x2: 178, y2: 276 }, // 3 右下竖
|
|
29
|
+
{ x1: 15, y1: 298, x2: 170, y2: 298 }, // 4 下横
|
|
30
|
+
{ x1: 22, y1: 240, x2: 22, y2: 276 }, // 5 左下小竖(S 尾钩)
|
|
31
|
+
// H (x offset ADV) —— 3 段
|
|
32
|
+
{ x1: ADV + 22, y1: 22, x2: ADV + 22, y2: 298 }, // 6 左竖
|
|
33
|
+
{ x1: ADV + 178, y1: 22, x2: ADV + 178, y2: 298 }, // 7 右竖
|
|
34
|
+
{ x1: ADV + 44, y1: 160, x2: ADV + 156, y2: 160 }, // 8 中横
|
|
35
|
+
// I (x offset ADV*2) —— 3 段
|
|
36
|
+
{ x1: ADV * 2 + 40, y1: 22, x2: ADV * 2 + 160, y2: 22 }, // 9 上横
|
|
37
|
+
{ x1: ADV * 2 + 100, y1: 44, x2: ADV * 2 + 100, y2: 276 }, // 10 中竖
|
|
38
|
+
{ x1: ADV * 2 + 40, y1: 298, x2: ADV * 2 + 160, y2: 298 }, // 11 下横
|
|
39
|
+
// P (x offset ADV*3) —— 4 段
|
|
40
|
+
{ x1: ADV * 3 + 22, y1: 22, x2: ADV * 3 + 22, y2: 298 }, // 12 左竖
|
|
41
|
+
{ x1: ADV * 3 + 44, y1: 22, x2: ADV * 3 + 165, y2: 22 }, // 13 上横
|
|
42
|
+
{ x1: ADV * 3 + 178, y1: 44, x2: ADV * 3 + 178, y2: 140 }, // 14 右短竖
|
|
43
|
+
{ x1: ADV * 3 + 44, y1: 162, x2: ADV * 3 + 165, y2: 162 }, // 15 中横
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
// 乱序点亮表:刻意打散——前 13 段跨字乱跳(读不出),
|
|
47
|
+
// 最后 3 段(8 中横 / 10 I 竖 / 12 P 左竖)落位瞬间补全可读性。
|
|
48
|
+
const ORDER = [3, 9, 6, 15, 1, 11, 14, 4, 0, 7, 13, 2, 5, 8, 10, 12];
|
|
49
|
+
|
|
50
|
+
const FIRST = 14; // 首段起始帧
|
|
51
|
+
const STEP = 6; // 段间隔
|
|
52
|
+
const SEG_IN = 6; // 单段入场时长
|
|
53
|
+
const LAST_LAND = FIRST + 15 * STEP + SEG_IN; // = 110,末段落位
|
|
54
|
+
const PULSE_END = LAST_LAND + 8;
|
|
55
|
+
|
|
56
|
+
const WORD_W = ADV * 3 + K; // 980
|
|
57
|
+
const OX = (1920 - WORD_W) / 2;
|
|
58
|
+
const OY = (1080 - H) / 2 + 20;
|
|
59
|
+
|
|
60
|
+
export const StrokeSegmentBuild: React.FC = () => {
|
|
61
|
+
const frame = useCurrentFrame();
|
|
62
|
+
|
|
63
|
+
// 末段落位:整字脉冲 1 → 1.06 → 1(8f)
|
|
64
|
+
const pulse = interpolate(
|
|
65
|
+
frame,
|
|
66
|
+
[LAST_LAND, LAST_LAND + 3, PULSE_END],
|
|
67
|
+
[1, 1.06, 1],
|
|
68
|
+
{ easing: Easing.out(Easing.cubic), extrapolateLeft: 'clamp', extrapolateRight: 'clamp' },
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<div style={{ width: 1920, height: 1080, background: G.ink, overflow: 'hidden', position: 'relative' }}>
|
|
73
|
+
<div
|
|
74
|
+
style={{
|
|
75
|
+
position: 'absolute',
|
|
76
|
+
top: 110,
|
|
77
|
+
width: '100%',
|
|
78
|
+
textAlign: 'center',
|
|
79
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
80
|
+
fontWeight: 800,
|
|
81
|
+
fontSize: 44,
|
|
82
|
+
color: G.mid,
|
|
83
|
+
letterSpacing: 2,
|
|
84
|
+
}}
|
|
85
|
+
>
|
|
86
|
+
STROKE SEGMENT BUILD
|
|
87
|
+
</div>
|
|
88
|
+
<svg
|
|
89
|
+
width={1920}
|
|
90
|
+
height={1080}
|
|
91
|
+
style={{ position: 'absolute', left: 0, top: 0, transform: `scale(${pulse})`, transformOrigin: '50% 55%' }}
|
|
92
|
+
>
|
|
93
|
+
{SEGS.map((seg, i) => {
|
|
94
|
+
const rank = ORDER.indexOf(i);
|
|
95
|
+
const start = FIRST + rank * STEP;
|
|
96
|
+
if (frame < start) return null; // 未开始的段不渲染
|
|
97
|
+
const t = interpolate(frame, [start, start + SEG_IN], [0, 1], {
|
|
98
|
+
easing: Easing.out(Easing.cubic),
|
|
99
|
+
extrapolateLeft: 'clamp',
|
|
100
|
+
extrapolateRight: 'clamp',
|
|
101
|
+
});
|
|
102
|
+
// 沿笔画方向滑入 12px
|
|
103
|
+
const dx = seg.x2 - seg.x1;
|
|
104
|
+
const dy = seg.y2 - seg.y1;
|
|
105
|
+
const len = Math.hypot(dx, dy) || 1;
|
|
106
|
+
const slide = 12 * (1 - t);
|
|
107
|
+
const ox = (-dx / len) * slide;
|
|
108
|
+
const oy = (-dy / len) * slide;
|
|
109
|
+
return (
|
|
110
|
+
<line
|
|
111
|
+
key={i}
|
|
112
|
+
x1={OX + seg.x1 + ox}
|
|
113
|
+
y1={OY + seg.y1 + oy}
|
|
114
|
+
x2={OX + seg.x2 + ox}
|
|
115
|
+
y2={OY + seg.y2 + oy}
|
|
116
|
+
stroke={G.panel}
|
|
117
|
+
strokeWidth={44}
|
|
118
|
+
strokeLinecap="butt"
|
|
119
|
+
opacity={t}
|
|
120
|
+
/>
|
|
121
|
+
);
|
|
122
|
+
})}
|
|
123
|
+
</svg>
|
|
124
|
+
</div>
|
|
125
|
+
);
|
|
126
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// glitch-displace|噪声置换撕裂
|
|
2
|
+
// FakeDashboard A 播到 45f,45–62f 撕裂转场:页面切 16 条水平条带
|
|
3
|
+
// (外层 overflow hidden + 内层整页反向 translateY 对位),每条 translateX
|
|
4
|
+
// 由 h(条号*31+f*7) 驱动 ±70px 抖动,幅度包络 0→峰值→0(起势 out-cubic、
|
|
5
|
+
// 消散线性,冲击判例)。同时叠 2 份整页明暗错位重影(+12px 暗 / -12px 亮反相,
|
|
6
|
+
// opacity ≤0.35,灰阶版代替 RGB 分离)。58f 抖动衰减中硬切 variant="B",
|
|
7
|
+
// 再抖 4f 至 62f 归位。62f 起摘罩直出 B(条带/重影全部条件卸载),
|
|
8
|
+
// 62–135f 真静止 73f ≥ 40f。帧确定:h() 伪随机,无 Math.random。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { AbsoluteFill, useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
11
|
+
import { FakeDashboard, G } from '../_fixtures/Fixtures';
|
|
12
|
+
|
|
13
|
+
const STRIPS = 16;
|
|
14
|
+
const H = 1080;
|
|
15
|
+
const STRIP_H = H / STRIPS; // 67.5
|
|
16
|
+
const AMP = 70; // 峰值条带错位(spec 备选加码值,QA 要一眼看到撕裂)
|
|
17
|
+
|
|
18
|
+
// 库内标准伪随机
|
|
19
|
+
const h = (n: number) => {
|
|
20
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
21
|
+
return s - Math.floor(s);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const GlitchDisplace: React.FC = () => {
|
|
25
|
+
const frame = useCurrentFrame();
|
|
26
|
+
|
|
27
|
+
const tearing = frame >= 45 && frame < 62;
|
|
28
|
+
const variant: 'A' | 'B' = frame >= 58 ? 'B' : 'A';
|
|
29
|
+
|
|
30
|
+
if (!tearing) {
|
|
31
|
+
// 45f 前 A 静置;62f 起 B 摘罩真静止(无 transform / filter / 重影)
|
|
32
|
+
return (
|
|
33
|
+
<AbsoluteFill style={{ background: G.bg }}>
|
|
34
|
+
<FakeDashboard variant={variant} />
|
|
35
|
+
</AbsoluteFill>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 幅度包络:45–48f out-cubic 冲起 → 平台 → 56–62f 线性消散(帧驱动,确定性)
|
|
40
|
+
const rise = interpolate(frame, [45, 48], [0, 1], {
|
|
41
|
+
easing: Easing.out(Easing.cubic),
|
|
42
|
+
extrapolateLeft: 'clamp',
|
|
43
|
+
extrapolateRight: 'clamp',
|
|
44
|
+
});
|
|
45
|
+
const decay = interpolate(frame, [56, 62], [1, 0], {
|
|
46
|
+
extrapolateLeft: 'clamp',
|
|
47
|
+
extrapolateRight: 'clamp',
|
|
48
|
+
});
|
|
49
|
+
const env = Math.min(rise, decay);
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
53
|
+
{/* 底垫一份完整页,防条带间横移露底色缝 */}
|
|
54
|
+
<AbsoluteFill>
|
|
55
|
+
<FakeDashboard variant={variant} />
|
|
56
|
+
</AbsoluteFill>
|
|
57
|
+
|
|
58
|
+
{/* 明暗错位重影(灰阶版 RGB 分离):+12px 压暗 / -12px 反相提亮 */}
|
|
59
|
+
<AbsoluteFill
|
|
60
|
+
style={{
|
|
61
|
+
transform: 'translateX(12px)',
|
|
62
|
+
opacity: 0.35 * env,
|
|
63
|
+
filter: 'brightness(0.45)',
|
|
64
|
+
}}
|
|
65
|
+
>
|
|
66
|
+
<FakeDashboard variant={variant} />
|
|
67
|
+
</AbsoluteFill>
|
|
68
|
+
<AbsoluteFill
|
|
69
|
+
style={{
|
|
70
|
+
transform: 'translateX(-12px)',
|
|
71
|
+
opacity: 0.28 * env,
|
|
72
|
+
filter: 'invert(1)',
|
|
73
|
+
}}
|
|
74
|
+
>
|
|
75
|
+
<FakeDashboard variant={variant} />
|
|
76
|
+
</AbsoluteFill>
|
|
77
|
+
|
|
78
|
+
{/* 16 条水平条带:外层裁切,内层整页反向 translateY 对位 + 逐帧横向抖动 */}
|
|
79
|
+
{Array.from({ length: STRIPS }).map((_, i) => {
|
|
80
|
+
const dx = (h(i * 31 + frame * 7) * 2 - 1) * AMP * env;
|
|
81
|
+
return (
|
|
82
|
+
<div
|
|
83
|
+
key={i}
|
|
84
|
+
style={{
|
|
85
|
+
position: 'absolute',
|
|
86
|
+
top: i * STRIP_H,
|
|
87
|
+
left: 0,
|
|
88
|
+
width: 1920,
|
|
89
|
+
height: STRIP_H,
|
|
90
|
+
overflow: 'hidden',
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
93
|
+
<div
|
|
94
|
+
style={{
|
|
95
|
+
width: 1920,
|
|
96
|
+
height: H,
|
|
97
|
+
transform: `translate(${dx.toFixed(2)}px, ${-i * STRIP_H}px)`,
|
|
98
|
+
}}
|
|
99
|
+
>
|
|
100
|
+
<FakeDashboard variant={variant} />
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
);
|
|
104
|
+
})}
|
|
105
|
+
</AbsoluteFill>
|
|
106
|
+
);
|
|
107
|
+
};
|