이전 요소가 완전히 사라진 다음에야 새 요소가 나타나는 순차 교체The previous element fully disappears before the new one appears.
이전 문구가 0.25초 동안 위로 12px 빠지며 사라지고, 완전히 사라진 뒤 새 문구가 아래에서 12px 올라오며 0.4초 동안 나타난다
퇴장이 끝나기 전에 등장이 시작되어 글자가 겹치거나, 퇴장에 0.8초 넘게 걸려 답답하다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 퇴장 | 0.25s | 0.15~0.35s | opacity와 y 이동 |
| 등장 | 0.4s | 0.25~0.55s | 퇴장보다 길게 |
| 이동 거리 | 12px | 8~24px | 방향은 일관되게 |
| 대기 | 0s | 0~0.08s | 퇴장과 등장 사이 |
tl.to('.old', { opacity: 0, y: -12, duration: 0.25, ease: 'power2.in' })
.set('.old', { display: 'none' })
.fromTo('.new', { opacity: 0, y: 12 },
{ opacity: 1, y: 0, duration: 0.4, ease: 'power2.out' });그대로 붙여 넣는다Paste as is
<이전 요소>를 <새 요소>로 교체하는데 exit-before-enter로 해줘. 이전 요소는 0.25초 동안 opacity 0, y -12px (power2.in)로 빠지고 display none, 그 직후 새 요소가 opacity 0, y +12px에서 0.4초 동안 나타나게 해 (power2.out). 두 요소가 동시에 보이는 프레임이 없어야 하고 paused 타임라인 하나로 만들어.
Replace <oldElement> with <newElement> using exit-before-enter. The old element fades to opacity 0 and moves y -12px over 0.25 seconds (power2.in), then display none. Right after, the new element goes from opacity 0 and y +12px to rest over 0.4 seconds (power2.out). No frame should show both elements, and everything sits in one paused timeline.
<파일>의 텍스트 교체에 exit-before-enter를 적용해. .old opacity 0과 y -12px (0.25s, power2.in) 뒤 display none, .new opacity 0과 y 12px에서 원위치 (0.4s, power2.out)를 순서대로 붙인다. 0.25초 시점에 둘 다 안 보이는 프레임이 있는지, 0.2초와 0.3초에 두 요소가 동시에 보이지 않는지 캡처로 확인해.
Apply exit-before-enter to the text swap in <file>. Chain .old opacity 0 and y -12px (0.25s, power2.in) then display none, followed by .new from opacity 0 and y 12px to rest (0.4s, power2.out). Capture at 0.2 and 0.3 seconds to confirm both elements are never visible together, and check the gap frame at 0.25 seconds.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo