고정된 축에 매달린 요소가 좌우로 회전하다 진폭이 줄며 제자리로 돌아온다An element hung from a fixed pivot rotates side to side, shrinking in amplitude until it rests.
좌상단 피벗의 카드가 6도에서 시작해 550ms 동안 -3.6도, 2도, 0으로 진폭이 줄며 멈춘다
진폭이 15도 이상이라 카드가 천장에 걸린 광고판처럼 흔들리고, 감쇠 없이 계속 왕복해 멈추지 않는다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 초기 회전 | 6도 | 4~10도 | 첫 진폭 |
| 총 길이 | 550ms | 400~800ms | 감쇠 후 정지 |
| 피벗 | 좌상 | transformOrigin | top left 또는 top center |
| 감쇠 비 | 0.6 | 0.5~0.7 | 다음 진폭 = 이전 x 감쇠 비 |
gsap.set('.card', { transformOrigin: '0% 0%' });
tl.to('.card', { rotation: 6, duration: 0.12, ease: 'power2.out' }, 0.3)
.to('.card', { rotation: -3.6, duration: 0.15, ease: 'power2.inOut' })
.to('.card', { rotation: 2, duration: 0.15, ease: 'power2.inOut' })
.to('.card', { rotation: 0, duration: 0.13, ease: 'power2.out' });그대로 붙여 넣는다Paste as is
<대상> 카드에 스윙을 넣어줘. transformOrigin은 좌상단, 6도에서 -3.6도, 2도, 0도 순으로 진폭이 줄게 하고 총 0.55초, 각 구간은 power2.inOut, 마지막은 power2.out이야. 시작은 등장 완료 직후 0.3초에 걸어줘.
Add a swing to the card in <target>. Set transformOrigin to top left and step rotation 6, -3.6, 2, 0 degrees over 0.55 seconds, each segment power2.inOut and the last power2.out. Start at 0.3 seconds right after the entrance finishes.
<파일>의 카드에 swing을 적용해. 피벗 top left, rotation 6 → -3.6 → 2 → 0, 구간 duration 0.12, 0.15, 0.15, 0.13초, ease power2.inOut(마지막 power2.out). 0.42초, 0.57초, 0.72초, 0.85초 시점을 캡처해 각도 부호가 번갈아 바뀌고 진폭이 줄어드는지 확인해.
Apply swing to the card in <file>: pivot top left, rotation 6 to -3.6 to 2 to 0, segment durations 0.12, 0.15, 0.15, 0.13s, ease power2.inOut (last power2.out). Capture at 0.42s, 0.57s, 0.72s and 0.85s and verify the angle sign alternates and the amplitude shrinks.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo
gongnyang/reelforge:skills/reelforge/references/grammar/01-anchor-transform.md#anchor-corner-swing)Apache-2.0gongnyang/reelforge:skills/reelforge/references/grammar/01-anchor-transform.md#pendulum-decay-swing)Apache-2.0gongnyang/awesome-html-scrolline-deck:references/techniques.md#tilt-card)MIT