굵기와 기울기의 봉우리가 글자를 차례로 지나가는 가변 폰트 파동A wave of weight and slant passes through the letters of a variable font.
"Flow Motion" 위를 폭 4글자의 파동이 1.5초에 한 번 지나가며 걸린 글자만 wght 300에서 900으로 부풀었다 돌아온다
글자 폭이 변해 전체 줄이 흔들리도록 wdth까지 함께 건다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 주기 | 1.5s | 1.0~2.5s | 파동이 한 번 지나가는 시간 |
| wght 범위 | 300~900 | 200~900 | 폰트 지원 범위 안 |
| 파장 | 4글자 | 3~6글자 | 봉우리 폭 |
| slnt | 0~-10 | 0~-12 | 기울기 |
const N = chars.length, L = 4;
const o = {p:0};
tl.to(o, {p:1, duration:1.5, ease:'none', repeat:0, onUpdate(){
chars.forEach((_, i) => {
const d = Math.abs(i - o.p * (N + L) + L / 2);
const k = Math.max(0, 1 - d / (L / 2));
node(i).style.fontVariationSettings = `'wght' ${300 + 600 * k}, 'slnt' ${-10 * k}`;
});
}}, 0);그대로 붙여 넣는다Paste as is
<대상> 헤드라인에 가변 폰트 굵기 파동을 넣어줘. 파동은 폭 4글자, 1.5초에 문장을 한 번 지나가며 걸린 글자의 wght를 300에서 900, slnt를 0에서 -10으로 올렸다 되돌려. 줄 전체 폭이 변하지 않게 글자 슬롯 폭을 고정하고, 축 값은 t의 함수로만 계산해.
Add a variable-font weight wave to the headline in <target>. A wave 4 glyphs wide sweeps the line once every 1.5s, raising wght from 300 to 900 and slnt from 0 to -10 on the glyphs it touches, then relaxing. Fix glyph slot widths so the line width never changes, and compute axes purely from t.
<파일>에 variable font weight wave를 적용해. fonts.load 이후 onUpdate에서 글자 i의 k=max(0,1-|i-p*(N+4)+2|/2)를 계산해 wght 300+600k, slnt -10k를 font-variation-settings에 쓴다. 주기 1.5초. 0.3초·0.75초·1.2초를 캡처해 굵은 봉우리가 왼쪽에서 오른쪽으로 이동하고 줄 폭 변화가 2px 이하인지 확인해.
Apply variable font weight wave in <file>. After fonts.load, in onUpdate compute k=max(0,1-|i-p*(N+4)+2|/2) for glyph i and write wght 300+600k, slnt -10k into font-variation-settings; period 1.5s. Capture at 0.3s, 0.75s and 1.2s, verify the heavy crest moves left to right and line width varies by 2px or less.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo