AWESOME AI MOTION
효과Effects / 데이터Data / Nº 300

트리 펼침과 접힘Tree Expand and Collapse

Tree Expand and Collapse
트리 펼침과 접힘
다른 이름Also known as · Collapsible tree expansion · 트리 가지 펼침과 접힘
300
렌더 추가 예정CLIP COMING트리 펼침과 접힘Tree Expand and Collapse정의·파라미터·프롬프트는 아래에 있다Definition, parameters and prompts are below
도판Fig. 300. 트리 펼침과 접힘 · Tree Expand and Collapse · power2.inOut

부모 노드에서 자식 노드와 연결선이 퍼져 나오거나 부모 위치로 접혀 사라진다.Children and links unfold from a parent or collapse back into it.

01

무엇을 전하나What it tells

전달 효과ConveysCONVEYS
상하위 구조와 포함 관계를 이해한다.Makes hierarchy and containment easy to follow.
언제 쓰나Use whenUSE WHEN
  • 조직도의 하위 부서를 공개할 때
  • 전후 항목의 대응을 움직임으로 설명할 때
  • Use when explaining tree expand and collapse in a presentation or interactive view.
  • Use when viewers need to track corresponding items between states.
과용 주의AvoidAVOID
  • 자식이 부모와 무관한 화면 가장자리에서 나온다 같은 연출을 피한다.
  • 모션만으로 수치를 읽게 하지 않고 라벨과 정적 요약을 함께 둔다
02

좋은 예와 나쁜 예Good and bad use

좋은 사례GOOD

계층 공개 장면에서 부모 노드에서 자식 노드와 연결선이 퍼져 나오거나 부모 위치로 접혀 사라진다. 0.65s 구간으로 항목 대응을 유지한다.

과용 · 나쁜 사례OVERUSE

자식이 부모와 무관한 화면 가장자리에서 나온다

03

파라미터Parameters

기본값은 클립에 쓴 값Defaults are the values used in the clip

항목PARAM기본DEFAULT범위RANGE메모NOTE
기본 구간0.65s0.455~0.975s후보의 주요 이동 또는 유지 시간이다
깊이 간격120px80~180px부모와 자식 사이의 거리다
출입 페이드250ms150~350ms1920x1080 화면 기준 기본값이다
이징power2.inOutnone 또는 power2.inOut시간 재생은 선형, 배치 이동은 완만하게 시작하고 멈춘다
GSAP
const tl = gsap.timeline({paused: true});
children.forEach(n => {
  tl.fromTo(n.el, {attr: {cx: parent.x, cy: parent.y}, opacity: 0},
    {attr: {cx: n.x, cy: n.y}, opacity: 1, duration: .65, ease: 'power2.inOut'}, 0);
});
04

에이전트 프롬프트Agent prompts

그대로 붙여 넣는다Paste as is

Claude Code

<대상>에 트리 펼침과 접힘 효과를 적용해. 노드의 이전 부모 좌표와 목표 트리 좌표를 보간하고 연결선 끝점을 갱신한다. 기본 구간은 0.65초, 깊이 간격은 120px, 출입 페이드은 250ms, 이징은 power2.inOut로 설정하고 값 축과 색 범위를 고정한다. GSAP 코어의 paused 타임라인 하나로 구성하고 seek 시 같은 결과를 그려줘.

Apply Tree Expand and Collapse to <target>. Children and links unfold from a parent or collapse back into it. Use a 0.65-second primary interval with power2.inOut easing, and preserve item IDs and reference coordinates. Set the depth spacing to 120px and the entry and exit fade to 250ms. Use one paused GSAP core timeline with deterministic seeking.

Codex

<파일>의 트리 펼침과 접힘 장면에 적용해. 노드의 이전 부모 좌표와 목표 트리 좌표를 보간하고 연결선 끝점을 갱신한다. 0.65초 구간과 power2.inOut, 깊이 간격 120px, 출입 페이드 250ms를 적용하고 초기 상태를 명시해. 0초, 0.325초, 0.65초를 캡처해 항목 대응과 중간 상태를 확인하고 역방향 seek 후 같은 시점의 결과가 일치하는지 검증해.

Implement Tree Expand and Collapse in the relevant scene in <file>. Children and links unfold from a parent or collapse back into it. Use a 0.65-second primary interval with power2.inOut easing and explicit initial states. Set the depth spacing to 120px and the entry and exit fade to 250ms. Capture at 0, 0.325, and 0.65 seconds to verify item correspondence and intermediate states, then seek backward and confirm identical output at the same time.

05

도구별로 쓰기In your tools

HyperFrames · ReelForge · Scrolline

HyperFramesVIDEO · GSAP
paused 타임라인을 장면 시간으로 seek한다. 좌표와 표본을 미리 계산하고 onUpdate에서 전체 상태를 다시 그린다.
ReelForgeBRIEF TO VIDEO
씬 워커 브리프에 0.65초 구간, 깊이 간격 120px, 출입 페이드 250ms와 항목 ID 대응표를 싣는다.
Scrolline DeckSCROLL SCRUB
진행률 0~1을 타임라인의 전체 길이에 매핑한다. scrub에서는 스프링 대신 ease-out을 쓰고 좌표 기준을 고정한다.
06

잘 맞는 조합Pairs well with

07

출처Sources

개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo