대상의 한쪽에서 시작한 굴곡이 반대쪽으로 이동하고 원래 형태로 돌아온다A bend that starts on one side of an object travels to the other side and returns it to its original shape.
1000ms 동안 폭의 60% 파장, 진폭 12px의 사인 굴곡이 왼쪽에서 오른쪽으로 지나가고 끝나면 완전히 평평해진다
진폭 60px에 파장이 짧아 선이 꼬이고, 굴곡이 지나간 뒤 형태가 원래대로 돌아오지 않는다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 1000ms | 700~1400ms | |
| 진폭 | 12px | 6~24px | 최대 변위 |
| 파장 | 대상 폭의 60% | 40~80% | |
| 이징 | sine | none~sine | 파동 형태 사인 |
const pts = 40, u = { p: 0 };
tl.to(u, { p: 1, duration: 1, ease: 'none', onUpdate() {
for (let i = 0; i < pts; i++) { const x = i / (pts - 1), d = (x - u.p * 1.6 + 0.3) / 0.6;
const y = Math.abs(d) < 0.5 ? Math.sin(d * 2 * Math.PI) * 12 * Math.cos(d * Math.PI) : 0; path.setY(i, y); } } }, 0.3);그대로 붙여 넣는다Paste as is
<대상> 선에 변형 파동 전달을 넣어줘. 점 40개의 y를 사인으로 변위시켜 진폭 12px, 파장 폭의 60%의 굴곡이 1초 동안 왼쪽에서 오른쪽으로 지나가게 하고 양 끝에서는 코사인 포락선으로 변위 0이 되게 해. 끝나면 완전히 직선.
Add a traveling deformation wave to the line in <target>. Displace 40 points in y with a sine of amplitude 12px and wavelength 60% of the width, traveling left to right over 1 second, with a cosine envelope so both ends have zero displacement. It must end perfectly straight.
<파일>에 traveling deformation wave를 구현해. 점 40개, 진폭 12px, 파장 폭 60%, 1s, ease none, 시작 0.3초. 0.5초, 0.8초, 1.3초를 캡처해 굴곡이 왼쪽에서 오른쪽으로 이동하는지, 1.3초에 모든 점의 y가 0인지 확인해.
Implement a traveling deformation wave in <file>: 40 points, amplitude 12px, wavelength 60% of width, 1s, ease none, start 0.3s. Capture at 0.5s, 0.8s and 1.3s and verify the bend moves left to right and every point y is 0 at 1.3s.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo