https://link.coupang.com/a/cL8jzc
공정위 문구
※ 우리 사이트 페이지의 링크를 사용하여 구매한 제품을 통해 제휴 광고 프로그램의 일환으로 수수료를 받습니다.
쿠팡본문코드
자바스크립트 코드
자바스크립트 코드를 스킨 편집의 HTML 탭의 맨 아래(
바로 위)에 추가해야 합니다. 자바스크립트 코드는 다음과 같습니다.
CSS 코드
/* Sliding Banner */
.customBannerArea {
position: relative;
overflow: hidden;
margin: 20px auto;
padding: 0 20px;
text-align: center;
}
.customBox {
position: relative;
overflow: hidden;
margin-bottom: 10px;
}
.customBox iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.customBox .backward {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
object-fit: cover;
}
.customBanner {
position: absolute;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.customBanner img.cover {
width: 100%;
height: 100% !important;
object-fit: cover;
opacity: 0.93;
}
.customBanner.active img {
box-shadow: none !important;
}
.customBanner.active a {
height: 100% !important;
}
/* ✅ 수정된 화살표 스타일 */
.customBanner .arrow {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
background-color: #2196f3;
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 16px;
font-weight: bold;
z-index: 10;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
cursor: pointer;
}
.banner-bubble {
position: absolute;
top: 10px;
background-color: #bd0000;
height: 24px;
width: 77px;
color: white !important;
font-size: 0.75em !important;
border-radius: 5px;
padding-top: 2px;
line-height: 1.2rem !important;
}
.sliding-banner-300 .banner-bubble:after,
.sliding-banner-150 .banner-bubble:after,
.sliding-banner-250 .banner-bubble:after {
content: "";
position: absolute;
bottom: 0;
width: 0;
height: 0;
border: 10px solid transparent;
border-top-color: #bd0000;
border-bottom: 0;
border-left: 0;
margin-left: -2.5px;
margin-bottom: -5px;
}
.sliding-banner-280 .banner-bubble:after {
content: "";
position: absolute;
bottom: 0;
width: 0;
height: 0;
border: 10px solid transparent;
border-top-color: #bd0000;
border-bottom: 0;
border-right: 0;
margin-left: -45.5px;
margin-bottom: -5px;
}
.customBanner.active {
animation: customMv1 1.2s ease-out infinite;
}
@keyframes customMv1 {
0% {
transform: translate3d(-7%, 0, 0);
}
20% {
transform: translate3d(-10%, 0, 0);
}
40% {
transform: translate3d(-5%, 0, 0);
}
60% {
transform: translate3d(-10%, 0, 0);
}
80% {
transform: translate3d(-5%, 0, 0);
}
100% {
transform: translate3d(-7%, 0, 0);
}
}
@media (min-width: 1200px) {
.customBannerArea {
background-color: #ffffffc9;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 0px;
z-index: 1000;
text-align: center;
}
}
/* ✅ 반응형 대응 */
@media (max-width: 768px) {
.customBanner .arrow {
width: 28px;
height: 28px;
font-size: 18px;
right: 8px;
}
}