꼭짓점과 곡선이 서로 반대 방향으로 당겨져 도형이 별이나 꽃처럼 바뀌는 변형Vertices and curves are pulled in opposite directions, turning a shape into a star or flower.
원이 700ms에 amount 0에서 -35%로 당겨져 뾰족한 별이 되고, 반대로 +35%면 부푼 꽃이 된다
amount가 50%를 넘어 도형이 자기 자신과 교차하거나, 점 수가 적어 각진 다각형처럼 보인다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 시간 | 0.7s | 0.4~1.0s | 변형 |
| amount | 0→-35% | -40~+40% | 음수 퍼커, 양수 블로트 |
| 꼭짓점 | 8 | 5~12 | 별의 가지 |
| 회전 | 15deg | 0~30deg | 선택 |
| 이징 | power2.inOut | power1~power3 |
const n = 8, R = 100;
const path = (a) => Array.from({ length: n * 2 }, (_, i) => {
const t = (i / (n * 2)) * Math.PI * 2, r = R * (i % 2 ? 1 + a : 1 - a);
return `${i ? 'L' : 'M'}${(Math.cos(t) * r).toFixed(1)},${(Math.sin(t) * r).toFixed(1)}`;
}).join('') + 'Z';
const o = { a: 0 };
tl.to(o, { a: 0.35, duration: 0.7, ease: 'power2.inOut', onUpdate: () => el.setAttribute('d', path(o.a)) }, 0.3);그대로 붙여 넣는다Paste as is
GSAP과 SVG로 <원>을 퍼커 앤 블로트로 별이 되게 만들어 줘. 반지름 100의 16점 원에서 짝수 점은 바깥으로, 홀수 점은 안쪽으로 amount만큼 이동한 path를 만들고, 0.3초부터 0.7초 동안 power2.inOut으로 amount를 0에서 0.35까지 키워 뾰족한 별로 만들어. 점 수 고정, 교차 금지, paused 타임라인으로 작성해.
Use GSAP and SVG to pucker <circle> into a star. On a 100 radius circle with 16 points, move even points outward and odd points inward by amount, and grow amount from 0 to 0.35 starting at 0.3 seconds over 0.7 seconds with power2.inOut into a pointed star. Fixed point count, no self intersection, paused timeline.
<파일>의 도형에 pucker-bloat를 적용해. path(a)는 16점을 반지름 100*(1±a)로 교대 배치하고, tween 객체 a를 position 0.3, duration 0.7, ease power2.inOut으로 0→0.35, onUpdate에서 setAttribute('d', path(a)). 0.3초는 원, 0.65초는 중간, 1.2초는 8각 별이며 경로 자기교차가 없는지 캡처로 확인해.
Apply pucker-bloat to the shape in <file>. path(a) alternates 16 points at radius 100*(1+/-a); tween object a 0 to 0.35 at position 0.3, duration 0.7, ease power2.inOut and setAttribute('d', path(a)) in onUpdate. Capture 0.3s (circle), 0.65s (midway) and 1.2s (8-point star with no self-intersection).
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo