<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Promotion Page</title>
<!-- Swiper 11 CSS CDN -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />
<style>
body {
margin: 0;
padding: 0;
background-color: #f3f4f6;
}
.cnt_wrap {
max-width: 1920px;
width: 100%;
margin: 0 auto;
background-color: #ffffff;
overflow: hidden;
}
.cnt_wrap img {
width: 100%;
vertical-align: middle;
display: block;
}
/* 공통 섹션 스타일 */
.section_wrap {
position: relative;
width: 100%;
}
/* 페이드 효과 컨테이너 */
.fade_box {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
/* 중앙 정렬 페이드인 기본 상태 */
.fade_item {
position: absolute;
left: 50%; /* 가로 중앙 정렬 기준 */
opacity: 0;
transform: translate(-50%, 40px); /* X축 중앙 맞춤, Y축 아래로 이동 */
transition: opacity 1s ease-out, transform 1s ease-out; /* 부드러운 효과를 위해 시간 증가 */
}
.fade_item.active {
opacity: 1;
transform: translate(-50%, 0); /* X축 중앙 맞춤, Y축 원위치 */
}
/* 좌우 정렬이 필요한 아이템 예외 처리 (섹션 3, 4, 5) */
.fade_item.side_item {
left: auto; /* 중앙 정렬 해제 (인라인 left/right 존중) */
transform: translateY(40px); /* X축 이동 제외 */
}
.fade_item.side_item.active {
transform: translateY(0);
}
</style>
</head>
<body>
<div class="cnt_wrap">
<!-- Section 01 -->
<div class="section_wrap">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/f19418bb3d2677fa91cb1ef5f82dccd0.jpg" >
<div class="fade_box">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/7d8919471979c592c7ca758a05c3413e.png" style="top: 7%; width: 40%;" class="fade_item">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/d25650a474632bc3eae75d6ae658ea0f.jpg" style="top: 16%; width: 100%;" class="fade_item">
</div>
</div>
<!-- Section 02 -->
<div class="section_wrap">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/d135ea4b6f8f67dccd32148391037ace.jpg" >
<div class="fade_box">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/5bac778625bb344825f98b3a1332bba2.png" style="top: 13%; width: 84%;" class="fade_item">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/c595f0d4963c35ef80b264392301aade.png" style="top: 35%; width: 88%;" class="fade_item">
</div>
</div>
<!-- Section 03 -->
<div class="section_wrap">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/9f136f44ae2c02c73d53c6a3a4555e56.jpg" >
<div class="fade_box">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/83f89bb311ce623b7adf960aca71aad7.jpg" style="top: 2.5%; left: 8%; width: 39%;" class="fade_item side_item">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/fefc6be9ecb6b7fa4ba955a629feb1c3.jpg" style="top: 2.5%; right: 8%; width: 39%;" class="fade_item side_item">
</div>
</div>
<!-- Section 04 -->
<div class="section_wrap">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/f42dfdd54a1b13e51f284561cb459dd3.jpg" >
<div class="fade_box">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/fd3cda6652fa2de1eafd89aa055a92e6.jpg" style="top: 2.5%; left: 8%; width: 39%;" class="fade_item side_item">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/ded13462b88ce207db520056eb40be55.jpg" style="top: 2.5%; right: 8%; width: 39%;" class="fade_item side_item">
</div>
</div>
<!-- Section 05 -->
<div class="section_wrap">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/09c2fb403a681c755f67740be7103ec2.jpg" >
<div class="fade_box">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/049aa2fab5f62d1050da918d28b18c90.jpg" style="top: 2.5%; left: 8%; width: 39%;" class="fade_item side_item">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/71fe4816f4be0dafb0bf20ecb45058dc.jpg" style="top: 2.5%; right: 8%; width: 39%;" class="fade_item side_item">
</div>
</div>
<div class="section_wrap">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/d351c93ac0af20b4f5fa08f31f5f9b15.jpg" >
<div class="fade_box">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/5e8f1d6f05332dccafc847116a0037f1.jpg" style="top: 10%; width: 84%;" class="fade_item">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/54982c114b98e9abdaf3ca1ce81897e6.jpg" style="top: 40%; width: 84%;" class="fade_item">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/0da48bfd1b31076e4a46fac0f244c91d.jpg" style="top: 70%; width: 84%;" class="fade_item">
</div>
</div>
<div class="section_wrap">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/7173121a938fea581448ad2432c8b310.jpg" >
</div>
<!-- Section 08 -->
<div class="section_wrap">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/bfc937924cfd47cb3992f5eed1237e1a.jpg" >
<div class="fade_box">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/1d63b8e56ff21e678037abc2d2acd6ed.jpg" style="top: 13%; width: 84%;" class="fade_item">
<img src="https://cdn.byn.kr/real/_data/editor_attach/board/gallery_6_978/b93c24f539cbd60905002209d6d765ca.jpg" style="top: 54%; width: 84%;" class="fade_item">
</div>
</div>
</div>
<!-- Swiper 11 JS CDN -->
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const imageObserver = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const targetSection = entry.target;
const fadeItems = targetSection.querySelectorAll('.fade_item');
fadeItems.forEach((item, index) => {
setTimeout(() => {
item.classList.add('active');
}, index * 400); // 300ms -> 400ms로 늘려 순차적 느낌 강화
});
observer.unobserve(targetSection);
}
});
}, {
threshold: 0.15
});
const sections = document.querySelectorAll('.section_wrap');
sections.forEach(sec => {
imageObserver.observe(sec);
});
});
</script>
</body>
</html>