점이 움직일 때 연결선, 각도, 길이 표시도 매 순간 함께 바뀐다.A moving point updates its connected line, angle, and length at the same instant.
점의 x가 300px에서 900px로 움직일 때 연결선과 길이 숫자를 같은 진행값으로 계산한다.
점과 연결선을 별도 지연으로 움직여 선 끝이 점에서 떨어진다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 변화 시간 | 1200ms | 800~1800ms | 모든 종속값이 같은 진행률을 쓴다. |
| 이동 거리 | 600px | 200~800px | 점의 x 이동 기준이다. |
| 갱신 기준 | 60fps | 30~60fps | 프레임 누적 대신 현재 진행률로 계산한다. |
| 이징 | none | none | power2.out | power2.inOut | 데이터의 시간 진행은 none을 유지한다. |
const tl=gsap.timeline({paused:true}), state={p:0};
tl.to(state,{p:1,duration:1.2,ease:'none',onUpdate:()=>{
const x=300+600*state.p,y=400;
gsap.set('.point',{attr:{cx:x,cy:y}});
gsap.set('.link',{attr:{x1:300,y1:700,x2:x,y2:y}});
document.querySelector('.length').textContent=Math.hypot(x-300,y-700).toFixed(0);
}});그대로 붙여 넣는다Paste as is
<파일>의 <대상>에 종속 도형 동기 갱신를 구현해. 점이 움직일 때 연결선, 각도, 길이 표시도 매 순간 함께 바뀐다. 변화 시간 1200ms, 이동 거리 600px, 갱신 기준 60fps, 이징 none를 적용하고 GSAP 코어의 paused 타임라인 하나로 seek 가능하게 작성해. 종속 도형에 독립 이징을 적용하지 않는다.
Implement Dependent Geometry Update for <target> in <file>. A moving point updates its connected line, angle, and length at the same instant. Use transition duration: 1200ms; travel distance: 600px; update rate: 60fps; easing: none in a single paused GSAP core timeline that supports seeking. Calculate all dependent geometry from one progress value without separate easing.
<파일>의 <대상> 장면에 종속 도형 동기 갱신를 적용해. 변화 시간 1200ms, 이동 거리 600px, 갱신 기준 60fps, 이징 none를 사용하고 다음 동작을 구현해: 단일 진행률에서 점 좌표와 종속 SVG 도형을 함께 계산한다. 플러그인과 Math.random 없이 작성하고 0.3초·0.72초·1.2초를 캡처해 초기 상태, 중간 변화, 최종 상태가 연속적이며 다음 예시와 맞는지 확인해: 점의 x가 300px에서 900px로 움직일 때 연결선과 길이 숫자를 같은 진행값으로 계산한다.
Apply Dependent Geometry Update to the <target> scene in <file> using transition duration: 1200ms; travel distance: 600px; update rate: 60fps; easing: none. A moving point updates its connected line, angle, and length at the same instant. Use prepared data or geometry with GSAP core, no plugins, and no Math.random; capture at 0.3, 0.72, 1.2 seconds to verify continuous intermediate geometry, correct endpoints, and identical output after repeated seeks. Calculate all dependent geometry from one progress value without separate easing.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo