화면 중심 근처의 별이 원근에 따라 바깥으로 빠르게 뻗어 긴 빛줄기가 되는 워프 연출Stars near the center stream outward in perspective, stretching into long streaks of light.
별 300개가 2.5초 동안 전진 속도 600px/s로 다가오며 뒤쪽에 긴 빛줄기를 남기고 마지막 0.5초에 감속해 점으로 돌아온다
별 위치가 매 렌더 다르게 뿌려지거나, 꼬리가 없어 점이 움직이는 것으로만 보인다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 시간 | 2.5s | 1.5~4s | 가속+감속 |
| 별 수 | 300 | 150~500 | canvas |
| 전진 속도 | 600px/s | 300~1200px/s | z 이동 |
| 시야각 | 65deg | 50~80deg | 투영 |
| 이징 | power3.in | power2~power4 | 마지막은 out |
const stars = Array.from({ length: 300 }, (_, i) => ({ x: Math.sin(i * 12.9) * 960, y: Math.sin(i * 78.2) * 540, z: 200 + ((i * 37) % 800) }));
const s = { v: 0 };
tl.to(s, { v: 1, duration: 2.5, ease: 'power3.in', onUpdate: () => draw(stars, s.v) }, 0);
// draw: z -= v * 600, p = f / z, 이전 위치와 현재 위치를 선으로 그림그대로 붙여 넣는다Paste as is
Canvas와 GSAP으로 <대상> 배경에 스타필드 워프를 만들어 줘. 별 300개는 인덱스 기반 시드 함수로 배치하고, 2.5초 동안 power3.in으로 속도를 올려 600px/s로 전진시켜. 각 별은 이전 위치와 현재 위치를 잇는 선으로 그려 빛줄기를 만들고, 마지막 0.5초에는 감속해 점으로 돌아와. Math.random 금지, 진행률 v의 순수 함수로 그려서 seek 가능하게 해.
Use Canvas and GSAP to build a starfield warp behind <target>. Place 300 stars with an index-based seeded function and accelerate to 600px/s over 2.5 seconds with power3.in. Draw each star as a line from previous to current position for streaks, and decelerate back to points over the last 0.5 seconds. No Math.random; draw as a pure function of progress v so it is seekable.
<파일>의 canvas에 starfield-warp를 적용해. 별 300개 좌표를 sin 기반 시드 함수로 만들고 tween 객체 {v}를 duration 2.5, ease power3.in으로 0→1, onUpdate에서 draw(v)를 호출한다. draw는 z 감소량 v*600로 투영해 이전-현재 선을 그린다. 0.3초는 점, 1.5초는 긴 줄기, 2.5초는 감속 후 점인지 캡처로 확인해.
Apply starfield-warp to the canvas in <file>. Generate 300 star coordinates from a sin-based seeded function, tween an object {v} 0 to 1 over 2.5s with ease power3.in, and call draw(v) in onUpdate; draw projects with z decreasing by v*600 and draws previous-to-current lines. Capture 0.3s (dots), 1.5s (long streaks) and 2.5s (dots after deceleration).
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo