Remoogle
UI shape morph (one shape, many states)
UI shape morph (one shape, many states) 미리보기
기본 애니메이션

UI shape morph (one shape, many states)

@opus-motion-library/ui-shape-morph

출처 Opus Motion Library

One rounded rectangle never cuts: it grows from a button into a loader, a check, a pill, a player, a slider, a toggle, tabs, a chart, a search box and a toast and back, one change per beat on spring physics (leading edges stiffer than trailing edges so it stretches), content cross-blurring inside while the camera keeps the active state framed; the last frame equals the first.

설치

node cli/mgl.mjs add ui-shape-morph --to <your-project>/src

사용 상황

추천
Product promos, app-store previews, onboarding heroes and "what our app does" loops: edit the `states` table (kind, label, size, radius, colour), set `accent` and `beatFrames` to your music; pairs with cursor-driver.

사양

길이
205f · 6.8s
길이 유형
고정
FPS
30
스타일
hud, ui
라이선스
MIT

Props (9)

  • statesarray= [{"kind":"button","label":"Get started","width":300,"height":96,"radius":48,"color":"#4F5BD5"},{"kind":"loader","labe…

    [{kind:'button'|'loader'|'check'|'pill'|'player'|'slider'|'toggle'|'tabs'|'chart'|'search'|'toast', label, width, height, radius (u), color, content?, action? (toast button word, default 'Undo')}] — end with a copy of the first state to loop

  • accentstring= "#4F5BD5"

    accent used inside sliders, charts, search caret

  • backgroundstring= "#EDEBE7"

    canvas colour (warm grey or near-black)

  • inkstring= "#17171B"

    text colour on light states

  • fontFamilystring= ""

    UI font family (empty = Inter)

  • beatFramesnumber= 15

    frames per state change (15 = 120 BPM)

  • startFramenumber= 10

    frame of the first change

  • frameFillnumber= 0.6

    fraction of the frame the active state fills (0.6)

  • cursorboolean= true

    show a small cursor that operates each state

카테고리