Codrops 원본
Image To Grid Transition
섹션 · MIT
갤러리 안에서는 화면을 벗어나거나 움직임을 멈추면 예제도 닫힙니다. 다시 재생할 때는 처음부터 시작해요.
SOURCE FILES
원본 코드 읽기
수집한 원본 소스와 실행 안내를 함께 제공합니다.
src/css/base.css
*,
*::after,
*::before {
box-sizing: border-box;
}
:root {
font-size: 16px;
}
html, body {
overflow: hidden;
height: 100vh;
}
body #cdawrap {
justify-self: start;
}
.cda-sponsor-link,
.frame__title-prev {
white-space: nowrap;
overflow: hidden;
position: relative;
}
.cda-sponsor-link::before,
.frame__title-prev::before {
content: '';
height: 1px;
width: 100%;
background: currentColor;
position: absolute;
top: 92%;
transition: transform 0.3s;
transform-origin: 0% 50%;
}
.cda-sponsor-link:hover::before,
.frame__title-prev:hover::before {
transform: scaleX(0);
transform-origin: 100% 50%;
}
body {
margin: 0;
--color-text: #010300;
--color-bg: #76b272;
--color-link: #000;
--color-link-hover: #010300;
color: var(--color-text);
background-color: var(--color-bg);
font-family: halyard-display, sans-serif;
font-weight: 300;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
will-change: background-color;
}
/* Page Loader */
.js .loading::before,
.js .loading::after {
content: '';
position: fixed;
z-index: 2000;
}
.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;
}
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;
}
.oh {
position: relative;
overflow: hidden;
}
.oh__inner {
display: inline-block;
will-change: transform;
}
.unbutton {
background: none;
border: 0;
padding: 0;
margin: 0;
font: inherit;
}
.unbutton:focus {
outline: none;
}
.frame {
position: fixed;
text-align: center;
z-index: 1000;
top: 0;
left: 0;
display: grid;
align-content: space-between;
width: 100%;
max-width: none;
height: 100vh;
padding: 1rem;
pointer-events: none;
grid-template-columns: 50% 50%;
grid-template-rows: auto 1fr auto auto;
grid-template-areas: '... menu' '... ...' 'title ...' 'sponsor ...';
}
.frame a,
.frame button {
pointer-events: auto;
}
.frame__title {
grid-area: title;
justify-content: flex-start;
display: flex;
flex-wrap: wrap;
margin-bottom: 0.5rem;
width: 12rem;
}
.frame__title-main {
font-size: 1rem;
margin: 0;
font-weight: 300;
}
.frame__title-back {
position: relative;
display: flex;
align-items: flex-end;
}
.frame__title-back span {
display: none;
}
.frame__title-back svg {
fill: var(--color-link);
}
.frame__title-back:hover svg,
.frame__title-back:focus svg {
fill: var(--color-link-hover);
}
.frame__title-prev {
margin-top: 0.5rem;
}
.frame__title,
.frame .cdawrap {
transition: opacity 0.3s;
}
.frame--hidden .frame__title,
.frame--hidden .frame .cdawrap {
opacity: 0;
pointer-events: none;
}
.button-menu {
z-index: 100;
width: 1.65rem;
height: 0.65rem;
color: var(--color-menu);
cursor: not-allowed;
border-top: 1px solid;
border-bottom: 1px solid;
grid-area: menu;
align-self: start;
justify-self: end;
}
.content {
display: grid;
place-items: center;
width: 100%;
}
.content__item {
height: 100vh;
width: 100%;
padding-top: 1rem;
display: grid;
align-items: center;
}
.content__item-title {
grid-area: 1 / 1 / -1 / -1;
margin: 0;
cursor: default;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
line-height: 0.85;
font-size: 15.5vw;
text-transform: uppercase;
font-family: ivymode, sans-serif;
font-weight: 200;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.content__item-title span {
position: relative;
z-index: 100;
display: block;
will-change: transform, opacity;
}
.content__item-img {
background-size: cover;
background-position: 50% 50%;
align-self: center;
justify-self: center;
grid-area: 1 / 1 / -1 / -1;
height: 50vh;
width: 80vw;
will-change: transform;
}
.content__enter {
grid-area: 1 / 1 / -1 / -1;
align-self: center;
justify-self: center;
color: #fff;
font-size: 2rem;
cursor: pointer;
font-family: ivymode, sans-serif;
font-weight: 200;
z-index: 1;
}
.button-circle {
width: 200px;
height: 200px;
display: grid;
place-items: center;
}
.button-circle__text {
line-height: 1;
overflow: hidden;
grid-area: 1 / 1 / -1 / -1;
}
.button-circle__text span {
display: block;
padding: 0 0.5rem;
}
.button-circle__text span::before {
position: absolute;
content: attr(data-text);
bottom: 100%;
font-style: italic;
width: 100%;
text-align: center;
left: 0;
}
.button-circle:hover .button-circle__text span {
transform: translate3d(0,100%,0);
}
.button-circle__deco {
width: 100%;
height: 100%;
grid-area: 1 / 1 / -1 / -1;
fill: none;
stroke: currentColor;
stroke-width: 1px;
}
.button-circle:hover .button-circle__deco {
transform: scale3d(1.4,1.4,1);
}
.button-circle__text span,
.button-circle__deco {
transition: transform 0.3s ease-out;
}
.button-circle:hover .button-circle__text span,
.button-circle:focus .button-circle__text span,
.button-circle:hover .button-circle__deco,
.button-circle:focus .button-circle__deco {
transition: transform 0.4s cubic-bezier(0.7,0,0.3,1);
}
.grid {
position: fixed;
counter-reset: grid-counter;
top: calc(50vh - 40vw);
left: 0;
width: 100%;
height: 80vw;
display: grid;
grid-template-columns: repeat(100,1fr);
grid-template-rows: repeat(100,1fr);
opacity: 0;
pointer-events: none;
}
.grid--open {
opacity: 1;
pointer-events: auto;
}
.grid__item {
position: relative;
display: grid;
grid-template-areas: 'grid-img' 'grid-title';
grid-template-rows: 100% auto;
grid-column: var(--c) / span var(--cs);
grid-row: var(--r) / span var(--rs);
will-change: opacity, transform;
}
.grid__item--title {
grid-column: 5 / span 25;
grid-row: 5 / span 14;
margin: 0;
position: relative;
z-index: 100;
justify-content: center;
display: flex;
flex-direction: column;
font-family: ivymode, sans-serif;
font-weight: 200;
text-transform: uppercase;
font-size: clamp(1.5rem,3vw,3.5rem);
line-height: 1;
}
.grid__item--title span {
will-change: transform, opacity;
}
.grid__item--title span:last-child {
margin-left: 2rem;
}
.grid__item--back {
z-index: 100;
grid-column: 5 / span 6;
grid-row: 20 / span 10;
}
.button-back {
cursor: pointer;
display: flex;
padding: 0.5rem 0;
align-self: start;
}
.button-back svg {
pointer-events: none;
stroke: #000;
stroke-width: 1px;
transition: stroke 0.3s;
}
.button-back:hover svg {
stroke: #989898;
}
.grid__item .content__item-img,
.grid__item-img {
width: 100%;
height: 100%;
background-size: cover;
background-position: 50% 50%;
}
.grid__item-title {
font-size: 0.9rem;
position: absolute;
top: 100%;
left: 0;
margin: 0.5rem 0 0 0;
white-space: nowrap;
font-weight: 300;
line-height: 1;
visibility: hidden;
}
.grid__item-title--above {
top: auto;
bottom: 100%;
margin: 0 0 0.5rem 0;
}
.grid__item-title span::before {
counter-increment: grid-counter;
content: counter(grid-counter, decimal-leading-zero) "\00a0 \2014 \00a0" ;
}
@media screen and (min-width: 53em) {
.frame {
text-align: left;
padding: 2.5rem;
}
.grid {
height: 100%;
top: 0;
}
.grid__item-title {
visibility: visible;
}
.content__item {
padding: 0;
}
.content__item-img {
height: 80vh;
width: 60vw;
max-width: 600px;
}
.content__item-title {
justify-content: space-between;
}
.content__item-title span:first-child {
margin: -3vw 0 0 -10vw;
}
.content__item-title span:last-child {
margin: 0 -10vw -3vw 0;
}
}
src/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>Image To Grid Transition | Codrops</title>
<meta name="description" content="A simple transition where a large image animates to its place in a grid." />
<meta name="keywords" content="gsap, flip, image, grid, animation, transition, css, javascript" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="https://use.typekit.net/pgm7mid.css">
<link rel="stylesheet" type="text/css" href="css/base.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="loading">
<main>
<div class="frame">
<div class="frame__title">
<h1 class="frame__title-main">Image To Grid Transition</h1>
<a aria-label="Back to the article" class="frame__title-back" href="https://tympanus.net/codrops/?p=63608">
<span class="oh__inner">Back to the article</span>
<svg width="18px" height="18px" viewBox="0 0 24 24">
<path 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>
<br/>
<a class="frame__title-prev" href="https://tympanus.net/Development/ContentLayoutTransition/">Previous demo</a>
</div>
<button class="button-menu unbutton show" aria-label="Open menu"></button>
</div>
<div class="content">
<div class="content__item">
<div class="content__item-img" style="background-image:url(img/1.jpg)"></div>
<h2 class="content__item-title">
<span>Siobhan</span>
<span>O'dwaya</span>
</h2>
<button class="content__enter unbutton button-circle">
<span class="button-circle__text"><span data-text="Enter">Enter</span></span>
<svg class="button-circle__deco" viewBox="0 0 100 100">
<circle vector-effect="non-scaling-stroke" cx="50" cy="50" r="48"/>
</svg>
</button>
</div>
</div>
<div class="grid">
<h2 class="grid__item grid__item--title">
<span>Siobhan</span>
<span>O'dwaya</span>
</h2>
<div class="grid__item grid__item--back"><button class="button-back unbutton"><svg width="100px" height="18px" viewBox="0 0 50 9"><path vector-effect="non-scaling-stroke" d="m0 4.5 5-3m-5 3 5 3m45-3h-77"></path></svg></button></div>
<div class="grid__item" style="--c: 18;--r: 1;--cs: 22;--rs: 26;">
<div class="grid__item-img" style="background-image:url(img/5.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Carrutha Method</span></h3>
</div>
<div class="grid__item" style="--c: 5;--r: 47;--cs: 16;--rs: 22;">
<div class="grid__item-img" style="background-image:url(img/8.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Maria Coluga</span></h3>
</div>
<div class="grid__item" style="--c: 19;--r: 81;--cs: 16;--rs: 20;">
<div class="grid__item-img" style="background-image:url(img/3.jpg)"></div>
<h3 class="grid__item-title grid__item-title--above oh"><span class="oh__inner">Gabeta Quest</span></h3>
</div>
<div class="grid__item" style="--c: 29;--r: 35;--cs: 9;--rs: 20;">
<div class="grid__item-img" style="background-image:url(img/4.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Lithera Britta</span></h3>
</div>
<div class="grid__item grid__item--target" style="--c: 47;--r: 40;--cs: 9;--rs: 21;">
<h3 class="grid__item-title oh"><span class="oh__inner">Franka Oumata</span></h3>
</div>
<div class="grid__item" style="--c: 39;--r: 66;--cs: 11;--rs: 17;">
<div class="grid__item-img" style="background-image:url(img/6.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Manata Poly</span></h3>
</div>
<div class="grid__item" style="--c: 50;--r: 6;--cs: 10;--rs: 22;">
<div class="grid__item-img" style="background-image:url(img/7.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Ghata Manabra</span></h3>
</div>
<div class="grid__item" style="--c: 81;--r: 3;--cs: 11;--rs: 37;">
<div class="grid__item-img" style="background-image:url(img/2.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Tamara Shubaya</span></h3>
</div>
<div class="grid__item" style="--c: 63;--r: 31;--cs: 11;--rs: 23;">
<div class="grid__item-img" style="background-image:url(img/9.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Linda Christa</span></h3>
</div>
<div class="grid__item" style="--c: 86;--r: 60;--cs: 15;--rs: 37;">
<div class="grid__item-img" style="background-image:url(img/10.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Daniela Walters</span></h3>
</div>
<div class="grid__item" style="--c: 58;--r: 65;--cs: 23;--rs: 24;">
<div class="grid__item-img" style="background-image:url(img/11.jpg)"></div>
<h3 class="grid__item-title oh"><span class="oh__inner">Maria Del Mar</span></h3>
</div>
</div>
</main>
<script src="https://tympanus.net/codrops/adpacks/cda_sponsor.js"></script>
<script type="module" src="js/index.js"></script>
</body>
</html>
함께 쓰는 파일 5개 보기
src/js/index.js
import { preloadImages, map } from './utils';
import { gsap } from 'gsap';
import { Flip } from 'gsap/Flip';
gsap.registerPlugin(Flip);
let winsize = {width: window.innerWidth, height: window.innerHeight};
window.addEventListener('resize', () => winsize = {width: window.innerWidth, height: window.innerHeight});
const DOM = {
// the grid
grid: document.querySelector('.grid'),
// enter button
enterCtrl: document.querySelector('.content__enter'),
// back button
backCtrl: document.querySelector('.button-back'),
// initial image element that we want to move into the final grid
contentItem: document.querySelector('.content__item-img'),
// where to insert the initial image element when the grid is open
gridItemTarget: document.querySelector('.grid__item--target'),
// and when it's closed
gridItemOriginalTarget: document.querySelector('.content__item'),
// initial title element spans
contentTitleTexts: document.querySelectorAll('.content__item-title > span'),
// grid title element spans
gridTitleTexts: document.querySelectorAll('.grid__item--title > span'),
// all grid items (except the .grid__item--target, .grid__item--back and grid__item--title)
gridItems: document.querySelectorAll('.grid > .grid__item:not(.grid__item--target):not(.grid__item--title):not(.grid__item--back)'),
};
const animationSettings = {
duration: 1,
ease: 'expo.inOut'
};
const body = document.body;
// original bg color
const bgcolor = getComputedStyle(body).getPropertyValue('--color-bg');
let isAnimating = false;
// Calculates the position of an element when the element is [distanceDifference]px more far from the center of the page than it was previously
const getInitialPosition = (element, distanceDifference = 400) => {
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
};
};
// Distance from the element's center point to the center of the page
const getDistance = element => {
const elCenter = {x: element.offsetLeft + element.offsetWidth/2, y: element.offsetTop + element.offsetHeight/2};
return Math.hypot(elCenter.x - winsize.width/2, elCenter.y - winsize.height/2);
}
// opens up the grid
const showGrid = () => {
if ( isAnimating ) return;
isAnimating = true;
const tl = gsap.timeline({
onComplete: () => {
isAnimating = false;
}
})
.addLabel('start', 0)
// hide enter button
.to(DOM.enterCtrl, {
duration: animationSettings.duration,
ease: animationSettings.ease,
opacity: 0,
onComplete: () => gsap.set(DOM.enterCtrl, {pointerEvents: 'none'})
}, 'start')
// use the gsap Flip plugin to animate the main image to the grid
.add(() => {
DOM.grid.classList.add('grid--open');
const imageState = Flip.getState(DOM.contentItem);
DOM.gridItemTarget.appendChild(DOM.contentItem);
Flip.from(imageState, {
duration: animationSettings.duration,
ease: animationSettings.ease,
});
}, 'start');
for (let item of DOM.gridItems) {
const {x,y} = getInitialPosition(item);
const delay = map(getDistance(item), 0, 1000, 0, 0.4);
tl
// animate in the grid item's labels
.to(item.querySelector('.oh__inner'), {
duration: animationSettings.duration*1.7,
ease: animationSettings.ease,
startAt: {yPercent: 101},
yPercent: 0,
delay: delay,
}, 'start')
// Set the original positions of the grid items and animate them in
// The position will be relative to the center of the page and outwards
.set(item, {
x: x,
y: y,
opacity: 0
}, 'start')
.to(item, {
duration: animationSettings.duration,
ease: 'expo',
x: 0,
y: 0,
delay: delay,
opacity: 1
}, 'start+=0.4')
}
tl
// Animate in the main image label
.to(DOM.gridItemTarget.querySelector('.oh__inner'), {
duration: animationSettings.duration*1.7,
ease: animationSettings.ease,
startAt: {yPercent: 101},
yPercent: 0
}, 'start')
// Animate out the big title spans and animate in the small title spans
.to(DOM.contentTitleTexts, {
duration: animationSettings.duration,
ease: animationSettings.ease,
yPercent: pos => pos%2 ? 100 : -100,
opacity: 0
}, 'start')
.to(DOM.gridTitleTexts, {
duration: animationSettings.duration,
ease: animationSettings.ease,
startAt: {
xPercent: pos => pos%2 ? 50 : -50,
opacity: 0
},
xPercent: 0,
opacity: 1
}, 'start')
// Animate the back button
.to(DOM.backCtrl, {
duration: animationSettings.duration,
ease: animationSettings.ease,
startAt: {
xPercent: 40,
opacity: 0
},
xPercent: 0,
opacity: 1
}, 'start')
// Animate the color of the page
.to(body, {
duration: animationSettings.duration,
ease: animationSettings.ease,
backgroundColor: '#CDD1CD'
}, 'start');
};
const hideGrid = () => {
if ( isAnimating ) return;
isAnimating = true;
const tl = gsap.timeline({
onComplete: () => {
DOM.grid.classList.remove('grid--open');
isAnimating = false;
}
})
.addLabel('start', 0)
.to(body, {
duration: animationSettings.duration,
ease: animationSettings.ease,
backgroundColor: bgcolor
}, 'start')
.to(DOM.gridItemTarget.querySelector('.oh__inner'), {
duration: animationSettings.duration,
ease: animationSettings.ease,
yPercent: 101
}, 'start');
for (let item of DOM.gridItems) {
const {x,y} = getInitialPosition(item);
const delay = map(getDistance(item), 0, 1000, 0.4, 0);
tl
.to(item, {
duration: animationSettings.duration,
ease: animationSettings.ease,
x: x,
y: y,
opacity: 0,
delay: delay
}, 'start')
.to(item.querySelector('.oh__inner'), {
duration: animationSettings.duration*.5,
ease: animationSettings.ease,
yPercent: 101,
delay: delay,
}, 'start')
}
tl
.to(DOM.gridTitleTexts, {
duration: animationSettings.duration,
ease: animationSettings.ease,
xPercent: pos => pos%2 ? 50 : -50,
opacity: 0
}, 'start')
.to(DOM.backCtrl, {
duration: animationSettings.duration,
ease: animationSettings.ease,
xPercent: 20,
opacity: 0
}, 'start')
.to(DOM.contentTitleTexts, {
duration: animationSettings.duration,
ease: animationSettings.ease,
yPercent: 0,
opacity: 1
}, 'start+=0.4')
.to(DOM.enterCtrl, {
duration: animationSettings.duration,
ease: animationSettings.ease,
opacity: 1,
onComplete: () => gsap.set(DOM.enterCtrl, {pointerEvents: 'auto'})
}, 'start+=0.4')
.add(() => {
const imageState = Flip.getState(DOM.contentItem);
DOM.gridItemOriginalTarget.appendChild(DOM.contentItem);
Flip.from(imageState, {
duration: animationSettings.duration,
ease: animationSettings.ease,
});
}, 'start+=0.4');
};
DOM.enterCtrl.addEventListener('click', () => showGrid());
DOM.backCtrl.addEventListener('click', () => hideGrid());
// Preload images
preloadImages('.grid__item-img').then( _ => document.body.classList.remove('loading'));
src/js/utils.js
const imagesLoaded = require('imagesloaded');
/**
* Map number x from range [a, b] to [c, d]
* @param {Number} x - changing value
* @param {Number} a
* @param {Number} b
* @param {Number} c
* @param {Number} d
*/
const map = (x, a, b, c, d) => (x - a) * (d - c) / (b - a) + c;
/**
* 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);
});
};
export {
map,
preloadImages
};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 - 2021 [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실행 안내·자료
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
ev-emitter@2.1.2 — LICENSE.md
Copyright (c) 2016-2021 [David DeSandro](https://desandro.com)
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.
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.
BEHIND THE EXAMPLE
이 장면을 만드는 원리
동일 이미지 노드의 부모를 바꾸는 전환
반복 입력에서 현재 의도와 전환의 종료·취소 책임을 명시합니다.
- 이 예제에서는
- hideGrid는 contentItem의 Flip 상태를 잡은 뒤 gridItemOriginalTarget에 다시 붙입니다. 이미지의 정체성은 유지하지만 부모에 따른 스타일·초점·읽기 위치는 달라집니다.
