평면의 네 모서리가 각각 움직이며 화면이 원근 형태로 기울어져 공간에 붙는다The four corners of a plane move, tilting the image into a perspective shape.
평면 이미지의 네 모서리가 800ms 동안 각각 최대 40px 이동해 원근 사다리꼴이 된다. 이징 power2.inOut
네 모서리를 다른 시간에 움직여 이미지가 찢어진 듯 보이거나, 모서리 이동을 200px 넘게 해 비틀린 종이처럼 보인다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 800ms | 600~1200ms | |
| 모서리 이동 | 40px | 20~80px | 각 점 개별 값 |
| 이징 | power2.inOut | power2~power3 | |
| 투영 | 호모그래피 | 네 점 기반 |
const c = { tl: [0,0], tr: [1920,0], br: [1920,1080], bl: [0,1080] };
const to = { tl: [40,30], tr: [1880,-20], br: [1900,1050], bl: [20,1080] };
const u = { p: 0 };
tl.to(u, { p: 1, duration: 0.8, ease: 'power2.inOut', onUpdate: () => draw(homography(c, to, u.p)) }, 0.3);그대로 붙여 넣는다Paste as is
<대상> 이미지에 코너 핀을 넣어줘. 네 모서리를 0.8초 동안 (0,0)에서 (40,30), (1920,0)에서 (1880,-20), (1920,1080)에서 (1900,1050), (0,1080)에서 (20,1080)으로 옮기고 power2.inOut으로 원근 사다리꼴로 기울게 해. matrix3d 호모그래피로 계산해줘.
Add a corner pin to the image in <target>. Over 0.8 seconds move the corners (0,0) to (40,30), (1920,0) to (1880,-20), (1920,1080) to (1900,1050), (0,1080) to (20,1080) with power2.inOut, forming a perspective trapezoid. Compute it as a matrix3d homography.
<파일>에 corner pin을 구현해. 네 점 보간 p 0→1, 0.8s, power2.inOut, 호모그래피 matrix3d. 0.3초, 0.7초, 1.1초를 캡처해 각도가 점점 커지는지, 사각형이 뒤집히거나 교차하지 않는지 확인해.
Implement corner pin in <file>: four-point interpolation p 0 to 1, 0.8s, power2.inOut, homography matrix3d. Capture at 0.3s, 0.7s and 1.1s and verify the tilt grows progressively and the quad never flips or self-intersects.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo