새 단어가 오른쪽에서 들어오면 이미 쓴 단어들이 왼쪽으로 밀려 전체 문장이 항상 중앙에 놓이는 효과Each new word enters from the right and pushes earlier words left, keeping the whole phrase centered.
"작게 / 시작해서 / 크게 / 배운다" 네 마디가 0.18초 간격으로 들어오고 매번 묶음이 0.35초 안에 중앙으로 재정렬된다
단어를 밀 때 폭 측정을 하지 않아 문장이 오른쪽으로 치우친 채 끝난다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 마디 등장 | 0.35s | 0.3~0.45s | 오른쪽 80px에서 진입 |
| 마디 간격 | 0.18s | 0.12~0.3s | 내레이션 속도에 맞춤 |
| 최종 정지 | 1.0s | 0.8~1.5s | 완성 문장 읽기 |
| 진입 거리 | 80px | 60~120px | 1920x1080 기준 |
const parts = ['작게','시작해서','크게','배운다'];
const widths = parts.map((_, i) => el(i).offsetWidth + gap);
let sum = 0;
parts.forEach((p, i) => {
sum += widths[i];
const shift = -sum / 2 + widths[i] / 2; // 묶음을 중앙에 맞추는 이동
tl.fromTo(el(i), {x: shift + 80, opacity:0}, {x: shift, opacity:1, duration:0.35, ease:'expo.out'}, 0.3 + i * 0.18);
for (let j = 0; j < i; j++) tl.to(el(j), {x: '-=' + widths[i] / 2, duration:0.35, ease:'expo.out'}, 0.3 + i * 0.18);
});그대로 붙여 넣는다Paste as is
<대상> 문장을 마디(<마디들>) 단위로 쌓아줘. 새 마디는 오른쪽 80px에서 0.35초 expo.out으로 들어오고, 이미 놓인 마디들은 새 마디 폭의 절반만큼 왼쪽으로 함께 밀려 묶음이 항상 화면 중앙에 오게 해. 마디 간격 0.18초, 마지막 정지 1초.
Build the phrase in <target> from chunks (<chunks>). Each new chunk enters from 80px right in 0.35s with expo.out, and earlier chunks shift left by half the new chunk width so the group stays centered. 0.18s between chunks, 1s final hold.
<파일>에 phrase push build를 적용해. fonts.ready 뒤 각 마디 offsetWidth를 측정해 x 목표를 배열로 계산하고 tween은 duration 0.35, ease expo.out, 간격 0.18초. 각 단계 직후(0.7초, 1.0초, 최종) 캡처해 묶음의 좌우 여백 차이가 4px 이하인지 확인해.
Apply phrase push build in <file>. After fonts.ready, measure each chunk offsetWidth and precompute x targets; tweens use duration 0.35, expo.out, gap 0.18s. Capture right after each step (0.7s, 1.0s, final) and check that left and right margins of the group differ by 4px or less.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo
claude-skill:hyperframes-animation/adapters/animate-text.md)unknown