<script type="text/javascript" src="/static/common/plugins/gsap/3.7.1/gsap.min.js"></script><script type="text/javascript" src="/static/common/plugins/gsap/3.7.1/ScrollTrigger.min.js"></script>
<style type="text/css">@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css');
.trend-editer-wrap {
min-width: 1440px;
width: 100%;
font-family: Pretendard, sans-serif !important;
}
@-webkit-keyframes opacityin {
0% {
opacity: 0;
}
1%, 50% {
opacity: 1;
}
51%, 100% {
opacity: 0;
}
}
@keyframes opacityin {
0% {
opacity: 0;
}
1%, 50% {
opacity: 1;
}
51%, 100% {
opacity: 0;
}
}
.trend-editer-wrap .trend-main {
position: relative;
height: 600px;
margin: 0 auto;
}
.trend-editer-wrap .trend-main .img-box {
position: relative;
width: 100%;
height: 100%;
background-color: #808080;
}
.trend-editer-wrap .trend-main .img-box::after {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background-image: url("https://image.a-rt.com//art/display/webzine/202412/1733808761130.png");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
.trend-editer-wrap .trend-main .img-box .bg-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.trend-editer-wrap .trend-main .img-box .bg-img:nth-of-type(2) {
opacity: 0;
-webkit-animation-duration: 4s;
animation-duration: 4s;
-webkit-animation-name: opacityin;
animation-name: opacityin;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
.trend-editer-wrap .trend-main .img-box .bg-img img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
.trend-editer-wrap .trend-main .text-box {
position: absolute;
z-index: 1;
bottom: 0;
width: 100%;
padding: 0 75px 50px;
text-align: center;
color: #fff;
}
.trend-editer-wrap .trend-main .rec {
gap: 15px;
top: 80px;
}
.trend-editer-wrap .trend-main .rec::before {
width: 24px;
height: 24px;
}
.trend-editer-wrap .trend-cont {
position: relative;
}
.trend-editer-wrap .trend-cont .inner {
position: relative;
width: 1420px;
margin: 0 auto;
}
.trend-editer-wrap .trend-cont.intro {
padding: 80px 0;
}
.trend-editer-wrap .trend-cont.intro .inner {
padding-top: 50px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-flow: column wrap;
flex-flow: column wrap;
-webkit-box-align: end;
-ms-flex-align: end;
align-items: flex-end;
}
.trend-editer-wrap .trend-cont.intro .img-box {
width: 240px;
height: 120px;
}
.trend-editer-wrap .trend-cont.review {
padding: 200px 0;
}
.trend-editer-wrap .trend-cont.review .video-box {
-ms-flex-negative: 0;
flex-shrink: 0;
width: 483px;
height: 744px;
}
.trend-editer-wrap .trend-cont.review .video-box video {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
}
.trend-editer-wrap .trend-cont.review .img-box {
width: 602px;
height: 420px;
margin-top: 104px;
}
.trend-editer-wrap .trend-cont.review .img-box2 {
position: relative;
width: 342px;
height: 522px;
}
.trend-editer-wrap .trend-cont.review .img-box2 .img-link {
position: absolute;
width: 34px;
height: 34px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cg data-name='Group 1658' transform='translate(3107.293 5002.293)'%3E%3Ccircle cx='17' cy='17' r='17' data-name='Ellipse 19' opacity='.46' transform='translate(-3107.293 -5002.293)'/%3E%3Cpath fill='%23fff' d='M-3091.701-4977.255h2.782v-6.664h6.664v-2.782h-6.664v-6.634h-2.782v6.629h-6.628v2.782h6.629Z' data-name='Path 74'/%3E%3C/g%3E%3C/svg%3E");
}
.trend-editer-wrap .trend-cont.review .text-box {
margin-top: 30px;
margin-left: -52px;
}
.trend-editer-wrap .trend-cont.review .text-box2 .text {
height: 135px;
margin-top: 50px;
}
.trend-editer-wrap .trend-cont.review .d-flex:nth-of-type(2) {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
gap: 18px;
margin-top: 120px;
}
.trend-editer-wrap .trend-cont.styling {
padding: 200px 0;
}
.trend-editer-wrap .trend-cont.styling .text-box {
position: absolute;
z-index: 1;
top: -80px;
}
.trend-editer-wrap .trend-cont.styling .text-box2 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: end;
-ms-flex-align: end;
align-items: flex-end;
height: 220px;
margin: 325px auto 0 30px;
}
.trend-editer-wrap .trend-cont.styling .text-box3 {
margin-top: 33px;
margin-left: 143px;
}
.trend-editer-wrap .trend-cont.styling .img-box {
width: 400px;
height: 615px;
}
.trend-editer-wrap .trend-cont.styling .img-box2 {
width: 300px;
height: 460px;
margin-top: -120px;
}
.trend-editer-wrap .trend-cont.styling .slide-box {
width: 500px;
margin-top: 150px;
}
.trend-editer-wrap .trend-cont.styling .swiper-slide img {
width: 500px;
height: 744px;
}
.trend-editer-wrap .trend-cont.selection {
padding: 120px 0 200px;
}
.trend-editer-wrap .trend-cont.selection .text-box {
margin-bottom: 30px;
}
.trend-editer-wrap .trend-cont.selection .text-box2 {
margin-left: auto;
margin-bottom: 87px;
}
.trend-editer-wrap .trend-cont.selection .text-box2 .text {
width: 726px;
height: 75px;
color: #FFD271;
}
.trend-editer-wrap .trend-cont.selection .text-box3 {
margin-bottom: 39px;
}
.trend-editer-wrap .trend-cont.selection .text-box4 {
margin-top: 50px;
}
.trend-editer-wrap .trend-cont.selection .text-box4 .text {
font-size: 15px;
line-height: 29px;
letter-spacing: 0;
color: #fff;
}
.trend-editer-wrap .trend-cont.selection .swiper-slide img {
width: 410px;
height: 300px;
}
.trend-editer-wrap .trend-cont.selection .slide-wrap {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-flow: column wrap;
flex-flow: column wrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 410px;
}
.trend-editer-wrap .trend-cont.selection .d-flex {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
.trend-editer-wrap .trend-cont.selection .rec {
color: #FFD270;
}
.trend-editer-wrap .trend-cont.selection .slide-box {
width: 100%;
}
.trend-editer-wrap .trend-cont .motion-type1,
.trend-editer-wrap .trend-cont .motion-type2 {
opacity: 0;
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
}
.trend-editer-wrap .trend-cont [class*="img-box"] img,
.trend-editer-wrap .trend-cont .slide-box img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
}
.trend-editer-wrap .trend-tab {
position: -webkit-sticky;
position: sticky;
z-index: 2;
top: 99px;
background-color: #000;
}
.trend-editer-wrap .trend-tab .tab-list {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 1420px;
margin: 0 auto;
}
.trend-editer-wrap .trend-tab .tab-list .list-item {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.trend-editer-wrap .trend-tab .tab-list .item-link {
font-size: 18px;
line-height: 25px;
letter-spacing: 0;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: 100%;
height: 40px;
text-align: center;
color: #fff;
}
.trend-editer-wrap .trend-tab .tab-list .item-link.active {
background-color: #FF0000;
}
.trend-editer-wrap .trand-credit img {
width: 100%;
}
.trend-editer-wrap .trand-btn {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
margin-top: 60px;
}
.trend-editer-wrap .trand-btn .btn {
width: 340px;
height: 65px;
font-family: Pretendard, sans-serif !important;
font-weight: 700;
line-height: 63px;
}
.trend-editer-wrap .d-flex {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.trend-editer-wrap .d-flex.column {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-flow: column wrap;
flex-flow: column wrap;
}
.trend-editer-wrap .mlAuto {
margin-left: auto;
}
.trend-editer-wrap .rec {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 10px;
position: absolute;
z-index: 1;
top: 78px;
left: 75px;
opacity: 0;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-name: opacityin;
animation-name: opacityin;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
.trend-editer-wrap .rec::before {
content: '';
width: 12px;
height: 12px;
background-color: #FF0000;
border-radius: 50%;
}
.trend-editer-wrap .rec svg, .trend-editer-wrap .rec p {
font-size: 15px;
line-height: 18px;
letter-spacing: 0;
}
.trend-editer-wrap .text {
font-size: 18px;
line-height: 25px;
letter-spacing: 0;
}
.trend-editer-wrap .slide-box .swiper-pagination-bullets {
bottom: 15px;
}
.trend-editer-wrap .slide-box .swiper-pagination-bullet {
width: 9px;
height: 9px;
background: #fff;
opacity: 1;
}
.trend-editer-wrap .slide-box .swiper-pagination-bullet-active {
background: #FF0000;
}
@media screen and (min-width:1440px) {
.trend-editer-wrap .trend-main{height: min(41.667vw,800px);}
}
</style>
<div class="trend-editer-wrap">
<section class="trend-main">
<div class="rec"><img height="20" src="https://image.a-rt.com//art/display/webzine/202412/1733805883157.png" width="47" /></div>
<div class="img-box">
<div class="bg-img"><img src="https://image.a-rt.com//art/display/webzine/202501/1736924158464.png?fitting=large|1920:800" /></div>
<div class="bg-img"><img src="https://image.a-rt.com//art/display/webzine/202501/1737004441768.png?fitting=large|1920:800" /></div>
</div>
<div class="text-box">
<p class="text">무채색 일상에 반짝이는 색감으로 기분전환이 필요한 지금!<br />
따끈따끈한 신상 스피드캣 실물 리뷰를 확인하세요.</p>
</div>
</section>
<div class="trend-tab">
<ul class="tab-list">
<li class="list-item"><a class="item-link" href="#review">REVIEW</a></li>
<li class="list-item"><a class="item-link" href="#styling">STYLING</a></li>
<li class="list-item"><a class="item-link" href="#selection">SELECTION</a></li>
<li class="list-item"><a class="item-link" href="#event">EVENT</a></li>
</ul>
</div>
<section class="trend-cont intro" id="intro" style="background-color: #FFD781;">
<div class="rec">
<p>INTRO</p>
</div>
<div class="inner">
<div class="img-box motion-type1"><img src="https://image.a-rt.com//art/display/webzine/202501/1736901495833.png" /></div>
<div class="text-box">
<p class="text">트렌드의 선두에 서며 꾸준히 사랑받는 스피드캣.<br />
대표적인 블랙과 레드 외에도, 더 신선하게 자신을 표현할<br />
컬러를 찾고 있다면 이번 신상을 주목하세요. 다채로운 색감의<br />
스피드캣을 소개하며, 페이지 하단의 댓글 이벤트도 놓치지 마세요.</p>
</div>
</div>
</section>
<section class="trend-cont review" id="review">
<div class="rec">
<p>REVIEW</p>
</div>
<div class="inner">
<div class="d-flex">
<div class="video-box motion-type2">
<video autoplay="" class="video" controls="" id="videoPlayer" loop="" muted="" playsinline="" preload=""><source src="http://api.wecandeo.com/video/default/BOKNS9AQWrHQg7ii9ipD2jMWlwNOz6xais3NVRraBWo7IyXsoazvYR2JfMxzxNx4FQQpuipnbwBekdwX2zuBUzBToAieie.mp4" /></video>
</div>
<div class="d-felx column mlAuto">
<div class="img-box motion-type2"><img src="https://image.a-rt.com//art/display/webzine/202501/1736930039725.png" /></div>
<div class="text-box"><img height="81" src="https://image.a-rt.com//art/display/webzine/202501/1736840874585.png
" width="463" /></div>
<div class="text-box2 motion-type2">
<p class="text">레이스 트랙의 속도감에서 영감을 얻어 날렵한 실루엣과<br />
대담한 무드를 담아낸 스니커즈, 스피드캣.<br />
스웨이드 소재와 섬세한 디테일로 빈티지한<br />
아카이브 룩을 완성하며, 심플한 블랙을 넘어선 이번<br />
신상은 감각적인 레트로 컬러로 강렬함을 선보입니다.</p>
</div>
</div>
</div>
<div class="d-flex">
<div class="img-box2 motion-type2"><a class="img-link" href="https://grandstage.a-rt.com/product/new?prdtNo=1020111583" style="top: 210px; left: 80px"><span class="hide">상품링크</span></a> <img src="https://image.a-rt.com//art/display/webzine/202501/1736922782503.png" /></div>
<div class="img-box2 motion-type2"><a class="img-link" href="https://grandstage.a-rt.com/product/new?prdtNo=1020110519" style="top: 390px; left: 120px"><span class="hide">상품링크</span></a> <img src="https://image.a-rt.com//art/display/webzine/202501/1736922782511.png" /></div>
<div class="img-box2 motion-type2"><a class="img-link" href="https://grandstage.a-rt.com/product/new?prdtNo=1020110870" style="top: 170px; left: 250px"><span class="hide">상품링크</span></a> <img src="https://image.a-rt.com//art/display/webzine/202501/1736922782542.png" /></div>
</div>
</div>
</section>
<section class="trend-cont styling" id="styling" style="background-color: #FFD271;">
<div class="inner">
<div class="text-box"><img height="157" src="https://image.a-rt.com//art/display/webzine/202412/1733806918559.png" width="806" /></div>
<div class="d-flex column">
<div class="d-flex ">
<div class="img-box motion-type2"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922817272.png" /></div>
<div class="text-box2 motion-type2">
<p class="text">● 상의와 컬러를 맞춘 깔끔한 톤온톤 스타일링<br />
● 드뮤어 스타일을 위한 브라운 팬츠에 스트라이프 니트로 포인트<br />
● 스피드캣의 힙한 레이싱 무드와 어울릴 카고 팬츠 스타일링<br />
● 평균 발사이즈는 반 사이즈 업, 칼발은 정 사이즈 추천<br />
● 발볼이 넓거나 발등이 높은 편이라면 한 사이즈 업 추천</p>
</div>
<div class="slide-box motion-type2">
<div class="swiper-container">
<ul class="swiper-wrapper">
<li class="swiper-slide"><a href="https://grandstage.a-rt.com/product/new?prdtNo=1020111583"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922857912.png" /> </a></li>
<li class="swiper-slide"><a href="https://grandstage.a-rt.com/product/new?prdtNo=1020110519"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922857972.png" /> </a></li>
<li class="swiper-slide"><a href="https://grandstage.a-rt.com/product/new?prdtNo=1020110870"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922858236.png" /> </a></li>
</ul>
<div class="swiper-pagination"> </div>
</div>
</div>
</div>
<div class="d-flex mlAuto">
<div class="img-box2 motion-type2"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922888232.png" /></div>
<div class="text-box3"><img height="157" src="https://image.a-rt.com//art/display/webzine/202501/1736842912580.png" width="407" /></div>
</div>
</div>
</div>
</section>
<section class="trend-cont selection" id="selection" style="background-color: #191919;">
<div class="inner">
<div class="d-flex column">
<div class="text-box"><img height="156" src="https://image.a-rt.com//art/display/webzine/202501/1737003918993.png" width="1044" /></div>
<div class="text-box2 motion-type2">
<p class="text">자신만의 멋과 색깔을 표현하고 싶은 분들을 위한 특별한 제안.<br />
또 다른 매력을 담은 푸마 스니커즈를 추천합니다.</p>
</div>
<div class="d-flex">
<div class="slide-wrap">
<div class="text-box3"><img height="48" src="https://image.a-rt.com//art/display/webzine/202501/1736842419706.png" width="148" /></div>
<div class="slide-box motion-type2">
<div class="swiper-container">
<ul class="swiper-wrapper">
<li class="swiper-slide"><a href="https://grandstage.a-rt.com/product/new?prdtNo=1020109821"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922946274.png" /> </a></li>
<li class="swiper-slide"><a href="https://grandstage.a-rt.com/product/new?prdtNo=1020109821"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922946300.png" /> </a></li>
</ul>
<div class="swiper-pagination"> </div>
</div>
</div>
<div class="text-box4">
<p class="text">꾸준한 사랑이 이어지는 푸마 아카이브 테라스 슈즈 팔레르모.<br />
차분한 원컬러부터 선명한 컬러블록까지 다채롭게 즐기세요.</p>
</div>
</div>
<div class="slide-wrap">
<div class="text-box3"><img height="46" src="https://image.a-rt.com//art/display/webzine/202501/1736842400513.png" width="283" /></div>
<div class="slide-box motion-type2">
<div class="swiper-container">
<ul class="swiper-wrapper">
<li class="swiper-slide"><a href="https://grandstage.a-rt.com/product/new?prdtNo=1020111583"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922974038.png" /> </a></li>
<li class="swiper-slide"><a href="https://grandstage.a-rt.com/product/new?prdtNo=1020111583"><img src="https://image.a-rt.com//art/display/webzine/202501/1736922974077.png" /> </a></li>
</ul>
<div class="swiper-pagination"> </div>
</div>
</div>
<div class="text-box4">
<p class="text">트렌드의 정점에서 빈틈없는 신선함을 주는 스피드캣.<br />
반복되는 데일리 룩에 컬러로 기분전환해 보세요.</p>
</div>
</div>
<div class="slide-wrap">
<div class="text-box3"><img height="48" src="https://image.a-rt.com//art/display/webzine/202501/1736842374633.png" width="362" /></div>
<div class="slide-box motion-type2">
<div class="swiper-container">
<ul class="swiper-wrapper">
<li class="swiper-slide"><a href="https://abcmart.a-rt.com/product/new?prdtNo=1010111285"><img src="https://image.a-rt.com//art/display/webzine/202501/1736923000275.png" /> </a></li>
<li class="swiper-slide"><a href="https://abcmart.a-rt.com/product/new?prdtNo=1010111285"><img src="https://image.a-rt.com//art/display/webzine/202501/1736923000295.png" /> </a></li>
</ul>
<div class="swiper-pagination"> </div>
</div>
</div>
<div class="text-box4">
<p class="text">축구 헤리티지를 담은 스트릿 룩에 고급스러운 스웨이드를 더한<br />
클럽 푸마 클럽 II 에라. 브라운 톤으로 차분하게 연출하세요.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="trend-cont event" id="event">
<div class="trand-credit"><img alt="" src="https://image.a-rt.com//art/display/webzine/202501/1736991178055.png" /></div>
<div class="trand-btn"><a class="btn btn-lg btn-line" href="https://grandstage.a-rt.com/product/brand/page/main?brandNo=000054&page=1">푸마 브랜드관 바로가기 ></a><a class="btn btn-lg btn-line" href="https://www.a-rt.com/display/webzine/trend">더 많은 매거진 보러가기 ></a></div>
</section>
</div>
<script>
$(document).ready(function () {
var scrolling = false; // 스크롤 상태 관리 플래그
// 탭 클릭 및 스크롤 이벤트를 통합
function updateActiveTab(targetId) {
$('.tab-list a').removeClass('active');
if (targetId) { // 대상 ID가 있을 때만 active 추가
$('.tab-list a[href="#' + targetId + '"]').addClass('active');
}
}
// 스크롤 위치에 따른 활성 탭 업데이트
function onScroll() {
if (!scrolling) {
scrolling = true;
var scrollPosition = $(window).scrollTop();
var activeTabFound = false;
if (scrollPosition === 0) {
var firstSectionId = $('.trend-cont').first().attr('id');
updateActiveTab(firstSectionId);
activeTabFound = true;
} else {
$('.trend-cont').each(function () {
var sectionOffset = $(this).offset().top - 139;
var sectionHeight = $(this).outerHeight();
var sectionId = $(this).attr('id');
if (scrollPosition >= sectionOffset && scrollPosition < sectionOffset + sectionHeight) {
updateActiveTab(sectionId);
activeTabFound = true;
return false; // 현재 섹션을 찾으면 루프 종료
}
});
}
if (!activeTabFound) {
// trend-cont를 모두 벗어난 경우 active 제거
updateActiveTab(null);
}
setTimeout(function () {
scrolling = false;
}, 100);
}
}
// 탭 클릭 이벤트 처리
$('.tab-list a').on('click', function (event) {
if (this.hash !== "") {
event.preventDefault();
scrolling = true;
var targetId = this.hash.substring(1);
$('html, body').animate({
scrollTop: $('#' + targetId).offset().top - 138
}, 300, 'easeInOutExpo', function () {
scrolling = false;
});
updateActiveTab(targetId);
}
});
// 스크롤 이벤트 처리
$(window).on('scroll', onScroll);
// siwper 이벤트
$('.slide-box').each(function(index, element) {
var $this = $(element);
var influencerSwiper = new Swiper($this.find('.swiper-container'), {
allowTouchMove: true,loop:true,
resistanceRatio: 0,
watchSlidesProgress: true,
spaceBetween: 20,
pagination: {
el: '.swiper-pagination',
clickable: true,
}
});
});
// 비디오 재생
var videoBoxes = document.querySelectorAll('.video-box');
if (videoBoxes.length > 0) {
var observerOptions = {
root: null,
threshold: 0.5,
};
var observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
var video = entry.target.querySelector('video');
if (entry.isIntersecting && entry.intersectionRatio >= 0.5) {
playActiveVideo(video);
} else {
pauseVideo(video);
}
});
}, observerOptions);
videoBoxes.forEach((box) => {
observer.observe(box);
});
}
// 활성 비디오 재생
function playActiveVideo(video) {
if (video && video.paused) {
video.currentTime = 0;
video.play();
}
}
// 비디오 멈추기
function pauseVideo(video) {
if (video) {
video.pause();
video.currentTime = 0;
}
}
// gsap js
gsap.registerPlugin(ScrollTrigger);
ScrollTrigger.defaults({
markers: false
});
$(".motion-type1").each(function(index) {
var triggerElement = $(this);
var targetElement = $(this);
var tl = gsap.timeline({
scrollTrigger: {
trigger: triggerElement,
start: "top bottom",
end: "+=40%",
scrub: 1,
toggleActions: "play none none none",
once: true
}
});
tl.to(targetElement, {
y: "-50px",
opacity: 1,
duration: 1
});
});
$(".trend-cont").each(function() {
var container = $(this);
var motionElements = container.find(".motion-type2");
motionElements.each(function(index) {
var targetElement = $(this);
var tl = gsap.timeline({
scrollTrigger: {
trigger: container,
start: `top+=${200 + index * 160} bottom`,
end: "+=40%",
scrub: 1,
toggleActions: "play none none none",
once: true
// markers: true // 디버깅용 마커
}
});
tl.to(targetElement, {
opacity: 1,
duration: 1,
delay: index * 1.2
});
});
});
});
</script>