hyper-animator-codex 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -7
- package/bin/hyper-animator-codex.mjs +31 -9
- package/bin/postinstall.mjs +19 -0
- package/lib/install-options.mjs +3 -0
- package/lib/install-skill.mjs +84 -2
- package/lib/minimax-config.mjs +3 -3
- package/package.json +3 -2
- package/skills/hyper-animator-codex/SKILL.md +58 -20
- package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
- package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +214 -0
- package/skills/hyper-animator-codex/contracts/workflow-policy.json +85 -0
- package/skills/hyper-animator-codex/references/HyperFrames-AI-Generation-Patterns-codex.md +788 -0
- package/skills/hyper-animator-codex/references/beat-sync-workflow.md +7 -0
- package/skills/hyper-animator-codex/references/examples/shot-plan-dual-catalog.json +69 -0
- package/skills/hyper-animator-codex/references/hyperframes-agent-pseudocode.ts +1 -1
- package/skills/hyper-animator-codex/references/hyperframes-catalog-map.json +97 -230
- package/skills/hyper-animator-codex/references/hyperframes-intent-workflow.md +23 -7
- package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
- package/skills/hyper-animator-codex/references/narration-audio-workflow.md +31 -1
- package/skills/hyper-animator-codex/references/shotcraft/LICENSE +202 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ai-stream-response/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/autolayout-gap-dial/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-cut-moves/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-step-list-theme-cycle/README.md +59 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/before-after-slider-scrub/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bottom-push-stack-wipe/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-frame-snap/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-ink-open/README.md +35 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bubble-swarm-takeover/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/canvas-materialize-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flip-reveal/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flock-tumble/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cel-flash-stomp/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/chart-live-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/circle-match-iris/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cloner-depth-echo/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/collab-cursor-moves/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/color-block-step-wipe/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/command-palette-summon/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crane-rise-reveal/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crash-zoom-punch/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/dataviz-landscape-open/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/deck-deal-flyin/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/depth-layer-moves/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/document-typewriter-reveal/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/draw-svg-trace/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/edit-hook-moves/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/element-body-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/fui-hud-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gauge-readout-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/glow-flyline-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gradient-word-sweep/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/graze-face-tour/README.md +56 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hashtag-to-pill-materialize/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hires-rasterize-3d-text/README.md +34 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-field-colorize/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-performance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/impact-feedback/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/input-trigger-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/integration-hub-map/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/letterspace-materialize/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/light-play-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-boil/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-carry-transition/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/list-stack-press/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/magician-card-flourish/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/marker-underline-title/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/montage-rhythm-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/morph-from-primitive/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-forerun/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-orbit-drop/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-triple-marquee/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/odometer-digit-roll/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/outro-group-photo-launch/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/overhead-camera-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-turn-transitions/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-waterfall-wall/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/panel-grid-moves/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-craft-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-plane-messenger/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-title-card/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-celebrate-hits/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-sand-fill/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/pill-slot-cycle/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/print-texture-transitions/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/rhythm-interrupt-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/riso-print-hits/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/row-embed/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/runway-ground-skim/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/sakuga-timing-shift/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scene-locked-title/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scroll-brake-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/segmented-thumb-hero/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/shot-transitions/README.md +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/skeleton-reveal/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/slam-entrance-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/smear-multiples/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/space-camera-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spectrum-morph-ui/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/speed-ramp-freeze/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/split-flap-title/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-hero-card/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-sweep-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/steep-tilt-glide/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/stroke-segment-build/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tear-streak-transitions/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tension-camera-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-as-mask/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-column-converge/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/theme-switch-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/timeline-travel/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/title-demote-to-label/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/trailer-grammar-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-hidden-cut/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-travel/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-and-filter/README.md +37 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-assembly-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-entrance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-rhythm-sync/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/typewriter-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-strip-away-outro/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-to-brand-morph/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/voice-waveform-live/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wall-reveal-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wipe-transitions/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/word-relay-filmstrip/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/catalog.json +3946 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
- package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
- package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
- package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
- package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
- package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
- package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
- package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
- package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
- package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +193 -0
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { FakeDashboard, TitleBlock, G } from '../_fixtures/Fixtures';
|
|
4
|
+
|
|
5
|
+
// light-leak-burn〔转场〕:一团琥珀橙柔光从右上角斜扫入画,亮度顶峰时
|
|
6
|
+
// 吞掉旧画面约七成(高光溢出、对比度被冲淡),光峰帧后切新页藏切点,
|
|
7
|
+
// 光退散时新页已在光下就位——比白闪柔、有方向、有温度。
|
|
8
|
+
// 节拍:0–25 建立旧页 hold;25–52 光斜扫入、爬向峰值;52 峰值帧切页;
|
|
9
|
+
// 52–95 光沿对角线退出、强度衰减;95–130 新页静止 hold。
|
|
10
|
+
|
|
11
|
+
const PEAK = 52; // 光峰帧 = 藏切点
|
|
12
|
+
|
|
13
|
+
export const LightLeakBurn: React.FC = () => {
|
|
14
|
+
const frame = useCurrentFrame();
|
|
15
|
+
|
|
16
|
+
// 光团沿对角线的位移进度:右上外 → 左下外,贯穿 25–95
|
|
17
|
+
const sweep = interpolate(frame, [25, 95], [0, 1], {
|
|
18
|
+
extrapolateLeft: 'clamp',
|
|
19
|
+
extrapolateRight: 'clamp',
|
|
20
|
+
easing: Easing.bezier(0.4, 0, 0.3, 1),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// 光强包络:25–PEAK 爬升(ease-in 有蓄力感),PEAK–95 收敛(ease-out 余温)
|
|
24
|
+
const rise = interpolate(frame, [25, PEAK], [0, 1], {
|
|
25
|
+
extrapolateLeft: 'clamp',
|
|
26
|
+
extrapolateRight: 'clamp',
|
|
27
|
+
easing: Easing.in(Easing.quad),
|
|
28
|
+
});
|
|
29
|
+
const fall = interpolate(frame, [PEAK, 95], [1, 0], {
|
|
30
|
+
extrapolateLeft: 'clamp',
|
|
31
|
+
extrapolateRight: 'clamp',
|
|
32
|
+
easing: Easing.out(Easing.cubic),
|
|
33
|
+
});
|
|
34
|
+
const intensity = frame <= PEAK ? rise : fall;
|
|
35
|
+
|
|
36
|
+
// 光团中心:从画面右上外侧斜扫到左下外侧(有方向的漏光)
|
|
37
|
+
const cx = interpolate(sweep, [0, 1], [2350, -650]);
|
|
38
|
+
const cy = interpolate(sweep, [0, 1], [-500, 1500]);
|
|
39
|
+
|
|
40
|
+
// 三团琥珀光的偏移与直径(seed 正弦哈希做微差,避免完美同心)
|
|
41
|
+
const blobs = [0, 1, 2].map((i) => {
|
|
42
|
+
const j1 = (Math.sin(i * 127.3) * 43758) % 1; // -1..1 小数
|
|
43
|
+
const j2 = (Math.sin(i * 311.7) * 27183) % 1;
|
|
44
|
+
return {
|
|
45
|
+
dx: i * 260 - 260 + j1 * 90, // 沿扫掠方向拖尾排布
|
|
46
|
+
dy: i * 200 - 200 + j2 * 70,
|
|
47
|
+
d: 1500 + i * 450, // 直径 1500 / 1950 / 2400
|
|
48
|
+
color: ['#f6c878', '#e8a44a', '#d98a2b'][i],
|
|
49
|
+
alpha: [0.95, 0.8, 0.55][i],
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// 峰值时页面被光冲淡:对比度降、亮度抬(旧页被"烧穿"的感觉)
|
|
54
|
+
const pageFilter = `contrast(${1 - intensity * 0.45}) brightness(${1 + intensity * 0.35})`;
|
|
55
|
+
|
|
56
|
+
// 全屏暖色罩:峰值时约 8%
|
|
57
|
+
const warmWash = intensity * 0.08;
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
61
|
+
{/* 页面层:光峰帧前是旧页(网格),之后是新页(列表+标题)——切点藏在最亮处 */}
|
|
62
|
+
<AbsoluteFill style={{ filter: pageFilter }}>
|
|
63
|
+
{frame <= PEAK ? (
|
|
64
|
+
<FakeDashboard variant="A" />
|
|
65
|
+
) : (
|
|
66
|
+
<>
|
|
67
|
+
<FakeDashboard variant="B" />
|
|
68
|
+
<div style={{ position: 'absolute', left: 288, top: 132 }}>
|
|
69
|
+
<TitleBlock text="Next Page" size={64} />
|
|
70
|
+
</div>
|
|
71
|
+
</>
|
|
72
|
+
)}
|
|
73
|
+
</AbsoluteFill>
|
|
74
|
+
|
|
75
|
+
{/* 全屏暖色罩:峰值 8%,让高光溢出带温度 */}
|
|
76
|
+
<AbsoluteFill
|
|
77
|
+
style={{
|
|
78
|
+
background: '#e8a44a',
|
|
79
|
+
opacity: warmWash,
|
|
80
|
+
mixBlendMode: 'screen',
|
|
81
|
+
pointerEvents: 'none',
|
|
82
|
+
}}
|
|
83
|
+
/>
|
|
84
|
+
|
|
85
|
+
{/* 琥珀漏光层:3 团大直径径向渐变,blur 90px,screen 叠加,沿对角线扫过 */}
|
|
86
|
+
<AbsoluteFill style={{ pointerEvents: 'none' }}>
|
|
87
|
+
{blobs.map((b, i) => (
|
|
88
|
+
<div
|
|
89
|
+
key={i}
|
|
90
|
+
style={{
|
|
91
|
+
position: 'absolute',
|
|
92
|
+
left: cx + b.dx - b.d / 2,
|
|
93
|
+
top: cy + b.dy - b.d / 2,
|
|
94
|
+
width: b.d,
|
|
95
|
+
height: b.d,
|
|
96
|
+
borderRadius: '50%',
|
|
97
|
+
background: `radial-gradient(circle, ${b.color} 0%, ${b.color}cc 30%, transparent 68%)`,
|
|
98
|
+
filter: 'blur(90px)',
|
|
99
|
+
mixBlendMode: 'screen',
|
|
100
|
+
opacity: b.alpha * intensity,
|
|
101
|
+
}}
|
|
102
|
+
/>
|
|
103
|
+
))}
|
|
104
|
+
{/* 峰值核心过曝:光心一小团接近白的热核,峰值帧吞掉约七成画面 */}
|
|
105
|
+
<div
|
|
106
|
+
style={{
|
|
107
|
+
position: 'absolute',
|
|
108
|
+
left: cx - 550,
|
|
109
|
+
top: cy - 550,
|
|
110
|
+
width: 1100,
|
|
111
|
+
height: 1100,
|
|
112
|
+
borderRadius: '50%',
|
|
113
|
+
background: 'radial-gradient(circle, #fff3dd 0%, #f6c878aa 45%, transparent 70%)',
|
|
114
|
+
filter: 'blur(80px)',
|
|
115
|
+
mixBlendMode: 'screen',
|
|
116
|
+
opacity: intensity * intensity, // 只在临近峰值时才烧起来
|
|
117
|
+
}}
|
|
118
|
+
/>
|
|
119
|
+
</AbsoluteFill>
|
|
120
|
+
</AbsoluteFill>
|
|
121
|
+
);
|
|
122
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { FakeDashboard, TitleBlock, G } from '../_fixtures/Fixtures';
|
|
4
|
+
|
|
5
|
+
// versus-slam 对撞开屏:左右两个半屏画面(带 78° 斜切边)从画外加速对冲,
|
|
6
|
+
// 沿斜缝砰地撞合;撞击帧白闪 + 整机震屏指数衰减 + "VS" 字块盖章压出,结尾静止 hold。
|
|
7
|
+
const IMPACT = 30; // 撞击帧(前 20f 建立 hold + 10f ease-in 对冲)
|
|
8
|
+
|
|
9
|
+
// 斜缝几何:78° 斜边 → 1080 高度上水平偏移 1080/tan(78°) ≈ 230px,中线 x=960 ±115
|
|
10
|
+
const SEAM_TOP_X = 1075; // 缝顶端 x
|
|
11
|
+
const SEAM_BOT_X = 845; // 缝底端 x
|
|
12
|
+
// CSS 旋转顺时针为正:缝顶端偏右(1075 > 845)→ 正角度 ≈ +12°
|
|
13
|
+
const SEAM_DEG = (Math.atan2(SEAM_TOP_X - SEAM_BOT_X, 1080) * 180) / Math.PI;
|
|
14
|
+
|
|
15
|
+
export const VersusSlam: React.FC = () => {
|
|
16
|
+
const frame = useCurrentFrame();
|
|
17
|
+
|
|
18
|
+
// 两半屏对冲:ease-in 加速,10f 从 ±1200px 冲到位
|
|
19
|
+
const leftX = interpolate(frame, [20, IMPACT], [-1200, 0], {
|
|
20
|
+
extrapolateLeft: 'clamp',
|
|
21
|
+
extrapolateRight: 'clamp',
|
|
22
|
+
easing: Easing.in(Easing.cubic),
|
|
23
|
+
});
|
|
24
|
+
const rightX = -leftX;
|
|
25
|
+
|
|
26
|
+
// 撞击帧起:整机震屏 12px 指数衰减(约 5f 收干)
|
|
27
|
+
const since = frame - IMPACT;
|
|
28
|
+
const env = since >= 0 ? 12 * Math.exp(-since / 1.6) : 0;
|
|
29
|
+
const shakeX = env * Math.sin(since * 3.4);
|
|
30
|
+
const shakeY = env * 0.6 * Math.sin(since * 4.1 + 0.7);
|
|
31
|
+
|
|
32
|
+
// 白闪:撞击帧 0.9 → 0,3f 收掉
|
|
33
|
+
const flash = interpolate(frame, [IMPACT, IMPACT + 3], [0.9, 0], {
|
|
34
|
+
extrapolateLeft: 'clamp',
|
|
35
|
+
extrapolateRight: 'clamp',
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// "VS" 盖章:scale 1.6 → 1 带 back overshoot,6f 压出
|
|
39
|
+
const vsScale = interpolate(frame, [IMPACT, IMPACT + 6], [1.6, 1], {
|
|
40
|
+
extrapolateLeft: 'clamp',
|
|
41
|
+
extrapolateRight: 'clamp',
|
|
42
|
+
easing: Easing.out(Easing.back(2.6)),
|
|
43
|
+
});
|
|
44
|
+
const vsOpacity = interpolate(frame, [IMPACT, IMPACT + 2], [0, 1], {
|
|
45
|
+
extrapolateLeft: 'clamp',
|
|
46
|
+
extrapolateRight: 'clamp',
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const impacted = frame >= IMPACT;
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
53
|
+
<div style={{ position: 'absolute', inset: 0, transform: `translate(${shakeX}px, ${shakeY}px)` }}>
|
|
54
|
+
{/* 建立段的斜缝虚线预示(撞合后被实缝替代) */}
|
|
55
|
+
{!impacted && (
|
|
56
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0 }}>
|
|
57
|
+
<line
|
|
58
|
+
x1={SEAM_TOP_X} y1={0} x2={SEAM_BOT_X} y2={1080}
|
|
59
|
+
stroke={G.bar} strokeWidth={4} strokeDasharray="18 16"
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
)}
|
|
63
|
+
{/* 左半屏:FakeDashboard A 裁左半,斜边 78° */}
|
|
64
|
+
<div style={{
|
|
65
|
+
position: 'absolute', inset: 0,
|
|
66
|
+
transform: `translateX(${leftX}px)`,
|
|
67
|
+
clipPath: `polygon(0px 0px, ${SEAM_TOP_X}px 0px, ${SEAM_BOT_X}px 1080px, 0px 1080px)`,
|
|
68
|
+
}}>
|
|
69
|
+
<FakeDashboard variant="A" />
|
|
70
|
+
</div>
|
|
71
|
+
{/* 右半屏:FakeDashboard B 裁右半 */}
|
|
72
|
+
<div style={{
|
|
73
|
+
position: 'absolute', inset: 0,
|
|
74
|
+
transform: `translateX(${rightX}px)`,
|
|
75
|
+
clipPath: `polygon(${SEAM_TOP_X}px 0px, 1920px 0px, 1920px 1080px, ${SEAM_BOT_X}px 1080px)`,
|
|
76
|
+
}}>
|
|
77
|
+
<FakeDashboard variant="B" />
|
|
78
|
+
</div>
|
|
79
|
+
{/* 撞合后的实体斜缝条 */}
|
|
80
|
+
{impacted && (
|
|
81
|
+
<div style={{
|
|
82
|
+
position: 'absolute', left: 960 - 6, top: 540 - 700,
|
|
83
|
+
width: 12, height: 1400, background: G.ink,
|
|
84
|
+
transform: `rotate(${SEAM_DEG}deg)`,
|
|
85
|
+
}} />
|
|
86
|
+
)}
|
|
87
|
+
{/* "VS" 字块盖章:贴缝、随缝倾斜 */}
|
|
88
|
+
{impacted && (
|
|
89
|
+
<div style={{
|
|
90
|
+
position: 'absolute', left: 960, top: 540,
|
|
91
|
+
transform: `translate(-50%, -50%) rotate(${SEAM_DEG}deg) scale(${vsScale})`,
|
|
92
|
+
opacity: vsOpacity,
|
|
93
|
+
background: G.card, border: `6px solid ${G.ink}`, borderRadius: 20,
|
|
94
|
+
padding: '18px 46px', boxShadow: '0 18px 60px rgba(0,0,0,0.35)',
|
|
95
|
+
}}>
|
|
96
|
+
<TitleBlock text="VS" size={140} />
|
|
97
|
+
</div>
|
|
98
|
+
)}
|
|
99
|
+
</div>
|
|
100
|
+
{/* 撞击白闪(不随震屏位移) */}
|
|
101
|
+
<AbsoluteFill style={{ background: '#ffffff', opacity: flash, pointerEvents: 'none' }} />
|
|
102
|
+
</AbsoluteFill>
|
|
103
|
+
);
|
|
104
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { FakeDashboard, G } from '../_fixtures/Fixtures';
|
|
4
|
+
|
|
5
|
+
// letterform-zoom〔转场〕:巨型标题 "DASH" 字腔透出新页面,镜头急速推进
|
|
6
|
+
// 字母 A 的三角字腔,洞被撑满全屏的瞬间新页面接管,残余笔画滑出画外。
|
|
7
|
+
// 结构:底层 FakeDashboard B 静置全屏(微 dolly);上层"米灰盖板"用
|
|
8
|
+
// SVG <mask>(白底 + 黑字)在字形处挖洞——洞里即透出 B;对盖板整组做
|
|
9
|
+
// transform-origin 对准 A 字腔中心的指数 scale 1→28(60f,前 20f 慢
|
|
10
|
+
// 后 40f 陡)。scale 过临界值后盖板快速退场 = 撤掉 mask,B 全屏接管。
|
|
11
|
+
|
|
12
|
+
const FS = 560; // 标题字号
|
|
13
|
+
// A 字腔(三角洞)中心:Helvetica Bold 度量估算——
|
|
14
|
+
// "DASH" 总宽 ≈ 2.833em,居中起点 x≈167,A 占 571–975 → 腔心 x≈773;
|
|
15
|
+
// 基线 y=741(大写居中),腔心约在基线上方 0.42em → y≈508。
|
|
16
|
+
const ORIGIN = { x: 773, y: 508 };
|
|
17
|
+
const BASELINE = 741;
|
|
18
|
+
const ZOOM_MAX = 28;
|
|
19
|
+
|
|
20
|
+
const titleFont: React.CSSProperties = {
|
|
21
|
+
fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif',
|
|
22
|
+
fontWeight: 900,
|
|
23
|
+
fontSize: FS,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const LetterformZoom: React.FC = () => {
|
|
27
|
+
const frame = useCurrentFrame();
|
|
28
|
+
|
|
29
|
+
// 0–25f 建立 hold;25–85f 推进。慢起 bezier 叠指数尺度 = 前段慢、后段陡
|
|
30
|
+
const t = interpolate(frame, [25, 85], [0, 1], {
|
|
31
|
+
extrapolateLeft: 'clamp',
|
|
32
|
+
extrapolateRight: 'clamp',
|
|
33
|
+
easing: Easing.bezier(0.6, 0, 0.85, 0.5),
|
|
34
|
+
});
|
|
35
|
+
const scale = Math.pow(ZOOM_MAX, t); // 指数推进:等比的"穿越"速度感
|
|
36
|
+
|
|
37
|
+
// scale 过临界值(洞已撑满画面中部)→ 盖板残余笔画边外飞边撤场(撤 mask)
|
|
38
|
+
const plateOpacity = interpolate(scale, [15, 24], [1, 0], {
|
|
39
|
+
extrapolateLeft: 'clamp',
|
|
40
|
+
extrapolateRight: 'clamp',
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
// 速度模糊:期望视觉模糊量随推进升高;CSS filter 会被 transform 放大,
|
|
44
|
+
// 故除以 scale 补偿
|
|
45
|
+
const visBlur = interpolate(t, [0, 0.45, 1], [0, 1.5, 16], {
|
|
46
|
+
extrapolateLeft: 'clamp',
|
|
47
|
+
extrapolateRight: 'clamp',
|
|
48
|
+
});
|
|
49
|
+
const blurCss = visBlur / scale;
|
|
50
|
+
|
|
51
|
+
// 新页面微 dolly:推进期跟着轻推 1→1.1,接管后 25f 内落定回 1(收势)
|
|
52
|
+
const bScale =
|
|
53
|
+
frame < 85
|
|
54
|
+
? interpolate(t, [0, 1], [1, 1.1])
|
|
55
|
+
: interpolate(frame, [85, 110], [1.1, 1], {
|
|
56
|
+
extrapolateLeft: 'clamp',
|
|
57
|
+
extrapolateRight: 'clamp',
|
|
58
|
+
easing: Easing.out(Easing.cubic),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
63
|
+
{/* 新页面:先只在字腔里透出,接管后全屏(110–140f 静止收尾) */}
|
|
64
|
+
<div
|
|
65
|
+
style={{
|
|
66
|
+
position: 'absolute',
|
|
67
|
+
inset: 0,
|
|
68
|
+
transform: `scale(${bScale})`,
|
|
69
|
+
transformOrigin: `${ORIGIN.x}px ${ORIGIN.y}px`,
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
72
|
+
<FakeDashboard variant="B" />
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
{/* 米灰盖板(字形挖洞)+ 字缘描边 + 副标灰条:整组指数推进后飞出画外 */}
|
|
76
|
+
{plateOpacity > 0 && (
|
|
77
|
+
<div
|
|
78
|
+
style={{
|
|
79
|
+
position: 'absolute',
|
|
80
|
+
inset: 0,
|
|
81
|
+
transform: `scale(${scale})`,
|
|
82
|
+
transformOrigin: `${ORIGIN.x}px ${ORIGIN.y}px`,
|
|
83
|
+
opacity: plateOpacity,
|
|
84
|
+
filter: blurCss > 0.02 ? `blur(${blurCss}px)` : undefined,
|
|
85
|
+
}}
|
|
86
|
+
>
|
|
87
|
+
<svg
|
|
88
|
+
width={1920}
|
|
89
|
+
height={1080}
|
|
90
|
+
viewBox="0 0 1920 1080"
|
|
91
|
+
style={{ position: 'absolute', inset: 0, display: 'block' }}
|
|
92
|
+
>
|
|
93
|
+
<defs>
|
|
94
|
+
<mask id="lfz-cut">
|
|
95
|
+
<rect width={1920} height={1080} fill="#fff" />
|
|
96
|
+
<text
|
|
97
|
+
x={960}
|
|
98
|
+
y={BASELINE}
|
|
99
|
+
textAnchor="middle"
|
|
100
|
+
fill="#000"
|
|
101
|
+
style={titleFont}
|
|
102
|
+
>
|
|
103
|
+
DASH
|
|
104
|
+
</text>
|
|
105
|
+
</mask>
|
|
106
|
+
</defs>
|
|
107
|
+
<rect width={1920} height={1080} fill={G.bg} mask="url(#lfz-cut)" />
|
|
108
|
+
{/* 字缘细描边:让"洞"的轮廓在米灰上读得清 */}
|
|
109
|
+
<text
|
|
110
|
+
x={960}
|
|
111
|
+
y={BASELINE}
|
|
112
|
+
textAnchor="middle"
|
|
113
|
+
fill="none"
|
|
114
|
+
stroke={G.ink}
|
|
115
|
+
strokeWidth={3}
|
|
116
|
+
opacity={0.3}
|
|
117
|
+
style={titleFont}
|
|
118
|
+
>
|
|
119
|
+
DASH
|
|
120
|
+
</text>
|
|
121
|
+
</svg>
|
|
122
|
+
{/* 副标灰条:随盖板一起被甩出画外,强化"页面元素残余"感 */}
|
|
123
|
+
<div
|
|
124
|
+
style={{
|
|
125
|
+
position: 'absolute',
|
|
126
|
+
left: 0,
|
|
127
|
+
right: 0,
|
|
128
|
+
top: 812,
|
|
129
|
+
display: 'flex',
|
|
130
|
+
justifyContent: 'center',
|
|
131
|
+
gap: 16,
|
|
132
|
+
}}
|
|
133
|
+
>
|
|
134
|
+
<div style={{ width: 240, height: 16, background: G.bar, borderRadius: 8 }} />
|
|
135
|
+
<div style={{ width: 130, height: 16, background: G.line, borderRadius: 8 }} />
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
)}
|
|
139
|
+
</AbsoluteFill>
|
|
140
|
+
);
|
|
141
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AbsoluteFill, Easing, interpolate, useCurrentFrame } from 'remotion';
|
|
3
|
+
import { FakeDashboard, Card, G } from '../_fixtures/Fixtures';
|
|
4
|
+
|
|
5
|
+
// shared-element-morph〔转场〕:全屏特写面板收缩、位移、长出圆角,
|
|
6
|
+
// 严丝合缝飞落进 dashboard 网格里它所属的卡片槽位,落座带 3% 过冲。
|
|
7
|
+
// 观众感觉是同一个物体被镜头送回原位(FLIP 共享元素转场)。
|
|
8
|
+
//
|
|
9
|
+
// 目标槽位 = FakeDashboard A 中列第二行那格(seed 5),按 fixtures 布局精确推算:
|
|
10
|
+
// 侧栏 220 + 网格 padding 36 → 列宽 (1920-220-72-56)/3 = 524
|
|
11
|
+
// 头部 72 + padding 36 → 行高 (1008-72-28)/2 = 454
|
|
12
|
+
// 中列 x = 220+36+524+28 = 808;第二行 y = 72+36+454+28 = 590
|
|
13
|
+
const SLOT = { x: 808, y: 590, w: 524, h: 454, r: 14, seed: 5 };
|
|
14
|
+
const FULL = { x: 0, y: 0, w: 1920, h: 1080, r: 0 };
|
|
15
|
+
|
|
16
|
+
// 节拍:0–35 全屏特写 hold | 35–60 morph 25f(bezier 0.4,0,0.2,1 → 1.03)
|
|
17
|
+
// 60–70 过冲回弹落座 | 70–130 静止收尾
|
|
18
|
+
const MORPH_START = 35;
|
|
19
|
+
const MORPH_END = 60;
|
|
20
|
+
const SETTLE_END = 70;
|
|
21
|
+
|
|
22
|
+
const lerp = (a: number, b: number, t: number) => a + (b - a) * t;
|
|
23
|
+
|
|
24
|
+
export const SharedElementMorph: React.FC = () => {
|
|
25
|
+
const frame = useCurrentFrame();
|
|
26
|
+
|
|
27
|
+
// 位置/尺寸/圆角共用同一条进度曲线:25f 冲到 1.03,再 10f 弹回 1
|
|
28
|
+
const drive = interpolate(frame, [MORPH_START, MORPH_END], [0, 1.03], {
|
|
29
|
+
extrapolateLeft: 'clamp',
|
|
30
|
+
extrapolateRight: 'clamp',
|
|
31
|
+
easing: Easing.bezier(0.4, 0, 0.2, 1),
|
|
32
|
+
});
|
|
33
|
+
const settle = interpolate(frame, [MORPH_END, SETTLE_END], [1.03, 1], {
|
|
34
|
+
extrapolateLeft: 'clamp',
|
|
35
|
+
extrapolateRight: 'clamp',
|
|
36
|
+
easing: Easing.out(Easing.cubic),
|
|
37
|
+
});
|
|
38
|
+
const p = frame <= MORPH_END ? drive : settle;
|
|
39
|
+
|
|
40
|
+
const x = lerp(FULL.x, SLOT.x, p);
|
|
41
|
+
const y = lerp(FULL.y, SLOT.y, p);
|
|
42
|
+
const w = lerp(FULL.w, SLOT.w, p);
|
|
43
|
+
const h = lerp(FULL.h, SLOT.h, p);
|
|
44
|
+
const r = lerp(FULL.r, SLOT.r, p);
|
|
45
|
+
|
|
46
|
+
// 内容是同一张卡:按目标尺寸渲染,等比放大铺满全屏(全屏 = 这张卡的特写),
|
|
47
|
+
// 收缩过程中内容随容器一起缩小,强化"同一个物体"的感知
|
|
48
|
+
const contentScale = w / SLOT.w;
|
|
49
|
+
|
|
50
|
+
// 投影随尺寸缩小:悬空时大而深,落座后收敛到 fixtures 卡片原生投影量级
|
|
51
|
+
const ps = Math.min(Math.max(p, 0), 1);
|
|
52
|
+
const shadowY = lerp(36, 2, ps);
|
|
53
|
+
const shadowBlur = lerp(110, 8, ps);
|
|
54
|
+
const shadowAlpha = lerp(0.32, 0.06, ps);
|
|
55
|
+
|
|
56
|
+
// 背景 dashboard 先 0.9 透明度待命,落座瞬间提到 1
|
|
57
|
+
const bgOpacity = interpolate(frame, [MORPH_END - 2, MORPH_END + 3], [0.9, 1], {
|
|
58
|
+
extrapolateLeft: 'clamp',
|
|
59
|
+
extrapolateRight: 'clamp',
|
|
60
|
+
easing: Easing.out(Easing.quad),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
65
|
+
<div style={{ opacity: bgOpacity }}>
|
|
66
|
+
<FakeDashboard variant="A" />
|
|
67
|
+
</div>
|
|
68
|
+
{/* 共享元素:全屏特写 → 精确飞落进槽位 */}
|
|
69
|
+
<div
|
|
70
|
+
style={{
|
|
71
|
+
position: 'absolute',
|
|
72
|
+
left: x,
|
|
73
|
+
top: y,
|
|
74
|
+
width: w,
|
|
75
|
+
height: h,
|
|
76
|
+
borderRadius: r,
|
|
77
|
+
overflow: 'hidden',
|
|
78
|
+
background: G.card,
|
|
79
|
+
boxShadow: `0 ${shadowY}px ${shadowBlur}px rgba(0,0,0,${shadowAlpha})`,
|
|
80
|
+
}}
|
|
81
|
+
>
|
|
82
|
+
<div
|
|
83
|
+
style={{
|
|
84
|
+
position: 'absolute',
|
|
85
|
+
left: 0,
|
|
86
|
+
top: 0,
|
|
87
|
+
transform: `scale(${contentScale})`,
|
|
88
|
+
transformOrigin: 'top left',
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
<Card
|
|
92
|
+
w={SLOT.w}
|
|
93
|
+
h={SLOT.h}
|
|
94
|
+
seed={SLOT.seed}
|
|
95
|
+
style={{ boxShadow: 'none', borderRadius: r / Math.max(contentScale, 0.0001) }}
|
|
96
|
+
/>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</AbsoluteFill>
|
|
100
|
+
);
|
|
101
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// 字形漂移合拢(letterform-drift-assembly)——Stranger Things 片头式入场。
|
|
2
|
+
// 标题 "ASSEMBLE" 拆 9 字符:各自从不同方向(h(i) seeded 随机向量,
|
|
3
|
+
// 幅度 ±260–360px)带 blur 8px + opacity 0.35 缓慢漂入,错峰归位
|
|
4
|
+
// (delay i×3f,45f 行程,Easing.out(cubic))。每字锁定瞬间给一次
|
|
5
|
+
// "加深脉冲":字色 G.ink→#000→G.ink + 描边 0→3px→0(8f)——白底上
|
|
6
|
+
// 不用发光用加深(库判例)。全部合体后整词 scale 1→1.04→1 收束呼吸
|
|
7
|
+
// (判例:1.02 太弱,加码到 1.04)。
|
|
8
|
+
// 关键帧:0–24 各字错峰启程 → i 字 [i*3, i*3+45] 漂入归位 →
|
|
9
|
+
// 锁定帧 i*3+45 起 8f 加深脉冲(最后一字 69–77)→ 80–104 整词呼吸 →
|
|
10
|
+
// 104–150 全静止(46f,无逐帧滤镜)。
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
13
|
+
import { G, TitleBlock } from '../_fixtures/Fixtures';
|
|
14
|
+
|
|
15
|
+
const h = (n: number) => {
|
|
16
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
17
|
+
return s - Math.floor(s);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const WORD = 'ASSEMBLE';
|
|
21
|
+
const TRAVEL = 45; // 每字漂入行程帧数
|
|
22
|
+
const STAG = 3; // 错峰间隔
|
|
23
|
+
|
|
24
|
+
export const LetterformDriftAssembly: React.FC = () => {
|
|
25
|
+
const frame = useCurrentFrame();
|
|
26
|
+
const chars = WORD.split('');
|
|
27
|
+
const lastLock = (chars.length - 1) * STAG + TRAVEL; // 69
|
|
28
|
+
|
|
29
|
+
// 整词收束呼吸:80–92 放大到 1.04,92–104 回落,之后恒 1 → 帧确定
|
|
30
|
+
const breath =
|
|
31
|
+
frame < 92
|
|
32
|
+
? interpolate(frame, [80, 92], [1, 1.04], {
|
|
33
|
+
extrapolateLeft: 'clamp',
|
|
34
|
+
extrapolateRight: 'clamp',
|
|
35
|
+
easing: Easing.inOut(Easing.cubic),
|
|
36
|
+
})
|
|
37
|
+
: interpolate(frame, [92, 104], [1.04, 1], {
|
|
38
|
+
extrapolateLeft: 'clamp',
|
|
39
|
+
extrapolateRight: 'clamp',
|
|
40
|
+
easing: Easing.inOut(Easing.cubic),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
45
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
46
|
+
<TitleBlock text="LETTERFORM DRIFT ASSEMBLY" size={54} />
|
|
47
|
+
</div>
|
|
48
|
+
<div
|
|
49
|
+
style={{
|
|
50
|
+
position: 'absolute',
|
|
51
|
+
inset: 0,
|
|
52
|
+
display: 'flex',
|
|
53
|
+
alignItems: 'center',
|
|
54
|
+
justifyContent: 'center',
|
|
55
|
+
transform: `scale(${breath})`,
|
|
56
|
+
}}
|
|
57
|
+
>
|
|
58
|
+
{chars.map((c, i) => {
|
|
59
|
+
const start = i * STAG;
|
|
60
|
+
const lock = start + TRAVEL;
|
|
61
|
+
// 漂入进度
|
|
62
|
+
const p = interpolate(frame, [start, lock], [0, 1], {
|
|
63
|
+
extrapolateLeft: 'clamp',
|
|
64
|
+
extrapolateRight: 'clamp',
|
|
65
|
+
easing: Easing.out(Easing.cubic),
|
|
66
|
+
});
|
|
67
|
+
// seeded 起始向量:方向 h(i),幅度 260–360px
|
|
68
|
+
const ang = h(i + 1) * Math.PI * 2;
|
|
69
|
+
const mag = 260 + h(i + 101) * 100;
|
|
70
|
+
const dx = Math.cos(ang) * mag * (1 - p);
|
|
71
|
+
const dy = Math.sin(ang) * mag * (1 - p);
|
|
72
|
+
const blur = 8 * (1 - p);
|
|
73
|
+
const op = interpolate(p, [0, 1], [0.35, 1]);
|
|
74
|
+
// 锁定加深脉冲:lock→lock+8,三角波 0→1→0
|
|
75
|
+
const pulse =
|
|
76
|
+
frame <= lock || frame >= lock + 8
|
|
77
|
+
? 0
|
|
78
|
+
: frame < lock + 4
|
|
79
|
+
? (frame - lock) / 4
|
|
80
|
+
: (lock + 8 - frame) / 4;
|
|
81
|
+
const shade = Math.round(47 * (1 - pulse)); // #2f(47)→#00
|
|
82
|
+
const color = `rgb(${shade},${shade},${shade})`;
|
|
83
|
+
const strokeW = 3 * pulse;
|
|
84
|
+
return (
|
|
85
|
+
<span
|
|
86
|
+
key={i}
|
|
87
|
+
style={{
|
|
88
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
89
|
+
fontWeight: 800,
|
|
90
|
+
fontSize: 140,
|
|
91
|
+
letterSpacing: 8,
|
|
92
|
+
color,
|
|
93
|
+
display: 'inline-block',
|
|
94
|
+
transform: `translate(${dx}px, ${dy}px)`,
|
|
95
|
+
opacity: op,
|
|
96
|
+
filter: blur > 0.01 ? `blur(${blur}px)` : undefined,
|
|
97
|
+
WebkitTextStroke: strokeW > 0.01 ? `${strokeW}px #000` : undefined,
|
|
98
|
+
}}
|
|
99
|
+
>
|
|
100
|
+
{c}
|
|
101
|
+
</span>
|
|
102
|
+
);
|
|
103
|
+
})}
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// 逐字遮罩裂升(split-text-stagger)——GSAP SplitText 惯用入场。
|
|
2
|
+
// 标题 "MOTION SYSTEM" 按字符拆 span,每字外包 overflow:hidden 的行高盒,
|
|
3
|
+
// 内层从 translateY(115%) 升到 0,各 14f Easing.out(cubic),带 10% 过冲
|
|
4
|
+
// 再 6f 回落(原案 6% 过冲,按可感性红线加码到 10%)。delay = 字符索引×2f。
|
|
5
|
+
// 底部基线细线(G.bar 2px)在首字起跳同帧从左向右生长,暗示裁切线存在。
|
|
6
|
+
// 关键帧:0–12 空场 hold → 12 首字起跳 + 基线开始生长 → 每字 12+i*2 起跳,
|
|
7
|
+
// 14f 升至 -10% 过冲 → 再 6f 回落归 0 → 末字(索引12)于 56f 落定 →
|
|
8
|
+
// 56–130 全静止(74f ≥ 40f,无逐帧噪声层)。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
11
|
+
import { G, TitleBlock } from '../_fixtures/Fixtures';
|
|
12
|
+
|
|
13
|
+
const TEXT = 'MOTION SYSTEM';
|
|
14
|
+
const START = 12; // 首字起跳帧
|
|
15
|
+
const RISE = 14; // 升起时长
|
|
16
|
+
const SETTLE = 6; // 过冲回落时长
|
|
17
|
+
const OVERSHOOT = -10; // 过冲到 -10%(原案 6%,加码)
|
|
18
|
+
const FONT = 120;
|
|
19
|
+
|
|
20
|
+
// 单字符纵向位移(%):115 → -10(out cubic)→ 0(out quad),帧确定
|
|
21
|
+
const charY = (f: number, idx: number): number => {
|
|
22
|
+
const t0 = START + idx * 2;
|
|
23
|
+
if (f < t0 + RISE) {
|
|
24
|
+
return interpolate(f, [t0, t0 + RISE], [115, OVERSHOOT], {
|
|
25
|
+
extrapolateLeft: 'clamp',
|
|
26
|
+
extrapolateRight: 'clamp',
|
|
27
|
+
easing: Easing.out(Easing.cubic),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return interpolate(f, [t0 + RISE, t0 + RISE + SETTLE], [OVERSHOOT, 0], {
|
|
31
|
+
extrapolateLeft: 'clamp',
|
|
32
|
+
extrapolateRight: 'clamp',
|
|
33
|
+
easing: Easing.out(Easing.quad),
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const SplitTextStagger: React.FC = () => {
|
|
38
|
+
const frame = useCurrentFrame();
|
|
39
|
+
const chars = TEXT.split('');
|
|
40
|
+
// 基线:首字起跳同帧开始,从左向右生长到 100%
|
|
41
|
+
const lineW = interpolate(frame, [START, START + 26], [0, 100], {
|
|
42
|
+
extrapolateLeft: 'clamp',
|
|
43
|
+
extrapolateRight: 'clamp',
|
|
44
|
+
easing: Easing.out(Easing.cubic),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
49
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
50
|
+
<TitleBlock text="SPLIT TEXT STAGGER" size={54} />
|
|
51
|
+
</div>
|
|
52
|
+
<div
|
|
53
|
+
style={{
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
left: 0,
|
|
56
|
+
right: 0,
|
|
57
|
+
top: 0,
|
|
58
|
+
bottom: 0,
|
|
59
|
+
display: 'flex',
|
|
60
|
+
alignItems: 'center',
|
|
61
|
+
justifyContent: 'center',
|
|
62
|
+
flexDirection: 'column',
|
|
63
|
+
}}
|
|
64
|
+
>
|
|
65
|
+
<div style={{ display: 'flex' }}>
|
|
66
|
+
{chars.map((c, i) => (
|
|
67
|
+
<div
|
|
68
|
+
key={i}
|
|
69
|
+
style={{
|
|
70
|
+
// 遮罩盒:上方留 0.3em 头部空间容纳过冲,底边即裁切线
|
|
71
|
+
overflow: 'hidden',
|
|
72
|
+
height: FONT * 1.35,
|
|
73
|
+
display: 'flex',
|
|
74
|
+
alignItems: 'flex-end',
|
|
75
|
+
}}
|
|
76
|
+
>
|
|
77
|
+
<span
|
|
78
|
+
style={{
|
|
79
|
+
display: 'inline-block',
|
|
80
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
81
|
+
fontWeight: 800,
|
|
82
|
+
fontSize: FONT,
|
|
83
|
+
lineHeight: 1.05,
|
|
84
|
+
color: G.ink,
|
|
85
|
+
letterSpacing: 2,
|
|
86
|
+
transform: `translateY(${charY(frame, i)}%)`,
|
|
87
|
+
}}
|
|
88
|
+
>
|
|
89
|
+
{c === ' ' ? ' ' : c}
|
|
90
|
+
</span>
|
|
91
|
+
</div>
|
|
92
|
+
))}
|
|
93
|
+
</div>
|
|
94
|
+
{/* 基线细线:宽度从 0 生长到全文宽 */}
|
|
95
|
+
<div style={{ width: 920, marginTop: 10, display: 'flex', justifyContent: 'flex-start' }}>
|
|
96
|
+
<div style={{ height: 2, width: `${lineW}%`, background: G.bar }} />
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
);
|
|
101
|
+
};
|