미리보기 안의 버튼·입력·포인터로 모션을 확인하세요. 실행 방식은 아래 활용 메모를 참고하세요.
실행용 통합 HTML · 공식 GSAP 3.15.0
<!doctype html>
<!-- Source: https://codepen.io/GreenSock/pen/JojaebV; archived original panels separately. Runtime: official GSAP 3.15.0. -->
<html lang="en" class=""><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Ignore nested elements</title>
<link rel="stylesheet" href="https://asset.wemashup.com/wp-content/uploads/wm-asset-library/gsap/shared/xxmzBrw.css">
<style>
html,
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
h2 {
opacity: 0
}
.container {
position: relative;
width: 90vw;
display: flex;
flex-direction: column;
align-items: center;
border-radius: 9px;
}
.line {
overflow: hidden;
}
.word {
border: 1.5px dashed var(--color-surface-white);
background-image: var(--color-text-gradient);
background-size: 100%;
-webkit-background-clip: text;
-moz-background-clip: text;
-webkit-text-fill-color: transparent;
-moz-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
min-height: 50px;
padding: 1rem;
border-radius: 10px;
margin: 0.25rem;
}
/* style added to align boxes for styling purposes - not necessary for */
sup {
line-height: 0
}
</style></head><body>
<div class="container">
<h2>Split with ignored<sup>1</sup> nested elements<sup>™</sup></h2>
</div>
<script src="https://asset.wemashup.com/wp-content/uploads/wm-asset-library/gsap/shared/gsap-3.15.0-gsap.min.js"></script>
<script src="https://asset.wemashup.com/wp-content/uploads/wm-asset-library/gsap/shared/368d7310ee9cf598.js"></script>
<script src="https://asset.wemashup.com/wp-content/uploads/wm-asset-library/gsap/shared/gsap-3.15.0-SplitText.min.js"></script>
<script>
gsap.registerPlugin(SplitText);
document.fonts.ready.then(() => {
gsap.set("h2", { opacity: 1 });
const headlineSplit = SplitText.create("h2", {
type: "words",
wordsClass: "word++",
ignore: "sup"
});
gsap.from(headlineSplit.words, {
y: -100,
opacity: 0,
rotation: "random(-80, 80)",
stagger: 0.1,
duration: 1,
ease: "back"
});
});
</script></body></html>
원본 HTML
<div class="container">
<h2>Split with ignored<sup>1</sup> nested elements<sup>™</sup></h2>
</div>
원본 CSS
html,
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
h2 {
opacity: 0
}
.container {
position: relative;
width: 90vw;
display: flex;
flex-direction: column;
align-items: center;
border-radius: 9px;
}
.line {
overflow: hidden;
}
.word {
border: 1.5px dashed var(--color-surface-white);
background-image: var(--color-text-gradient);
background-size: 100%;
-webkit-background-clip: text;
-moz-background-clip: text;
-webkit-text-fill-color: transparent;
-moz-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
min-height: 50px;
padding: 1rem;
border-radius: 10px;
margin: 0.25rem;
}
/* style added to align boxes for styling purposes - not necessary for */
sup {
line-height: 0
}원본 JavaScript
gsap.registerPlugin(SplitText);
document.fonts.ready.then(() => {
gsap.set("h2", { opacity: 1 });
const headlineSplit = SplitText.create("h2", {
type: "words",
wordsClass: "word++",
ignore: "sup"
});
gsap.from(headlineSplit.words, {
y: -100,
opacity: 0,
rotation: "random(-80, 80)",
stagger: 0.1,
duration: 1,
ease: "back"
});
});
검증·권리 정보
- 실행 검증
- 데스크톱 실행 확인
- 검증 수준
- 샘플 실행
- 권리 확인
- 확인 필요
중첩된 요소를 유지하며 필요한 텍스트만 분리하는 예제입니다.
Chromium 153 · 데스크톱 1280×900 · 격리 iframe에서 wait 입력과 화면 변화 확인. 모바일·프로젝트 적용은 미검증.
원본 패널은 보존하고 실행용 문서에 공식 GSAP 3.15.0과 공통 의존성을 연결했습니다. 모션 감소 설정과 실제 프로젝트 적용은 별도로 확인하세요.
보관·활용 메모
GSAP Demo Hub의 공개 예제입니다. 원본 HTML·CSS·JavaScript와 설정, 시연 파일을 함께 보관했습니다. 통합 HTML은 공통 스타일과 실행 의존성을 연결한 파일이며 SCSS는 원본 컴파일 결과를 사용합니다.
구형 CodePen 전용 의존성을 그대로 배포하지 않고, 통합 실행에는 공식 GSAP 3.15.0을 연결했습니다. 원본 패널과 원본 설정은 ZIP에 별도로 보존되어 있습니다. 예제의 이미지·폰트 등 외부 소재 요청은 유지됩니다.
보관일 2026-10-27 · 공개 원본의 코드·제작자·설정을 보존했습니다. GSAP 엔진과 개별 코드·이미지·폰트의 사용 조건은 각각 확인해야 합니다. 자유 재배포 허용으로 판단한 자료가 아닙니다.