잘 되네요! 감사합니다.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Swiper demo</title>
<!-- Link Swiper's CSS -->
<link
rel="stylesheet"
href="https://unpkg.com/swiper/swiper-bundle.min.css"
/>
<!-- Demo styles -->
<style>
.swiper-container {
width: 100%;
height: 550px;
background-repeat:no-repeat;
background-position:center;
}
.swiper-slide {
width: 100%;
height: 550px;
background-repeat:no-repeat;
background-position:center;
display:block;
}
</style>
</head>
<body>
<!-- Swiper -->
<div class="swiper-container mySwiper">
<div class="swiper-wrapper">
<div class="swiper-slide" style="background-image:url('http://new.namchon.org/images/main_vis01.jpg');"></div>
<div class="swiper-slide" style="background-image:url('http://new.namchon.org/images/main_vis02.jpg');"></div>
<div class="swiper-slide" style="background-image:url('http://new.namchon.org/images/main_vis03.jpg');"></div>
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-pagination"></div>
</div>
<!-- Swiper JS -->
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<!-- Initialize Swiper -->
<script>
var swiper = new Swiper(".mySwiper", {
spaceBetween: 30,
centeredSlides: true,
autoplay: {
delay: 3500,
disableOnInteraction: false,
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
</script>
</body>
</html>