Codrops 원본

Fullscreen Clip Animation

섹션 · MIT

섹션 더 보기
ORIGINAL PREVIEW
Fullscreen Clip Animation 정적 미리보기

갤러리 안에서는 화면을 벗어나거나 움직임을 멈추면 예제도 닫힙니다. 다시 재생할 때는 처음부터 시작해요.

큰 화면으로 보기 새 탭

SOURCE FILES

원본 코드 읽기

13개 파일

수집한 원본 소스와 실행 안내를 함께 제공합니다.

css/base.css
파일 저장

*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 14px;
	--color-text: #fff;
	--color-bg: #eca590;
    --color-bg-2: #eabfb1;
	--color-link: #fff;
	--color-link-hover: #fff;
	--font-cover: tenon, sans-serif;
	--font-weight-cover: 700;
	--font-variation-cover: none;
	--font-size-cover: 11vw;
	--font-transform-cover: uppercase;
	--color-cover: #fff;
	--color-bg-button: #fff;
	--color-button: #364a54;
}

.demo-1 {
	--font-cover: "aziga", sans-serif;
	--font-weight-cover: 400;
}

.demo-2 {
	--color-cover: #fcf8ec;
	--color-bg-button: #151c1e;
	--color-button: #ece1d4;
	--color-bg: #3d4a54;
    --color-bg-2: #38454d;
    --font-cover: "stadio-now-variable", sans-serif;
	--font-variation-cover: "opsz" 1000, "wght" 588;
}

.demo-3 {
	--color-cover: #fff;
	--color-bg-button: #fff;
	--color-button: #1e2f32;
	--color-bg: #548a96;
	--color-bg-2: #c4dedd;
	--font-cover: "arnika-variable", sans-serif;
	--font-variation-cover: "wdth" 100;
}

.demo-4 {
	--color-cover: #fff;
	--color-bg-button: #fff;
	--color-button: #1e2f32;
	--color-bg: #010101;
    --color-bg-2: #272b31;
	--font-cover: "zeitung-pro-variable", sans-serif;
	--font-variation-cover: "opsz" 20, "wght" 556;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	background: linear-gradient(0deg, var(--color-bg), var(--color-bg-2), var(--color-bg));
	font-family: tenon,-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow: hidden;
}

.demo-1 {
	
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
	color: inherit;
	text-transform: uppercase;
}

.unbutton:focus {
	outline: none;
}

main {
	display: grid;
	width: 100%;
	height: 100vh;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	overflow: hidden;
}

.frame {
	position: fixed;
	z-index: 600;
	top: 0;
	width: 100%;
	padding: 1.5rem;
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	grid-template-rows: auto;
	grid-template-areas: 'title prev demos sponsor';
	justify-content: start;
	margin-bottom: 3rem;
	grid-gap: 2rem;
}

.frame a {
	pointer-events: auto;
}

.frame a:not(.frame__demo):not(.frame__title-back) {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
}

.frame a:not(.frame__demo):not(.frame__title-back)::before {
	content: '';
	height: 1px;
	width: 100%;
	background: currentColor;
	position: absolute;
	top: 90%;
	transition: transform 0.3s;
	transform-origin: 0% 50%;
}

.frame a:not(.frame__demo):not(.frame__title-back):hover::before {
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.frame__title {
	grid-area: title;
	display: flex;
}

.frame__title-main {
	font-size: inherit;
	margin: 0;
	font-weight: inherit;
}

.frame__title-back {
	position: relative;
	display: flex;
}

.frame__title-back span {
	display: none;
}

.frame__title-back svg {
	fill: currentColor;
}

.frame__prev {
	grid-area: prev;
}

.frame__demos {
	grid-area: demos;
	display: flex;
}

a.frame__demo {
	margin: 0 0 0 1rem;
	text-decoration: none;
}

.frame__demo--current {
	font-weight: bold;
	color: var(--color-link-hover);
}

.slides {
	grid-area: 1 / 1 / -1 / -1;
	display: grid;
	grid-template-columns: repeat(5,22%);
	grid-gap: 2.5vw;
	height: 100vh;
	align-items: center;
	justify-content: center;
	justify-items: center;
    align-content: center;
	pointer-events: none;
}

.slides--columns {
	grid-gap: 0;
}

.slide {
	overflow: hidden;
	border-radius: 23vw;
	height: 56vh;
	width: 100%;
	display: grid;
	opacity: 0;
}

.slides--grid .slide {
	border-radius: 1vw;
}

.slides--columns .slide {
	border-radius: 0;
	height: 100vh;
}

.slide--current {
	visibility: hidden;
}

.slide__img {
	background-size: cover;
	background-position: 50% 50%;
}

.cover {
	grid-area: 1 / 1 / -1 / -1;
	display: grid;
	grid-template-rows: 1fr auto;
	justify-content: center;
	z-index: 100;
}

.cover__title {
	margin: 10vh 0 0 0;
	align-self: center;
	color: var(--color-cover);
	font-family: var(--font-cover);
	font-weight: var(--font-weight-cover);
	font-size: var(--font-size-cover);
	text-transform: var(--font-transform-cover);
	font-variation-settings: var(--font-variation-cover);
	line-height: 1;
	pointer-events: none;
}

.cover__button {
	align-self: end;
	padding: 1rem 2rem;
	margin-bottom: 3rem;
	background: var(--color-bg-button);
	color: var(--color-button);
	width: min-content;
	white-space: nowrap;
	justify-self: center;
	border-radius: 4rem;
}

.clip {
	grid-area: 1 / 1 / -1 / -1;
	display: grid;
}

.clip__img {
	background-size: cover;
	background-position: 50% 50%;
}

@media screen and (min-width: 53em) {

}
index.html
파일 저장

<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Fullscreen Clip-path Transitions | Demo 1 | Codrops</title>
		<meta name="description" content="Some inspiration for clip-path animations where a fullscreen image moves into a row/grid of smaller images, morphing its shape along the way. " />
		<meta name="keywords" content="clip-path, animation, morph, shape, gsap, grid, rounded" />
		<meta name="author" content="Codrops" />
		<link rel="shortcut icon" href="favicon.ico">
		<link rel="stylesheet" href="https://use.typekit.net/lui6fbi.css">
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
		<link rel="stylesheet" href="https://unpkg.com/splitting/dist/splitting.css" />
		<link rel="stylesheet" href="https://unpkg.com/splitting/dist/splitting-cells.css" />
		<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
		<script src="//tympanus.net/codrops/adpacks/analytics.js"></script>
	</head>
	<body class="demo-1 loading">
		<main>
			<div class="frame">
				<div class="frame__title"> 
					<h1 class="frame__title-main">Fullscreen Clip Animation</h1> 
					<a aria-label="Back to the article" class="frame__title-back" href="https://tympanus.net/codrops/?p=70833"> 
						<span class="oh__inner">Back to the article</span> 
						<svg width="18px" height="18px" viewBox="0 0 24 24"><path vector-effect="non-scaling-stroke" d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path>
						</svg>
					</a>
				</div>
				<a class="frame__prev" href="http://tympanus.net/Development/DoubleImageHoverEffects/">Previous demo</a>
				<nav class="frame__demos">
					<span>Demos: </span>
					<a href="index.html" class="frame__demo frame__demo--current">1</a>
					<a href="index2.html" class="frame__demo">2</a>
					<a href="index3.html" class="frame__demo">3</a>
					<a href="index4.html" class="frame__demo">4</a>
				</nav>
			</div>
			<div class="slides">
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo1/2.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo1/3.jpg)"></div></div>
				<div class="slide slide--current"><div class="slide__img" style="background-image:url(img/demo1/1.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo1/4.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo1/5.jpg)"></div></div>
			</div>
			<div class="clip"><div class="clip__img" style="background-image:url(img/demo1/1.jpg)"></div></div>
			<div class="cover">
				<h2 class="cover__title" data-splitting>Moduluxe</h2>
				<button class="cover__button unbutton">Toggle effect</button>
			</div>
		</main>
		<script src="https://tympanus.net/codrops/adpacks/cda_sponsor.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script>
		<script src="https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js"></script>
		<script src="https://unpkg.com/splitting/dist/splitting.min.js"></script>
		<script type="module" src="./js/index.js"></script>
	</body>
</html>
함께 쓰는 파일 11개 보기
index2.html
파일 저장

<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Fullscreen Clip-path Transitions | Demo 2 | Codrops</title>
		<meta name="description" content="Some inspiration for clip-path animations where a fullscreen image moves into a row/grid of smaller images, morphing its shape along the way. " />
		<meta name="keywords" content="clip-path, animation, morph, shape, gsap, grid, rounded" />
		<meta name="author" content="Codrops" />
		<link rel="shortcut icon" href="favicon.ico">
		<link rel="stylesheet" href="https://use.typekit.net/lui6fbi.css">
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
		<link rel="stylesheet" href="https://unpkg.com/splitting/dist/splitting.css" />
		<link rel="stylesheet" href="https://unpkg.com/splitting/dist/splitting-cells.css" />
		<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
		<script src="//tympanus.net/codrops/adpacks/analytics.js"></script>
	</head>
	<body class="demo-2 loading">
		<main>
			<div class="frame">
				<div class="frame__title"> 
					<h1 class="frame__title-main">Fullscreen Clip Animation</h1> 
					<a aria-label="Back to the article" class="frame__title-back" href="https://tympanus.net/codrops/?p=70833"> 
						<span class="oh__inner">Back to the article</span> 
						<svg width="18px" height="18px" viewBox="0 0 24 24"><path vector-effect="non-scaling-stroke" d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path>
						</svg>
					</a>
				</div>
				<a class="frame__prev" href="http://tympanus.net/Development/DoubleImageHoverEffects/">Previous demo</a>
				<nav class="frame__demos">
					<span>Demos: </span>
					<a href="index.html" class="frame__demo">1</a>
					<a href="index2.html" class="frame__demo frame__demo--current">2</a>
					<a href="index3.html" class="frame__demo">3</a>
					<a href="index4.html" class="frame__demo">4</a>
				</nav>
			</div>
			<div class="slides">
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo2/1.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo2/2.jpg)"></div></div>
				<div class="slide slide--current"><div class="slide__img" style="background-image:url(img/demo2/4.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo2/3.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo2/5.jpg)"></div></div>
			</div>
			<div class="clip"><div class="clip__img" style="background-image:url(img/demo2/4.jpg)"></div></div>
			<div class="cover">
				<h2 class="cover__title" data-splitting>Monom</h2>
				<button class="cover__button unbutton">Toggle effect</button>
			</div>
		</main>
		<script src="https://tympanus.net/codrops/adpacks/cda_sponsor.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script>
		<script src="https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js"></script>
		<script src="https://unpkg.com/splitting/dist/splitting.min.js"></script>
		<script type="module" src="./js/index2.js"></script>
	</body>
</html>
index3.html
파일 저장

<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Fullscreen Clip-path Transitions | Demo 3 | Codrops</title>
		<meta name="description" content="Some inspiration for clip-path animations where a fullscreen image moves into a row/grid of smaller images, morphing its shape along the way. " />
		<meta name="keywords" content="clip-path, animation, morph, shape, gsap, grid, rounded" />
		<meta name="author" content="Codrops" />
		<link rel="shortcut icon" href="favicon.ico">
		<link rel="stylesheet" href="https://use.typekit.net/lui6fbi.css">
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
		<link rel="stylesheet" href="https://unpkg.com/splitting/dist/splitting.css" />
		<link rel="stylesheet" href="https://unpkg.com/splitting/dist/splitting-cells.css" />
		<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
		<script src="//tympanus.net/codrops/adpacks/analytics.js"></script>
	</head>
	<body class="demo-3 loading">
		<main>
			<div class="frame">
				<div class="frame__title"> 
					<h1 class="frame__title-main">Fullscreen Clip Animation</h1> 
					<a aria-label="Back to the article" class="frame__title-back" href="https://tympanus.net/codrops/?p=70833"> 
						<span class="oh__inner">Back to the article</span> 
						<svg width="18px" height="18px" viewBox="0 0 24 24"><path vector-effect="non-scaling-stroke" d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path>
						</svg>
					</a>
				</div>
				<a class="frame__prev" href="http://tympanus.net/Development/DoubleImageHoverEffects/">Previous demo</a>
				<nav class="frame__demos">
					<span>Demos: </span>
					<a href="index.html" class="frame__demo">1</a>
					<a href="index2.html" class="frame__demo">2</a>
					<a href="index3.html" class="frame__demo frame__demo--current">3</a>
					<a href="index4.html" class="frame__demo">4</a>
				</nav>
			</div>
			<div class="slides slides--grid">
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/2.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/3.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/4.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/5.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/6.jpg)"></div></div>

				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/7.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/8.jpg)"></div></div>
				<div class="slide slide--current"><div class="slide__img" style="background-image:url(img/demo3/1.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/9.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/10.jpg)"></div></div>

				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/11.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/12.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/2.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/3.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo3/4.jpg)"></div></div>
			</div>
			<div class="clip"><div class="clip__img" style="background-image:url(img/demo3/1.jpg)"></div></div>
			<div class="cover">
				<h2 class="cover__title" data-splitting>La Casa</h2>
				<button class="cover__button unbutton">Toggle effect</button>
			</div>
		</main>
		<script src="https://tympanus.net/codrops/adpacks/cda_sponsor.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script>
		<script src="https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js"></script>
		<script src="https://unpkg.com/splitting/dist/splitting.min.js"></script>
		<script type="module" src="./js/index3.js"></script>
	</body>
</html>
index4.html
파일 저장

<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Fullscreen Clip-path Transitions | Demo 4 | Codrops</title>
		<meta name="description" content="Some inspiration for clip-path animations where a fullscreen image moves into a row/grid of smaller images, morphing its shape along the way. " />
		<meta name="keywords" content="clip-path, animation, morph, shape, gsap, grid, rounded" />
		<meta name="author" content="Codrops" />
		<link rel="shortcut icon" href="favicon.ico">
		<link rel="stylesheet" href="https://use.typekit.net/lui6fbi.css">
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
		<link rel="stylesheet" href="https://unpkg.com/splitting/dist/splitting.css" />
		<link rel="stylesheet" href="https://unpkg.com/splitting/dist/splitting-cells.css" />
		<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
		<script src="//tympanus.net/codrops/adpacks/analytics.js"></script>
	</head>
	<body class="demo-4 loading">
		<main>
			<div class="frame">
				<div class="frame__title"> 
					<h1 class="frame__title-main">Fullscreen Clip Animation</h1> 
					<a aria-label="Back to the article" class="frame__title-back" href="https://tympanus.net/codrops/?p=70833"> 
						<span class="oh__inner">Back to the article</span> 
						<svg width="18px" height="18px" viewBox="0 0 24 24"><path vector-effect="non-scaling-stroke" d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path>
						</svg>
					</a>
				</div>
				<a class="frame__prev" href="http://tympanus.net/Development/DoubleImageHoverEffects/">Previous demo</a>
				<nav class="frame__demos">
					<span>Demos: </span>
					<a href="index.html" class="frame__demo">1</a>
					<a href="index2.html" class="frame__demo">2</a>
					<a href="index3.html" class="frame__demo">3</a>
					<a href="index4.html" class="frame__demo frame__demo--current">4</a>
				</nav>
			</div>
			<div class="slides slides--columns">
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo4/2.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo4/3.jpg)"></div></div>
				<div class="slide slide--current"><div class="slide__img" style="background-image:url(img/demo4/1.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo4/4.jpg)"></div></div>
				<div class="slide"><div class="slide__img" style="background-image:url(img/demo4/5.jpg)"></div></div>
			</div>
			<div class="clip"><div class="clip__img" style="background-image:url(img/demo4/1.jpg)"></div></div>
			<div class="cover">
				<h2 class="cover__title" data-splitting>Adventure</h2>
				<button class="cover__button unbutton">Toggle effect</button>
			</div>
		</main>
		<script src="https://tympanus.net/codrops/adpacks/cda_sponsor.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script>
		<script src="https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js"></script>
		<script src="https://unpkg.com/splitting/dist/splitting.min.js"></script>
		<script type="module" src="./js/index4.js"></script>
	</body>
</html>
js/index.js
파일 저장

import { preloadImages, preloadFonts } from './utils.js';

Splitting();

// toggle effect button
const toggleButton = document.querySelector('button.cover__button');
// .clip element
const clipElement = document.querySelector('.clip');
// .clip element > .clip__img
const clipImage = clipElement.querySelector('.clip__img');
// .slide elements (except current)
const slides = document.querySelectorAll('.slide:not(.slide--current)');
// slides parent
const slider = document.querySelector('.slides');
// cover title and chars
const title = document.querySelector('.cover__title');
const titleChars = title.querySelectorAll('.char');
// true if the large image preview is open. Starts open.
let isOpen = true;
// true if animation in progress
let isAnimating = false;

// toggle effect function
const toggleEffect = () => {

    if ( isAnimating ) return;

    if ( isOpen ) {
        showSlider();
    }
    else {
        showPreview();
    }

    isOpen = !isOpen;
    
};

// effect for showing the slider
const showSlider = () => {

    isAnimating = true;
    
    gsap
    .timeline({
        defaults: {
            duration: 1.2,
            ease: 'power4.inOut',
        },
        onComplete: () => isAnimating = false
    })
    .addLabel('start', 0)
    
    .set(slider, {perspective: 1000})
    .set(clipElement, {willChange: 'clip-path'})
    .set(titleChars, {transformOrigin: '50% 100%'})

    // the cip element and its image
    .to(clipElement, {
        clipPath: 'inset(22% 39% round 23vw)',
    }, 'start')
    .to(clipImage, {
        scale: .8
    }, 'start')

    // all the other slides/images
    .fromTo(slides, {
        opacity: 0,
        z: 600
    }, {
        duration: 1.4,
        ease: 'power3.inOut',
        stagger: {
            amount: 0.15,
            from: 'center'
        },
        opacity: 1,
        z: 0,
    }, 'start')

    // title chars
    .to(titleChars, {
        duration: 1,
        scaleY: 0,
        stagger: {
            amount: 0.2,
            from: 'center'
        }
    }, 'start');

};

// effect for showing the large preview image
const showPreview = () => {

    isAnimating = true;

    gsap
    .timeline({
        defaults: {
            duration: 1.2,
            ease: 'expo.inOut',
        },
        onComplete: () => isAnimating = false
    })
    .addLabel('start', 0)
    .set(clipElement, {willChange: 'clip-path'})
    .set(clipElement, {willChange: 'clip-path'})
    
    .to(slides, {
        stagger: {
            amount: 0.1,
            from: 'edges'
        },
        opacity: 0,
        z: 600
    }, 'start')

    .addLabel('clip', 'start+=0.15')

    .to(clipImage, {
        scale: 1
    }, 'clip')

    .fromTo(clipElement, {
        clipPath: 'inset(22% 39% round 23vw)'
    }, {
        clipPath: 'inset(0% 0% round 0vw)'
    }, 'clip+=0.1')

    // filter
    .fromTo(clipImage, {
        filter: 'brightness(100%) saturate(100%)'
    }, {
        duration: 0.4,
        ease: 'power1.in',
        filter: 'brightness(200%) saturate(200%)'
    }, 'clip+=0.1')
    .to(clipImage, {
        duration: 0.8,
        ease: 'power1',
        filter: 'brightness(100%) saturate(100%)'
    }, 'clip+=0.4')

    // title chars
    .to(titleChars, {
        duration: 1,
        scaleY: 1,
        stagger: {
            amount: 0.2,
            from: 'center'
        }
    }, 'clip');

};

// toggle effect click event
toggleButton.addEventListener('click', () => toggleEffect());

// Preload images and fonts
Promise.all([preloadImages('.slide__img'), preloadFonts('lui6fbi')]).then(() => {
    document.body.classList.remove('loading')
});
js/index2.js
파일 저장

import { preloadImages, preloadFonts } from './utils.js';

Splitting();

// toggle effect button
const toggleButton = document.querySelector('button.cover__button');
// .clip element
const clipElement = document.querySelector('.clip');
// .clip element > .clip__img
const clipImage = clipElement.querySelector('.clip__img');
// .slide elements (except current)
const slides = document.querySelectorAll('.slide:not(.slide--current)');
// cover title and chars
const title = document.querySelector('.cover__title');
const titleChars = title.querySelectorAll('.char');
gsap.set(titleChars, {
    x: (position,_,arr) => (position - Math.floor(arr.length/2)) * 80
})
// true if the large image preview is open. Starts open.
let isOpen = true;
// true if animation in progress
let isAnimating = false;

// toggle effect function
const toggleEffect = () => {

    if ( isAnimating ) return;

    if ( isOpen ) {
        showSlider();
    }
    else {
        showPreview();
    }

    isOpen = !isOpen;
    
};

// effect for showing the slider
const showSlider = () => {

    isAnimating = true;
    
    gsap
    .timeline({
        defaults: {
            duration: 1.2,
            ease: 'power4.inOut',
        },
        onComplete: () => isAnimating = false
    })
    .addLabel('start', 0)
    
    .set(clipElement, {willChange: 'clip-path'})
    
    // the cip element and its image
    .to(clipElement, {
        clipPath: 'inset(22% 39% round 23vw)',
    }, 'start')
    .to(clipImage, {
        scale: 1.2
    }, 'start')

    .set(slides, {
        transformOrigin: (position,_,arr) => position < arr.length/2 ? '100% 50%' : '0% 50%',
        x: (position,_,arr) => {
            let newposition = position < arr.length/2 ? position : position + 1;
            return 800*(newposition-arr.length/2);
        },
        scaleX: 5,
        skewX: (position,_,arr) => position < arr.length/2 ? 25 : -25,
    }, 'start')
    // all the other slides/images
    .fromTo(slides, {
        opacity: 0,
    }, {
        duration: 1.4,
        stagger: {
            amount: 0.1,
            from: 'center'
        },
        opacity: 1,
        x: 0,
        scaleX: 1,
        skewX: 0
    }, 'start')

    // title chars
    .to(titleChars, {
        duration: 1.4,
        x: 0,
        stagger: {
            grid: 'auto',
            amount: 0.1,
            from: 'center'
        }
    }, 'start');

};

// effect for showing the large preview image
const showPreview = () => {

    isAnimating = true;

    gsap
    .timeline({
        defaults: {
            duration: 1.2,
            ease: 'expo.inOut',
        },
        onComplete: () => isAnimating = false
    })
    .addLabel('start', 0)
    .set(clipElement, {willChange: 'clip-path'})
    .set(clipElement, {willChange: 'clip-path'})
    
    .to(slides, {
        stagger: {
            amount: 0.1,
            from: 'edges'
        },
        opacity: 0,
        x: (position,_,arr) => {
            let newposition = position < arr.length/2 ? position : position + 1;
            return 800*(newposition-arr.length/2);
        },
        scaleX: 2,
        skewX: (position,_,arr) => position < arr.length/2 ? 25 : -25
    }, 'start')

    .to(clipImage, {
        scale: 1
    }, 'start+=0.15')

    .fromTo(clipElement, {
        clipPath: 'inset(22% 39% round 23vw)'
    }, {
        clipPath: 'inset(0% 0% round 0vw)'
    }, 'start+=0.25')

    // filter
    .fromTo(clipImage, {
        filter: 'brightness(100%) saturate(100%)'
    }, {
        duration: 0.4,
        ease: 'power1.in',
        filter: 'brightness(200%) saturate(200%)'
    }, 'start+=0.25')
    .to(clipImage, {
        duration: 0.8,
        ease: 'power1',
        filter: 'brightness(100%) saturate(100%)'
    }, 'start+=0.65')

    // title chars
    .to(titleChars, {
        duration: 1.4,
        x: (position,_,arr) => (position - Math.floor(arr.length/2)) * 80
        
    }, 'start+=0.15');

};

// toggle effect click event
toggleButton.addEventListener('click', () => toggleEffect());

// Preload images and fonts
Promise.all([preloadImages('.slide__img'), preloadFonts('lui6fbi')]).then(() => {
    document.body.classList.remove('loading')
});
js/index3.js
파일 저장

import { preloadImages, getInitialPosition, preloadFonts } from './utils.js';

Splitting();

// toggle effect button
const toggleButton = document.querySelector('button.cover__button');
// .clip element
const clipElement = document.querySelector('.clip');
// .clip element > .clip__img
const clipImage = clipElement.querySelector('.clip__img');
// .slide elements (except current)
const slides = document.querySelectorAll('.slide:not(.slide--current)');
// cover title and chars
const title = document.querySelector('.cover__title');
const titleChars = title.querySelectorAll('.char');
// true if the large image preview is open. Starts open.
let isOpen = true;
// true if animation in progress
let isAnimating = false;
let gridTimeline, previewTimeline;

// toggle effect function
const toggleEffect = () => {

    if ( isAnimating ) return;

    if ( isOpen ) {
        showSlider();
    }
    else {
        showPreview();
    }

    isOpen = !isOpen;
    
};

// effect for showing the slider
const showSlider = () => {

    isAnimating = true;
    
    gridTimeline = gsap.timeline({
        defaults: {
            duration: 1.2,
            ease: 'power4.inOut',
        },
        onComplete: () => isAnimating = false
    })
    .addLabel('start', 0)
    
    .set(clipElement, {willChange: 'clip-path'})
    .set(titleChars, {transformOrigin: '50% 0%'})
    
    // the cip element and its image
    .to(clipElement, {
        clipPath: 'inset(22% 39% round 1vw)',
    }, 'start')
    .to(clipImage, {
        scale: 0.85
    }, 'start');

    for (const [pos,slide] of slides.entries()) {
        // all the other slides/images
        const {x,y} = getInitialPosition(slide,4000);

        gridTimeline.fromTo(slide, {
            opacity: 0,
            x: x,
            y: y
        }, {
            ease: 'power4',
            delay: pos*.02,
            opacity: 1,
            x: 0,
            y: 0
        }, 'start')
    }

    // title chars
    gridTimeline
    .to(titleChars, {
        duration: 0.8,
        scaleY: 8,
        scaleX: 0.1,
        opacity: 0,
        stagger: {
            amount: 0.25,
            from: '0'
        }
    }, 'start');

};

// effect for showing the large preview image
const showPreview = () => {

    isAnimating = true;

    previewTimeline = gsap.timeline({
        defaults: {
            duration: 1.2,
            ease: 'power4.inOut',
        },
        onComplete: () => isAnimating = false
    })
    .addLabel('start', 0)
    .set(clipElement, {willChange: 'clip-path'})
    .set(clipElement, {willChange: 'clip-path'})
    .set(titleChars, {transformOrigin: '50% 100%'});
    
    for (const slide of slides) {
        const {x,y} = getInitialPosition(slide,1000);

        previewTimeline.to(slide, {
            opacity: 1,
            ease: 'power4.inOut',
            x: x,
            y: y
        }, 'start')
    };

    previewTimeline
    .to(clipImage, {
        scale: 1
    }, 'start')

    .fromTo(clipElement, {
        clipPath: 'inset(22% 39% round 1vw)'
    }, {
        clipPath: 'inset(0% 0% round 0vw)'
    }, 'start')

    // filter
    .fromTo(clipImage, {
        filter: 'brightness(100%) saturate(100%)'
    }, {
        duration: 0.4,
        ease: 'power1.in',
        filter: 'brightness(200%) saturate(200%)'
    }, 'start')
    .to(clipImage, {
        duration: 0.8,
        ease: 'power1',
        filter: 'brightness(100%) saturate(100%)'
    }, 'start+=0.4')

    // title chars
    .fromTo(titleChars, {
        scaleY: 8,
        scaleX: 0.1,
        opacity: 0,
    }, {
        duration: 0.8,
        scaleY: 1,
        scaleX: 1,
        opacity: 1,
        stagger: {
            amount: 0.25,
            from: 'end'
        }
    }, 'start');

};

// toggle effect click event
toggleButton.addEventListener('click', () => toggleEffect());

// Preload images and fonts
Promise.all([preloadImages('.slide__img'), preloadFonts('lui6fbi')]).then(() => {
    document.body.classList.remove('loading')
});
js/index4.js
파일 저장

import { preloadImages, preloadFonts } from './utils.js';

Splitting();

// toggle effect button
const toggleButton = document.querySelector('button.cover__button');
// .clip element
const clipElement = document.querySelector('.clip');
// .clip element > .clip__img
const clipImage = clipElement.querySelector('.clip__img');
// .slide elements (except current)
const slides = document.querySelectorAll('.slide:not(.slide--current)');
// slides parent
const slider = document.querySelector('.slides');
// cover title and chars
const title = document.querySelector('.cover__title');
const titleChars = title.querySelectorAll('.char');
// true if the large image preview is open. Starts open.
let isOpen = true;
// true if animation in progress
let isAnimating = false;

// toggle effect function
const toggleEffect = () => {

    if ( isAnimating ) return;

    if ( isOpen ) {
        showSlider();
    }
    else {
        showPreview();
    }

    isOpen = !isOpen;
    
};

// effect for showing the slider
const showSlider = () => {

    isAnimating = true;
    
    gsap.timeline({
        defaults: {
            duration: 1.2,
            ease: 'power4.inOut',
        },
        onComplete: () => isAnimating = false
    })
    .addLabel('start', 0)
    
    .set(slider, {perspective: 1000})
    .set(clipElement, {willChange: 'clip-path'})
    .set(titleChars, {transformOrigin: '0% 50%'})
    
    // the cip element and its image
    .fromTo(clipElement, {
        clipPath: 'polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)',
    }, {
        clipPath: 'polygon(39% 0%, 61% 0%, 61% 100%, 39% 100%)',
    }, 'start')
    .to(clipImage, {
        scale: 1.25
    }, 'start')

    .set(slides, {
        transformOrigin: (position,_,arr) => position < arr.length/2 ? '100% 50%' : '0% 50%',
        rotationY: (position,_,arr) => position < arr.length/2 ? -60 : 60,
        scale: 1,
    }, 'start')
    // all the other slides/images
    .to(slides, {
        duration: 0.7,
        ease: 'expo',
        opacity: .7,
        rotationY: 0,
        stagger: {
            amount: 0.2,
            from: 'center'
        }
    }, 'start+=0.45')

    // title chars
    .to(titleChars, {
        duration: 1,
        scaleX: 0,
        stagger: {
            amount: 0.3,
            from: '0'
        }
    }, 'start');

};

// effect for showing the large preview image
const showPreview = () => {

    isAnimating = true;

    gsap.timeline({
        defaults: {
            duration: 1,
            ease: 'expo',
        },
        onComplete: () => isAnimating = false
    })
    .addLabel('start', 0)
    .set(clipElement, {willChange: 'clip-path'})
    .set(clipElement, {willChange: 'clip-path'})
    
    // all the other slides/images
    .to(slides, {
        opacity: 0,
        scale: .8,
    }, 'start')

    .to(clipImage, {
        scale: 1
    }, 'start')

    .fromTo(clipElement, {
        clipPath: 'polygon(39% 0%, 61% 0%, 61% 100%, 39% 100%)'
    }, {
        clipPath: 'polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)'
    }, 'start+=0.1')

    // filter
    .fromTo(clipImage, {
        filter: 'brightness(100%) saturate(100%)'
    }, {
        duration: 0.2,
        ease: 'none',
        filter: 'brightness(200%) saturate(200%)'
    }, 'start+=0.1')
    .to(clipImage, {
        duration: 0.8,
        ease: 'power1',
        filter: 'brightness(100%) saturate(100%)'
    }, 'start+=0.3')

    // title chars
    .to(titleChars, {
        scaleX: 1,
        stagger: {
            amount: 0.15,
            from: 'end'
        }
    }, 'start');

};

// toggle effect click event
toggleButton.addEventListener('click', () => toggleEffect());

// Preload images and fonts
Promise.all([preloadImages('.slide__img'), preloadFonts('lui6fbi')]).then(() => {
    document.body.classList.remove('loading')
});
js/utils.js
파일 저장

/**
 * Preload images
 * @param {String} selector - Selector/scope from where images need to be preloaded. Default is 'img'
 */
const preloadImages = (selector = 'img') => {
    return new Promise((resolve) => {
        imagesLoaded(document.querySelectorAll(selector), {background: true}, resolve);
    });
};

/**
 * Preload fonts
 * @param {String} id
 */
const preloadFonts = id => {
    return new Promise((resolve) => {
        WebFont.load({
            typekit: {
                id: id
            },
            active: resolve
        });
    });
};

/** 
 * Calculates the position of an element when the element is [distanceDifference]px more far from the center of the page than it was previously
 * @param {Element} element
 * @param {Number} distanceDifference - The distance the element will have from the center
 * @returns {JSON} the x,y translation values
 */
const getInitialPosition = (element, distanceDifference = 400) => {
    const winsize = {width: window.innerWidth, height: window.innerHeight};
    const elCenter = {x: element.offsetLeft + element.offsetWidth/2, y: element.offsetTop + element.offsetHeight/2};
    const angle = Math.atan2(Math.abs(winsize.height/2 - elCenter.y), Math.abs(winsize.width/2 - elCenter.x));

    let x = Math.abs(Math.cos(angle) * distanceDifference);
    let y = Math.abs(Math.sin(angle) * distanceDifference);

    return {
        x: elCenter.x < winsize.width/2 ? x*-1 : x,
        y: elCenter.y < winsize.height/2 ? y*-1 : y
    };
};

export {
    preloadImages,
    preloadFonts,
    getInitialPosition,
};
Media credits and license evidence실행 안내·자료
파일 저장

README.md
## Credits

- Images from [Unsplash](https://unsplash.com/)


## License
[MIT](LICENSE)

Made with :blue_heart:  by [Codrops](http://www.codrops.com)
LICENSE실행 안내·자료
파일 저장

MIT License

Copyright (c) 2009 - 2023 [Codrops](https://tympanus.net/codrops)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Bundled dependency licenses실행 안내·자료
파일 저장

https://cdn.jsdelivr.net/npm/splitting@1.1.0/LICENSE.md
MIT License

Copyright (c) 2018 Stephen Shaw

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


https://cdn.jsdelivr.net/npm/imagesloaded@5.0.0/LICENSE.md
Copyright (c) 2011-2022 [David DeSandro](https://desandro.com) and [contributors](https://github.com/desandro/imagesloaded/graphs/contributors)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


GSAP standard license snapshot
Source: https://gsap.com/community/standard-license/
Retrieved: 2026-09-22T04:22:49.089Z
Original distribution copyright and version headers remain in the runtime code.

Standard "No Charge" GSAP License

 I. DEFINITIONS

 “GSAP License” means the terms and conditions of this GSAP Software License Agreement.

 "GSAP Products" means any Software made available at gsap.com (https://gsap.com) or any successor sites, including but not limited to the GSAP animation library and related plugins, tools, or extensions.

 "Permitted Uses" means the implementation and/or use of GSAP Products on any website, web application, or digital interface by any person or entity (which may include, for clarity, those of companies that compete with Webflow in other areas of business).

 "Prohibited Uses" means any implementation and/or use of GSAP Products in tools that allow users to build visual animations without code that encourages, induces, or materially assists in creating a solution that competes with Webflow’s visual animation building capabilities.

 "Competitive Products" means any software, tool, or service that enables users to create, edit, or manage animations through a visual interface or builder similar to Webflow (https://webflow.com).

 II. GRANT OF LICENSE

 Subject to the terms and conditions of this GSAP License, Webflow grants you a non-exclusive, worldwide license to use, reproduce, display, and implement GSAP Products solely for Permitted Uses.

 III. RESTRICTIONS

 You may not:

 Use any GSAP Products for any Prohibited Uses without prior written consent;

 Reverse engineer any GSAP Products for the purpose of creating Competitive Products;

 Remove or alter any proprietary notices or branding from GSAP Products.

 IV. OWNERSHIP AND INTELLECTUAL PROPERTY

 All intellectual property rights in GSAP Products, including but not limited to copyright, patents, trademarks, and trade secrets, remain the exclusive property of Webflow. This GSAP License does not transfer any ownership rights in GSAP Products to you.

 V. TERMINATION

 Webflow may terminate this GSAP License and revoke your access in its discretion if you fail to comply with any of these terms and conditions. Upon termination, you must cease all use of GSAP Products and destroy all copies in your possession.

 VI. MISCELLANEOUS PROVISIONS

 General: This GSAP License is incorporated into and subject to Webflow’s Terms of Service available here (https://webflow.com/legal/terms) ("Terms of Service"). In the event of any conflict or inconsistency between this GSAP License and the Terms of Service, the terms of this GSAP License shall govern in relation to your use of any GSAP Products.

 Amendments: Webflow reserves the right to update or modify this GSAP License at any time by posting the revised terms on this website, provided that any such updates or modifications shall not result in any material degradation to the security, integrity, or functionality of any GSAP Products. You understand and agree that your continued use of any GSAP Products after such revisions to this GSAP License constitutes your acceptance of this GSAP License as revised. If you do not accept the revised GSAP License, you are prohibited from using versions of the GSAP Products released after the effective date of the revised GSAP License (as well as any updates made to previous versions). Notwithstanding, you may continue using previous versions of GSAP Products under the applicable terms licensed to you prior to the effective date of the revised GSAP License (for clarity, excluding any updates made thereto).

 No Waiver: Failure of Webflow to enforce any provision of this GSAP License shall not constitute a waiver of future enforcement of that or any other provision.

 FAQ

 Is it acceptable for AI tools like ChatGPT, Cursor, Lovable, Webstudio, etc. to generate GSAP code?
 Absolutely! AI-generated code is not a "Prohibited Use".

 What if a WordPress plugin or theme or other niche tool allows users to create GSAP-driven effects through a visual interface? Is that prohibited?
 We want to encourage developers to build on top of GSAP, including visual tools that don't directly compete with Webflow's rich animation-building capabilities. If you are not sure if your product might be considered a "Prohibited Use", feel free to contact us (https://gsap.com/contact) so we can talk through it!

 Can I really use GSAP in commercial projects without paying anything?
 Yes, really! Commercial usage is covered under the standard license. All of GSAP including the plugins that were formerly "members-only" like SplitText (https://gsap.com/docs/v3/Plugins/SplitText/) and MorphSVG (https://gsap.com/docs/v3/Plugins/MorphSVGPlugin) can be used in commercial projects at no charge. Enjoy! 💚

 Effective date: April 30, 2025

 Last modified date: May 30, 2025

 Copyright (©) 2025, Webflow