1.6.10 • Published 4 years ago

jquery.touchslider v1.6.10

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

jquery.touchSlider

  • jQuery 기반의 플리킹 내비게이션 플러그인
  • 마크업 요소 선택에 제약이 없으며 초보자도 쉽게 사용하도록 설계
  • CSS Selector에 따라 다중 적용 가능
  • PC 브라우저에서 드래그로 사용가능 (기본 옵션으로 포함 v1.3.0)
  • jQuery 1.7+, IE7+ 지원

Demo

http://dohoons.com/test/flick

설치 방법

\<script> 태그로 웹페이지에 추가

<script src="jquery.touchSlider.js"></script>

또는 NPM으로 설치해서 사용

$ npm i jquery.touchslider
var $ = require('jquery');
require('jquery.touchslider')($);

기본 사용법

#touchSlider { background:#ccc; position:relative; overflow:hidden; }
#touchSlider ul { position:absolute; top:0; left:0; overflow:hidden; }
#touchSlider ul li { height:150px; background:#9C9; font-size:14px; color:#fff; }
<div id="touchSlider">
	<ul>
		<li style="background:#9C9">content 1</li>
		<li style="background:#396">content 2</li>
		<li style="background:#39C">content 3</li>
		<li style="background:#33C">content 4</li>
	</ul>
</div>
$("#touchSlider").touchSlider({
	// ... Options
	page: 2
});

React.js에서 사용하기

Options

Option NameTypeDefaultDescription
modeString'swipe'슬라이드 모드 ('swipe' or 'fade')
pageNumber1초기 페이지
speedNumber150페이지 넘김 애니메이션 속도 (ms)
viewNumber1페이지 당 아이템 개수
gapNumber0아이템 사이 간격 (pixel)
rangeNumber0.15페이지 넘김 판정 범위
rollBooleantrue슬라이드 넘김 순환
resizeBooleantrue자동 리사이즈
controlsBooleantrueprev, next 버튼 생성
pagingBooleantruepage control 생성
sidePageBooleanfalse측면 페이지 사용
transitionBooleantrueCSS Transition 사용
useMouseBooleantrue마우스 드래그 사용 여부
btn_prevObjectnull사용자 prev 버튼 (jQuery Objec)
btn_nextObjectnull사용자 next 버튼 (jQuery Objec)
autoplayObject{enable: false,pauseHover: true,addHoverTarget: '',interval: 3500}자동움직임 관련 옵션
breakpointsObjectnull브레이크 포인트 옵션

Method

NameDescription
init(options)슬라이더 초기화
destroy()슬라이더 기능 제거
go_page(index)index 페이지로 이동
autoPlay()자동 넘김 시작
autoStop()자동 넘김 정지
autoPauseToggle()자동 넘김 시작/정지 토글

CallBack

NameDescription
initComplete슬라이더가 초기화된 후 호출
destroyComplete슬라이더 기능이 제거된 후 호출
counter슬라이더를 넘긴 후 호출
1.6.10

4 years ago

1.6.9

4 years ago

1.6.8

5 years ago

1.6.7

5 years ago

1.6.6

5 years ago

1.6.5

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

0.0.1

6 years ago