카드가 곡면 배열을 따라 이동하며 중앙 카드는 크고 정면, 옆 카드는 비스듬히 작아지는 목록Cards travel along a curved arrangement: the center card faces front and large, side cards tilt away and shrink.
카드 7장 중 중앙 카드는 정면으로 크게, 좌우는 rotateY 45도와 작은 scale로 배열되고, 넘길 때 600ms에 옆 카드가 중앙으로 옮겨 온다
측면 카드가 너무 기울어져 내용이 전혀 안 보이거나, 전환 중 z 순서가 바뀌지 않아 카드가 겹쳐 잘못 보인다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 전환 시간 | 0.6s | 0.4~0.9s | 한 칸 이동 |
| perspective | 900px | 700~1400px | 부모 |
| 측면 회전 | 45deg | 30~60deg | 중앙 거리 부호 |
| 카드 수 | 7 | 5~9 | 홀수 권장 |
| 이징 | power2.inOut | power1~power3 |
const place = (c, d) => gsap.to(c, { x: d * 320 + Math.sign(d) * 120, z: -Math.abs(d) * 160,
rotationY: -Math.sign(d) * 45 * Math.min(1, Math.abs(d)), scale: 1 - Math.min(0.3, Math.abs(d) * 0.1),
zIndex: 100 - Math.abs(d), duration: 0.6, ease: 'power2.inOut' });
cards.forEach((c, i) => tl.add(place(c, i - 1), 0.5)); // 중앙 인덱스가 0→1로 이동그대로 붙여 넣는다Paste as is
GSAP으로 <카드 7장>을 커버플로우로 배치하고 한 칸 넘기는 전환을 만들어 줘. 부모 perspective 900px, 중앙 카드는 정면 scale 1, 좌우 카드는 rotateY ±45도, 거리마다 z -160px, scale 0.1씩 축소. 0.5초에 0.6초 power2.inOut으로 모든 카드가 한 칸씩 왼쪽으로 이동하고 z-index가 중앙 거리에 따라 바뀌게 해.
Use GSAP to lay out <7 cards> as a coverflow and animate a one-step shift. Parent perspective 900px, the center card faces front at scale 1, side cards rotateY +/-45 degrees, z -160px and 0.1 less scale per step of distance. At 0.5 seconds move all cards one slot left over 0.6 seconds with power2.inOut and recompute z-index by distance from center.
<파일>에 coverflow를 적용해. 카드 i의 중앙 거리 d에서 x=d*320+sign(d)*120, z=-|d|*160, rotationY=-sign(d)*45*min(1,|d|), scale=1-min(0.3,|d|*0.1)로 계산하고 position 0.5, duration 0.6, ease power2.inOut으로 한 칸 이동한다. 0.4초와 1.3초를 캡처해 중앙 카드가 바뀌고 겹침 순서가 맞는지 확인해.
Apply coverflow in <file>. For center distance d compute x=d*320+sign(d)*120, z=-|d|*160, rotationY=-sign(d)*45*min(1,|d|), scale=1-min(0.3,|d|*0.1) and tween at position 0.5, duration 0.6, ease power2.inOut for a one-slot shift. Capture 0.4s and 1.3s: the center card has changed and stacking order is correct.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo