위치·크기·회전·색이 저장된 다음 상태로 동시에 바뀌는 보간Position, size, rotation and color change together toward a saved next state.
노드가 x 0→420px, scale 1→1.3, rotation 0→15도, 색 파랑→노랑으로 0.8초 동안 함께 바뀐다
속성마다 길이와 이징이 달라 각자 따로 움직이는 것처럼 보이거나, 목표 상태가 불명확하다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 길이 | 0.8s | 0.5~1.2s | 모든 속성 공통 |
| 이징 | power2.inOut | power1~power3.inOut | smooth |
| 목표 상태 | x, scale, rotation, color | 속성 2~4개 | 한 번에 너무 많이 바꾸지 않는다 |
| 홀드 | 0.6s | 0.4~1.0s | 도착 뒤 정지 |
tl.fromTo('.node', { x: 0, scale: 1, rotation: 0, backgroundColor: '#2f6bff' }, { x: 420, scale: 1.3, rotation: 15, backgroundColor: '#ffc83d', duration: 0.8, ease: 'power2.inOut' }, 0.3);그대로 붙여 넣는다Paste as is
GSAP으로 <대상>의 상태 보간을 넣어줘. 0.3초부터 0.8초 동안 x 0→420px, scale 1→1.3, rotation 0→15도, backgroundColor #2f6bff→#ffc83d를 power2.inOut으로 동시에 바꾸고, 시작 상태를 fromTo에 명시해. 도착 뒤 0.6초 정지. paused 타임라인에 넣어.
Add a state tween to <target> with GSAP. From 0.3s over 0.8s change x 0 to 420px, scale 1 to 1.3, rotation 0 to 15 degrees and backgroundColor #2f6bff to #ffc83d together with power2.inOut, with the start state written in fromTo. Hold 0.6s after arrival. Paused timeline.
<파일>의 <대상>에 state-tween을 적용해. fromTo 시작 {x 0,scale 1,rotation 0,bg #2f6bff}, 목표 {x 420,scale 1.3,rotation 15,bg #ffc83d}, 0.8s, power2.inOut, position 0.3. 0.3초·0.7초·1.1초를 캡처해 모든 속성이 같은 비율로 진행하는지 확인해.
Apply state-tween to <target> in <file>. fromTo start {x 0, scale 1, rotation 0, bg #2f6bff} to {x 420, scale 1.3, rotation 15, bg #ffc83d}, 0.8s, power2.inOut, position 0.3. Capture at 0.3s, 0.7s and 1.1s to check all properties progress at the same ratio.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo