코드 일부가 강조된 뒤 결과 화면으로 전환되고 다시 해당 코드로 돌아온다.Highlighted code alternates with its execution result, then returns to the source.
코드 줄을 읽은 뒤 실행 결과를 보여 주고 같은 줄로 돌아온다.
결과 화면으로 넘어갈 때 강조한 코드가 바뀐다.
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 기본 지속 | 0.3s | 0.21~0.42s | 첫 동작 또는 후보의 기본 단계 길이 |
| 코드 읽기 | 1600ms | 1200~2500ms | 강조 줄을 먼저 읽게 한다 |
| 이징 | power2.out | none | power2.out | power2.inOut | 주파수 변화는 선형으로 두고 위치 변화는 완만하게 연결한다. |
const tl = gsap.timeline({paused:true});
tl.set(code,{opacity:1}); tl.set(result,{opacity:0});
tl.to(line,{backgroundColor:"#335577",duration:0.3});
tl.to(code,{opacity:0,duration:0.3},1.6); tl.to(result,{opacity:1,duration:0.3},1.6);
tl.to(result,{opacity:0,duration:0.3},3.1); tl.to(code,{opacity:1,duration:0.3},3.1);그대로 붙여 넣는다Paste as is
<파일>에서 <대상>에 코드와 실행 결과 교대을 적용해. 코드 일부가 강조된 뒤 결과 화면으로 전환되고 다시 해당 코드로 돌아온다. 코드와 자체 결과 그룹을 교차 표시하며 같은 의미 키를 강조한다. 기본 지속은 0.3s, 코드 읽기은 1600ms, 이징은 power2.out로 설정한다. 하나의 paused GSAP 타임라인으로 구성하고 seek할 때 좌표와 표시 상태를 다시 계산해.
Apply Code-result Alternation to <target> in <file>. Highlighted code alternates with its execution result, then returns to the source. Use a base duration of 0.3s and power2.out; use 1600ms code reading, 1200ms result reading, and 300ms crossfades and preserve semantic correspondence. Build one paused GSAP timeline and recompute geometry and visibility when seeking.
<파일>의 설명 장면에서 <대상>에 코드와 실행 결과 교대을 적용해. 기본 지속은 0.3s, 코드 읽기은 1600ms, 이징은 power2.out로 설정한다. 0초, 0.15초, 0.3초 시점을 캡처해 초기 상태, 중간 대응 관계, 첫 동작의 완료 상태를 확인해. 원본과 결과의 의미 대응 및 라벨 가독성을 검증해.
Implement Code-result Alternation in the explanatory scene of <file> for <target>, using 0.3s and power2.out with 1600ms code reading, 1200ms result reading, and 300ms crossfades. Capture at 0, 0.15, and 0.3 seconds to check the initial state, intermediate correspondence, and completion of the first motion. Verify matching source and result elements and readable labels.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo