물체가 직선 대신 휘어진 궤적을 따라 이동하는 기법An object follows a curved trajectory instead of a straight line.
점이 770px 이동하면서 높이 230px의 포물선을 그리고 지나간 자리에 점선이 남는다
높이를 지나치게 키워 점이 화면 밖으로 나가거나 궤적의 방향을 읽을 수 없다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 수평 거리 | 770px | 300~850px | 양 끝점의 수평 간격 |
| 최고 높이 | 230px | 80~260px | 시작과 도착 기준선에서의 높이 |
| 지속 시간 | 1.65s | 1.0~2.0s | 곡선 전체의 이동 시간 |
| 궤적 점 간격 | 진행률 0.025 | 0.02~0.05 | 미리 계산한 점을 통과 시각에 표시 |
const progress = {p:0};
tl.to('#straight',{x:770,duration:1.65,ease:'none'},.3);
tl.to(progress,{p:1,duration:1.65,ease:'none',onUpdate:()=>
gsap.set('#arc',{x:770*progress.p,y:-4*230*progress.p*(1-progress.p)})
},.3);그대로 붙여 넣는다Paste as is
GSAP으로 <대상> 점을 0.30초부터 1.65초 동안 오른쪽 770px 옮기며 최고 높이 230px의 포물선을 그려줘. 진행률 p에 따라 x=770*p, y=-4*230*p*(1-p)를 계산하고 0.025 간격의 회색 궤적 점을 통과한 뒤 남겨. 위에는 같은 시간의 회색 직선 비교를 두고 2.35초부터 3.00초까지 도착 상태를 유지해.
Use GSAP to move the <target> dot 770px to the right starting at 0.30 seconds over 1.65 seconds, following a parabola with a peak height of 230px. For progress p, calculate x=770*p and y=-4*230*p*(1-p). Leave gray trajectory dots behind after passing them, spaced at 0.025 progress intervals. Above it, show a gray straight-line comparison with the same timing. Hold the arrival state from 2.35 to 3.00 seconds.
<파일>의 아래 이동 점에 프록시 p를 0에서 1로 tween하는 아크를 넣어. 시작 0.30초, 지속 1.65초, ease none으로 x 770*p와 y -4*230*p*(1-p)를 적용하고 궤적 점 41개를 순차 표시해. 0.73초와 1.23초에서 상승과 정점 근처를 확인하고 2.23초와 2.90초에서 완성 점선과 도착 위치가 같은지 캡처해 확인해.
Add an arc to the lower moving dot in <file> by tweening proxy p from 0 to 1. Start at 0.30 seconds with duration 1.65 seconds and ease none. Apply x 770*p and y -4*230*p*(1-p), and reveal 41 trajectory dots sequentially. Capture at 0.73 and 1.23 seconds to check the ascent and near-apex position. Capture at 2.23 and 2.90 seconds to verify identical completed dotted paths and arrival positions.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo