미리보기 안의 버튼·입력·포인터로 모션을 확인하세요. 실행 방식은 아래 활용 메모를 참고하세요.
실행용 통합 HTML · 공식 GSAP 3.15.0
<!doctype html>
<!-- Source: https://codepen.io/GreenSock/pen/dPMjJWv; 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>Rolling text</title>
<link rel="stylesheet" href="https://asset.wemashup.com/wp-content/uploads/wm-asset-library/gsap/shared/xxmzBrw.css">
<style>
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body,
html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
.container {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
visibility: hidden;
}
.tube {
position: relative;
width: 100%;
height: 24vw;
}
.line {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
line-height: 1;
margin: 0;
letter-spacing: -0.6vw;
font-size: 18vw;
white-space: nowrap;
text-align: center;
}
.line div {
backface-visibility: hidden;
}
</style></head><body>
<div class="container">
<div class="tube">
<h1 class="line line1">SplitText</h1>
<h1 class="line line2">SplitText</h1>
<h1 class="line line3">SplitText</h1>
<h1 class="line line3">SplitText</h1>
</div>
</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/gsap-3.15.0-SplitText.min.js"></script>
<script>
// original - https://codepen.io/petebarr/pen/oJvVpw
gsap.registerPlugin(SplitText);
console.clear();
// Make container visible
const container = document.querySelector(".container");
gsap.set(container, { visibility: "visible" });
// Grab all lines
const lines = document.querySelectorAll(".line");
// Split characters for all lines
const splitLines = Array.from(lines).map(line =>
new SplitText(line, { type: "chars", charsClass: "char" })
);
// 3D setup
const width = window.innerWidth;
const height = window.innerHeight;
const depth = -width / 8;
const transformOrigin = `50% 50% ${depth}`;
gsap.set(lines, { perspective: 700, transformStyle: "preserve-3d" });
// Timeline animation
const animTime = 0.9;
const tl = gsap.timeline({repeat: -1});
// Animate each line in a loop
splitLines.forEach((split, index) => {
tl.fromTo(
split.chars,
{ rotationX: -90 },
{ rotationX: 90, stagger: 0.08, duration: animTime, ease: "none", transformOrigin },
index * 0.45 // stagger between lines
);
});
</script></body></html>
원본 HTML
<div class="container">
<div class="tube">
<h1 class="line line1">SplitText</h1>
<h1 class="line line2">SplitText</h1>
<h1 class="line line3">SplitText</h1>
<h1 class="line line3">SplitText</h1>
</div>
</div>원본 CSS
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body,
html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
.container {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
visibility: hidden;
}
.tube {
position: relative;
width: 100%;
height: 24vw;
}
.line {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
line-height: 1;
margin: 0;
letter-spacing: -0.6vw;
font-size: 18vw;
white-space: nowrap;
text-align: center;
}
.line div {
backface-visibility: hidden;
}원본 JavaScript
// original - https://codepen.io/petebarr/pen/oJvVpw
gsap.registerPlugin(SplitText);
console.clear();
// Make container visible
const container = document.querySelector(".container");
gsap.set(container, { visibility: "visible" });
// Grab all lines
const lines = document.querySelectorAll(".line");
// Split characters for all lines
const splitLines = Array.from(lines).map(line =>
new SplitText(line, { type: "chars", charsClass: "char" })
);
// 3D setup
const width = window.innerWidth;
const height = window.innerHeight;
const depth = -width / 8;
const transformOrigin = `50% 50% ${depth}`;
gsap.set(lines, { perspective: 700, transformStyle: "preserve-3d" });
// Timeline animation
const animTime = 0.9;
const tl = gsap.timeline({repeat: -1});
// Animate each line in a loop
splitLines.forEach((split, index) => {
tl.fromTo(
split.chars,
{ rotationX: -90 },
{ rotationX: 90, stagger: 0.08, duration: animTime, ease: "none", transformOrigin },
index * 0.45 // stagger between lines
);
});
검증·권리 정보
- 실행 검증
- 데스크톱 실행 확인
- 검증 수준
- 샘플 실행
- 권리 확인
- 확인 필요
여러 줄의 글자를 분리해 입체적인 롤링 타이포그래피를 만듭니다.
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 엔진과 개별 코드·이미지·폰트의 사용 조건은 각각 확인해야 합니다. 자유 재배포 허용으로 판단한 자료가 아닙니다.