-
Notifications
You must be signed in to change notification settings - Fork 1
/
promotionslide.html
152 lines (125 loc) · 6.44 KB
/
promotionslide.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
<meta name="naver-site-verification" content="6ff386d045f14a1185af67dfd5190a9122c6c8d5">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<script type="text/javascript" src="/resources/w/js/lib/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="/resources/w/js/lib/swiper-4.5.0.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<style>
/*스케일 슬라이드*/
.background {position:relative;}
.image-swiper-container1 .swiper-slide img {
transition: all 200ms linear;
/* transform: scale(0.7); */
filter: grayscale(5);
}
.image-swiper-container1 .swiper-slide-active {
width: 550px !important;
/* margin: -105px 100px 0 -50px; */
filter: grayscale(0);
margin-right:-52px!important;
z-index: 1;
}
.image-swiper-container1 .swiper-slide-active img {
width: 550px !important;
margin: -60px 100px 0 -50px!important;
filter: grayscale(0);
}
.image-swiper-container1 .swiper-slide img {
overflow: hidden; width:100%;
}
</style>
<div style="position:relative;width:1920px;height:1200px;overflow:hidden;">
<div style="position:absolute;width:100%;top:0;left:0;">
<img src="image/background.jpg">
</div>
<div class="image-swiper-container1 swiper-initialized swiper-horizontal swiper-free-mode" style="position:absolute;width:100%;top: 120px;left:-40px;">
<div class="swiper-wrapper" id="swiper-wrapper-60686df622627df5" aria-live="off" style="transition-duration: 0ms; transform: translate3d(-4607.5px, 0px, 0px); transition-delay: 0ms;">
<div class="swiper-slide" role="group" aria-label="3 / 16" data-swiper-slide-index="2" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img1.jpg" alt="">
</div><div class="swiper-slide" role="group" aria-label="4 / 16" data-swiper-slide-index="3" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img2.jpg" alt="">
</div><div class="swiper-slide" role="group" aria-label="5 / 16" data-swiper-slide-index="4" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img3.jpg" alt="">
</div><div class="swiper-slide" role="group" aria-label="6 / 16" data-swiper-slide-index="5" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img4.jpg" alt="">
</div><div class="swiper-slide" role="group" aria-label="7 / 16" data-swiper-slide-index="6" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img5.jpg" alt="">
</div><div class="swiper-slide" role="group" aria-label="8 / 16" data-swiper-slide-index="7" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img6.jpg" alt="">
</div><div class="swiper-slide" role="group" aria-label="9 / 16" data-swiper-slide-index="8" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img1.jpg">
</div><div class="swiper-slide" role="group" aria-label="10 / 16" data-swiper-slide-index="9" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img2.jpg">
</div><div class="swiper-slide" role="group" aria-label="11 / 16" data-swiper-slide-index="10" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img3.jpg">
</div><div class="swiper-slide" role="group" aria-label="12 / 16" data-swiper-slide-index="11" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img4.jpg">
</div><div class="swiper-slide swiper-slide-prev" role="group" aria-label="13 / 16" data-swiper-slide-index="12" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img5.jpg">
</div><div class="swiper-slide swiper-slide-active" role="group" aria-label="14 / 16" data-swiper-slide-index="13" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img6.jpg">
</div>
<!-- <div class="swiper-slide swiper-slide-next" role="group" aria-label="15 / 16" data-swiper-slide-index="14" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img1.jpg">
</div><div class="swiper-slide" role="group" aria-label="16 / 16" data-swiper-slide-index="15" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img2.jpg">
</div><div class="swiper-slide" role="group" aria-label="1 / 16" data-swiper-slide-index="0" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img3.jpg">
</div><div class="swiper-slide" role="group" aria-label="2 / 16" data-swiper-slide-index="1" style="width: 465px; margin-right: 20px;">
<img src="image/slide_img4.jpg">
</div> -->
</div>
<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span></div>
</div>
<script type="text/javascript">
//swiper image
const swiper1 = new Swiper('.image-swiper-container1', {
slidesPerView: 4,
spaceBetween: 20,
centeredSlides: true,
freeMode: true,
speed: 1000,
autoplay: {
delay: 2000,
},
loop: true,
});
function handleScroll() {
var elems = document.querySelectorAll('.up-on-scroll');
Array.prototype.forEach.call(elems, function (elem) {
var class_list = elem.classList;
if (class_list.contains('left-animation')) {
if (isElementUnderBottom(elem, -250)) {
elem.style.opacity = "0";
elem.style.transform = 'translateX(-100px)';
} else {
elem.style.opacity = "1";
elem.style.transform = 'translateX(0)';
}
} else if (class_list.contains('right-animation')) {
if (isElementUnderBottom(elem, -250)) {
elem.style.opacity = "0";
elem.style.transform = 'translateX(100px)';
} else {
elem.style.opacity = "1";
elem.style.transform = 'translateX(0)';
}
} else if (class_list.contains('fadeIn-animation')) {
if (isElementUnderBottom(elem, -250)) {
elem.style.opacity = "0";
} else {
elem.style.opacity = "1";
}
}
});
}
</script>
</html>