둥둥 2023. 1. 15. 17:00
728x90

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.

https://shadesign.tistory.com/entry/swiper-slide-%EC%B4%9D%EC%A0%95%EB%A6%AC%EC%82%AC%EC%9A%A9%EB%B2%95-%EC%A0%81%EC%9A%A9-%EC%98%B5%EC%85%98

 

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

https://blog.naver.com/PostView.naver?blogId=bomnarain&logNo=222401148738&parentCategoryNo=&categoryNo=20&viewDate=&isShowPopularPosts=true&from=search

 

Swiper 옵션 정리

swiper가 슬라이더가 되지 않는 경우가 발생한다. 왜???  몰라~~~~ 내비도..... 가 안되니 또 방법을 ...

blog.naver.com

https://ay9318.tistory.com/49

 

[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

 

728x90