좁은 파동이 문장을 훑으며 걸린 글자만 잠깐 올라갔다 돌아오는 효과A narrow wave sweeps a sentence and lifts only the glyphs it passes.
"Loading your story" 위를 폭 3글자, 진폭 16px의 파동이 1.2초마다 한 번 지나간다
진폭을 60px까지 키우고 모든 글자가 동시에 출렁여 문장이 읽히지 않는다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 진폭 | 16px | 8~24px | y 이동 |
| 파동 폭 | 3글자 | 2~5글자 | 한 번에 걸리는 글자 |
| 주기 | 1.2s | 0.8~2.0s | 문장 끝까지 한 번 |
| 이징 | sine.inOut | sine | 올라갔다 내려오는 곡선 |
const o = {p:0}, W = 3;
tl.to(o, {p:1, duration:1.2, ease:'none', onUpdate(){
chars.forEach((_, i) => {
const d = (i - o.p * (N + W) + W / 2) / (W / 2);
const y = Math.abs(d) < 1 ? -16 * Math.cos(d * Math.PI / 2) : 0;
node(i).style.transform = `translateY(${y}px)`;
});
}}, 0);그대로 붙여 넣는다Paste as is
<대상> 문장에 텍스트 웨이브를 넣어줘. 폭 3글자, 진폭 16px의 파동이 1.2초에 문장을 왼쪽에서 오른쪽으로 한 번 훑고, 걸린 글자만 cos 곡선으로 올라갔다 내려와. 무한 repeat 대신 총 길이만큼 타임라인에 배치해.
Add a text wave to the sentence in <target>. A wave 3 glyphs wide with 16px amplitude sweeps the sentence left to right once every 1.2s; only glyphs in the wave rise and fall on a cosine curve. Lay out repetitions on the timeline instead of infinite repeat.
<파일>에 text wave를 적용해. 음절 span에 대해 onUpdate에서 d=(i-p*(N+3)+1.5)/1.5, |d|<1이면 y=-16*cos(d*PI/2), 주기 1.2초. 0.3초·0.6초·0.9초를 캡처해 상승한 글자의 위치가 왼쪽에서 오른쪽으로 이동하고 동시에 3글자 이하만 올라가 있는지 확인해.
Apply text wave in <file>. Per syllable span, in onUpdate compute d=(i-p*(N+3)+1.5)/1.5 and y=-16*cos(d*PI/2) when |d|<1; period 1.2s. Capture at 0.3s, 0.6s and 0.9s and verify the raised glyphs move left to right with at most 3 raised at once.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo
gongnyang/reelforge:skills/reelforge/references/grammar/05-text-animator.md#offset-cascade-wave)Apache-2.0gongnyang/reelforge:skills/reelforge/references/gallery/gallery-index.json)Apache-2.0gongnyang/reelforge:skills/reelforge/references/gallery/fragments/typo/cascade-wave.html)Apache-2.0gongnyang/reelforge:skills/reelforge/references/gallery/fragments/typo/cascade-wave.meta.json)Apache-2.0