요소가 한 모서리를 축으로 회전하다 다른 모서리로 축을 옮겨 이어서 움직이고 안착하는 동작An element rotates around one corner, then hands the pivot to another corner and settles.
카드가 좌상단 모서리 기준으로 8도 돌다가 축이 우하단으로 넘어가 -3도로 돌아 안착하는 데 1초가 걸린다
축을 바꾸는 순간 요소가 순간이동하듯 튄다. 회전 각이 커서 카드가 화면 밖으로 나간다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 전체 시간 | 1.0s | 0.7~1.4s | 두 구간 합산 |
| 첫 회전 | 8deg | 5~14deg | 좌상단 축 |
| 다음 회전 | -3deg | -8~0deg | 우하단 축 |
| 축 위치 | 좌상 → 우하 | 코너 2개 | transform-origin |
| 이징 | power2.inOut | power1~power3 |
// 바깥 래퍼 A(좌상 축), 안쪽 래퍼 B(우하 축)의 중첩 구조
gsap.set('.pivot-a', { transformOrigin: '0% 0%' });
gsap.set('.pivot-b', { transformOrigin: '100% 100%' });
tl.to('.pivot-a', { rotation: 8, duration: 0.5, ease: 'power2.inOut' }, 0.3)
.to('.pivot-b', { rotation: -3, duration: 0.5, ease: 'power2.inOut' }, 0.8);그대로 붙여 넣는다Paste as is
GSAP으로 <카드>에 피벗 릴레이를 넣어줘. 바깥 래퍼는 transform-origin 좌상단으로 0.3초부터 0.5초 동안 8도 회전하고, 안쪽 래퍼는 우하단 origin으로 0.8초부터 0.5초 동안 -3도 회전해. 이징 power2.inOut. 축이 바뀌는 순간 카드가 튀지 않게 하고 paused 타임라인으로 작성해.
Add a pivot relay to <card> with GSAP. The outer wrapper rotates 8 degrees around its top-left corner from 0.3 seconds for 0.5 seconds; the inner wrapper rotates -3 degrees around its bottom-right corner from 0.8 seconds for 0.5 seconds. Ease power2.inOut. No visible jump when the pivot changes. Paused timeline.
<파일>의 카드에 pivot-relay를 적용해. .pivot-a origin 0% 0% rotation 8 (position 0.3, 0.5s), .pivot-b origin 100% 100% rotation -3 (position 0.8, 0.5s), ease power2.inOut. 0.79초와 0.81초를 캡처해 카드 모서리 좌표 차이가 2px 이하로 점프가 없는지, 1.5초에 정지 각도가 최종값인지 확인해.
Apply pivot-relay to the card in <file>. .pivot-a origin 0% 0% rotation 8 (position 0.3, 0.5s), .pivot-b origin 100% 100% rotation -3 (position 0.8, 0.5s), ease power2.inOut. Capture 0.79s and 0.81s to confirm the card corner moves 2px or less across the handoff, and 1.5s to confirm the final angles.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo
gongnyang/reelforge:skills/reelforge/references/grammar/01-anchor-transform.md#anchor-itself-animated)Apache-2.0gongnyang/reelforge:skills/reelforge/references/grammar/01-anchor-transform.md#anchor-relay-handoff)Apache-2.0