슬라이드를 보다 쉽게 만들어 주는 JS라이브러리 Swiper
Swiper - The Most Modern Mobile Touch Slider
Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.
swiperjs.com
- 사용법
https://swiperjs.com/get-started
Getting Started With Swiper
Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.
swiperjs.com
- 데모
어떤식으로 사용이 되는지 확인
Swiper Demos
Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior.
swiperjs.com
- 구조
<!-- Slider main container -->
<div class="swiper">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<div class="swiper-slide">Slide 1</div>
<div class="swiper-slide">Slide 2</div>
<div class="swiper-slide">Slide 3</div>
...
</div>
<!-- If we need pagination -->
<div class="swiper-pagination"></div>
<!-- If we need navigation buttons -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
<!-- If we need scrollbar -->
<div class="swiper-scrollbar"></div>
</div>
큰 틀의 컨테이너를 잡아주고
그 안에 슬라이더들을 묶어 주는 wrapper를 만들어서 사용한다.
'개인공부 > 기타' 카테고리의 다른 글
랜덤한 숫자를 생성하는 함수 (0) | 2022.06.14 |
---|---|
[Markdown에디터] Typora or Mark Text (0) | 2022.01.27 |
[JS라이브러리] gsap 애니메이션 효과 라이브러리 (0) | 2022.01.25 |
[JS라이브러리] Lodash로 스크롤이벤트제어 (0) | 2022.01.24 |
[vscode]visual studio code에서 저장시 자동으로 줄바꿈(정렬) (0) | 2021.04.13 |