여러 작은 차트 패널의 데이터 마크가 한 공통 축으로 이동하거나 한 차트에서 여러 패널로 갈라진다Data marks from several small chart panels move onto one shared axis, or one chart splits into several panels.
3개 패널의 선 마크가 1100ms 동안 각자의 위치에서 공통 축의 겹친 위치로 이동하고, 색은 항목별로 고정된 채 패널 틀이 사라진다
이동 중 마크의 색이 바뀌어 어떤 항목인지 놓치거나, 패널 축과 공통 축의 스케일이 달라 위치가 튄다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 1100ms | 900~1400ms | cubicInOut |
| 패널 수 | 3 | 2~4 | 2열 또는 3열 |
| 마크 이동 | 동시 이동 | 색 고정 | |
| 패널 틀 opacity | 1에서 0 | 전환 초반 400ms | |
| 축 범위 | 같은 값 0~100 | 스케일 정렬 |
const to = { a: { x: 0, y: 0 }, b: { x: -640, y: 0 }, c: { x: -1280, y: 0 } }; // 패널 좌표 대 공통 좌표 차이
Object.entries(to).forEach(([k, v]) => tl.to(`.mark-${k}`, { x: v.x, y: v.y, duration: 1.1, ease: 'power3.inOut' }, 0));
tl.to('.panel-frame', { opacity: 0, duration: 0.4, ease: 'none' }, 0);
tl.to('.common-axis', { opacity: 1, duration: 0.4 }, 0.5);그대로 붙여 넣는다Paste as is
<대상> 차트에 패널 통합 전환을 넣어줘. 패널 3개(.mark-a, .mark-b, .mark-c)의 선 마크를 공통 축 위치로 1.1초 power3.inOut으로 동시에 이동시키고 색은 항목별로 고정해. 패널 틀(.panel-frame)은 0.4초 안에 opacity 0으로 빼고 0.5초부터 공통 축(.common-axis)을 0.4초 동안 나타나게 해. 두 상태의 축 범위는 0~100으로 맞춰.
Add a Facet-to-Single Transition to <target>. Move the line marks of 3 panels (.mark-a, .mark-b, .mark-c) to the shared axis positions together over 1.1s with power3.inOut, keeping each item's color fixed. Fade out .panel-frame within 0.4s and fade in .common-axis from 0.5s over 0.4s. Use the same 0 to 100 axis range in both states.
<파일>에 패널 통합 전환을 구현해. 마크 a, b, c에 시작-끝 좌표 델타를 계산해 1.1초 power3.inOut, .panel-frame opacity 1에서 0 (0.4초), .common-axis opacity 0에서 1 (0.5초부터 0.4초). 0.3초, 0.6초, 0.9초, 1.1초 시점을 캡처해 마크 색이 바뀌지 않는지, 1.1초에 마크가 공통 축 좌표에 정확히 놓였는지 확인해.
Implement Facet-to-Single Transition in <file>. Compute start-to-end deltas for marks a, b, and c and tween them over 1.1s power3.inOut; .panel-frame opacity 1 to 0 (0.4s); .common-axis 0 to 1 (0.4s from 0.5s). Capture at 0.3s, 0.6s, 0.9s, and 1.1s to confirm mark colors never change and marks land exactly on the shared axis coordinates at 1.1s.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo