AWESOME AI MOTION
효과Effects / UI 시연UI Demo / Nº 345

마그네틱 모션Magnetic Attraction

Magnetic Attraction
마그네틱 모션
다른 이름Also known as · 자석 끌림
345
렌더 추가 예정CLIP COMING마그네틱 모션Magnetic Attraction정의·파라미터·프롬프트는 아래에 있다Definition, parameters and prompts are below
도판Fig. 345. 마그네틱 모션 · Magnetic Attraction · power2.out

요소가 포인터 쪽으로 조금 따라가고 멀어지면 탄성 있게 돌아온다.An element shifts slightly toward a nearby pointer and returns when it leaves.

01

무엇을 전하나What it tells

전달 효과ConveysCONVEYS
반응 가능한 대상과 조작감을 보여 준다.Communicates interactivity and tactile response.
언제 쓰나Use whenUSE WHEN
  • 마그네틱 모션으로 반응 가능한 대상과 조작감을 보여 준다 때
  • 제품 시연에서 조작 전후 상태를 한 장면 안에 연결할 때
  • Use this effect when you need to communicate: Communicates interactivity and tactile response.
  • Connect interaction states within a product demonstration.
과용 주의AvoidAVOID
  • 버튼이 커서에서 계속 달아나 클릭을 방해한다 상황을 피한다
  • 상태 변화가 끝난 뒤에는 반복을 멈춰 읽을 시간을 둔다
02

좋은 예와 나쁜 예Good and bad use

좋은 사례GOOD

포인터가 버튼 오른쪽에 가까워지면 버튼이 16px 따라간다

과용 · 나쁜 사례OVERUSE

버튼이 커서에서 계속 달아나 클릭을 방해한다

03

파라미터Parameters

기본값은 클립에 쓴 값Defaults are the values used in the clip

항목PARAM기본DEFAULT범위RANGE메모NOTE
기본 지속0.5s0.3~0.75s1920x1080 시연 기준의 한 동작 시간
최대 이동16px8~24px대상 크기와 정보 밀도에 맞춰 조절한다
이징power2.outnone | power2.out | power2.inOut진행값은 none, 정착은 power2.out을 쓴다
GSAP
const dx = 60, dy = 20, radius = 120;
const weight = Math.max(0,1-Math.hypot(dx,dy)/radius);
tl.to('.button', {x:dx/radius*16*weight,y:dy/radius*16*weight,duration:.5,ease:'power2.out'}, 0);
tl.to('.button', {x:0,y:0,duration:.5,ease:'back.out(1.2)'}, .8);
04

에이전트 프롬프트Agent prompts

그대로 붙여 넣는다Paste as is

Claude Code

<대상>에 마그네틱 모션을 적용해. 요소가 포인터 쪽으로 조금 따라가고 멀어지면 탄성 있게 돌아온다. 기본 지속 0.5초, 최대 이동 16px, 이징 power2.out를 사용하고 <파일>에 결정론적 paused 타임라인으로 구현해. 위 핵심 코드의 선택자를 대상 구조에 맞추고 완료 상태를 유지해.

Apply Magnetic Attraction to <target> in <file>. An element shifts slightly toward a nearby pointer and returns when it leaves. Use a 0.5-second duration, 16px maximum displacement, and power2.out easing. Implement the core snippet with selectors matching the target, using a deterministic paused timeline, and retain the final state.

Codex

<파일>의 시연 장면에서 <대상>에 마그네틱 모션을 적용해. 기본 지속 0.5초, 최대 이동 16px, 이징 power2.out를 사용해. 0초, 0.25초, 0.9초를 캡처해 초기 상태, 중간 변화, 완료 상태를 확인하고 같은 시점 seek 결과가 일치하는지 검증해.

Apply Magnetic Attraction to <target> in the demonstration scene in <file>. Use a 0.5-second duration, 16px maximum displacement, and power2.out easing. Capture at 0, 0.25, and 0.9 seconds to verify the initial, intermediate, and final states. Seek to the same times again and confirm identical results.

05

도구별로 쓰기In your tools

HyperFrames · ReelForge · Scrolline

HyperFramesVIDEO · GSAP
paused 타임라인에 마그네틱 모션 비트를 넣고 seek로 시작과 중간 상태를 재현한다. 기본 지속 0.5초, 최대 이동 16px, 이징 power2.out를 고정한다.
ReelForgeBRIEF TO VIDEO
씬 워커 브리프에 기본 지속 0.5초, 최대 이동 16px, 이징 power2.out와 시작 상태, 완료 상태를 싣는다. 포인터가 버튼 오른쪽에 가까워지면 버튼이 16px 따라간다.
Scrolline DeckSCROLL SCRUB
진행률 0~1을 0.5초 타임라인에 매핑한다. scrub에서는 스프링 대신 ease-out을 쓰고 역방향에서도 시작 상태를 복원한다.
06

잘 맞는 조합Pairs well with

07

출처Sources

개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo