일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- JavaScript
- javascirpt
- slideChange
- index
- classlist
- swiper
- activeIndex
- realIndex
- loop:true
- CORS
- archiver
- eslint
- error
- eslint prettier
- 인덱스
- querySelector
- vue2
- js
- slidePerGroup
- centerSlides
- watchOverflow
- prettier
- jquery
- display
- Vue
- slidePerView
- v-bind
- css
- vscode
- swiperOption
- Today
- Total
코딩하는 둥둥
Swiper 본문
Swiper 속성
- loop : 슬라이드 반복 여부.
true/false
- freeMode : 슬라이드 넘길때 위치 고정 여부.
true/false
- autoplay: 자동슬라이드.
true/false
- slidesPerView: 한 번에 보여지는 슬라이드의 수. 기본값
auto
- spaceBetween : 슬라이드 사이 여백
- centeredSlides : active한 슬라이드를 중앙에 배치(센터모드).
true/false
- pagination: 페이징 설정
- navigation: 네비게이션 설정
- breakPoints : 화면 크기에 따라 보여지는 모습이 바뀜(반응형 설정). width값으로 조정.
- roundLengths: 일반 해상도 화면에서 텍스트가 흐려지는 것을 방지하기 위해 슬라이드 너비와 높이 값을 반올림.
true/false
- watchOverflow: 슬라이드가 1개일때 pager와 button 숨김
true/false
. (※ loop:true와 함께 사용하는 방법🔗 ) - on
- init : swiper가 초기화될 때 실행
- slideChange : 활성화된 슬라이드가 바뀔때마다 호출
- activeIndexChange : 활성화된 인덱스가 바뀔때마다 호출
- afterInit : Swiper가 정상적으로 로드 되었는지 확인해서 특정 액션을 취할 때 사용
References.
swiper-slide 총정리(사용법 / 적용 / 옵션)
< swiper 적용 > 1. 스와이퍼 슬라이드 사이트 접속 https://swiperjs.com/ Swiper - The Most Modern Mobile Touch Slider Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior. swiperj
shadesign.tistory.com
Swiper 옵션 정리
swiper가 슬라이더가 되지 않는 경우가 발생한다. 왜??? 몰라~~~~ 내비도..... 가 안되니 또 방법을 ...
blog.naver.com
[swiper-slide] active 바뀔때 이벤트 주기
나는 주로 슬라이드 플러그인을 swiper로 많이 쓰는데 active가 바뀔때마다 이벤트를 주었을때 사용한 방법이다. 방법은 두가지가 있는데 activeIndexChange는 활성화된 인덱스가 바뀔 때마다 호출되고,
ay9318.tistory.com
https://velog.io/@hsw7852/swiper-breakpoints-%EB%B0%98%EC%9D%91%ED%98%95%EC%9D%84-%EC%9C%84%ED%95%9C
swiper breakpoints: (반응형을 위한)
swiper를 사용해 pc버전만 구현 해놨더니 모바일 버전에서 레이아웃 찌그러지고 난리가 났다.swiper Demo를 찾아보니 반응형을 위한 옵션이 있더라, 나만 그런지 모르겠지만 대게 swiper가 혹은 js 익숙
velog.io
https://solbel.tistory.com/2319
[javascript/jquery] jquery swiper afterInit event example / jquery swiper 로드 완료 시점 체크 방법
[javascript/jquery] jquery swiper afterInit event example / jquery swiper 로드 완료 시점 체크 방법 jquery swiper 를 사용하다보면 swiper 가 정상적으로 로드가 되었는지 확인해서 로드된 후에 특정 액션을 취해야 하
solbel.tistory.com
'Frontend > JavaScript' 카테고리의 다른 글
[ Swiper ] 슬라이드 가운데 정렬 (0) | 2023.01.15 |
---|---|
[ Swiper ] 슬라이드가 한개일때 페이지네이션과 버튼 안보이게 하기 (0) | 2023.01.15 |
undefined와 null의 차이 (0) | 2023.01.15 |
location.href와 location.replace의 차이점 (0) | 2023.01.15 |
[ npm] Archiver (0) | 2023.01.15 |