두 장면이 큐브의 이웃 면처럼 원근을 가지며 회전해 교체되고 바닥 반사가 보인다Two scenes rotate in perspective like neighboring faces of a cube, with a hint of floor reflection.
현재 장면이 왼쪽으로 90도 돌아 나가고 다음 장면이 오른쪽 면에서 들어오며, 0.8초 동안 원근 0.7로 바닥 반사가 살짝 보인다
원근이 너무 강해 화면이 찌그러지거나, 회전 축이 화면 중앙이 아니라 모서리로 어긋난다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 800ms | 600~1000ms | easeInOutCubic 근사 |
| 원근 | 0.7 | 0.5~1.0 | perspective 1400~2000px |
| 회전각 | 90deg | 90deg 고정 | 이웃 면 |
| 축소 | 0.3 | 0.2~0.4 | 회전 중 살짝 물러남 |
| 반사 opacity | 0.4 | 0.2~0.4 | 바닥 반사 |
gsap.set('.stage', { perspective: 1600 });
tl.fromTo('.next', { rotationY: 90, transformOrigin: '0% 50%' }, { rotationY: 0, duration: 0.8, ease: 'power3.inOut' }, 0);
tl.to('.prev', { rotationY: -90, transformOrigin: '100% 50%', duration: 0.8, ease: 'power3.inOut' }, 0);그대로 붙여 넣는다Paste as is
<대상> 두 장면 사이에 큐브 전환을 넣어줘. 부모에 perspective 1600px, 이전 장면은 오른쪽 축(100% 50%)으로 0에서 -90도, 다음 장면은 왼쪽 축(0% 50%)으로 90도에서 0으로 0.8초 동안 power3.inOut으로 돌려. backface-visibility는 hidden. 회전 중 살짝 축소해 원근이 보이게 하고, GSAP 타임라인 하나로 seek 가능하게 만들어.
Add a Cube Transition between the two scenes in <target>. Set perspective 1600px on the parent. Rotate the previous scene from 0 to -90deg around its right edge (100% 50%) and the next scene from 90deg to 0 around its left edge (0% 50%), over 0.8s with power3.inOut. Use backface-visibility hidden, and keep it on a single seekable GSAP timeline.
<파일>에 큐브 전환을 구현해. .stage perspective 1600, .prev rotationY 0에서 -90, .next 90에서 0, duration 0.8, ease power3.inOut, transformOrigin은 각각 100% 50%와 0% 50%. 0.2초, 0.4초, 0.6초, 0.8초 시점을 캡처해 두 면이 모서리에서 맞닿아 회전하는지, 틈이 벌어지지 않는지 확인해.
Implement a cube transition in <file>. .stage perspective 1600; .prev rotationY 0 to -90, .next 90 to 0, duration 0.8, ease power3.inOut, transformOrigin 100% 50% and 0% 50%. Capture at 0.2s, 0.4s, 0.6s, and 0.8s to confirm the two faces meet at the edge while rotating and no gap opens between them.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo