npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jquery.touchslider

v1.6.10

Published

A jQuery plugin that makes it easy to create touch sliders.

Downloads

37

Readme

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에서 사용하기

  • Example : https://codesandbox.io/s/jquerytouchslider-ri7zy

Options

| Option Name | Type | Default | Description | | --- | --- | --- | --- | | mode | String | 'swipe' | 슬라이드 모드 ('swipe' or 'fade') | | page | Number | 1 | 초기 페이지 | | speed | Number | 150 | 페이지 넘김 애니메이션 속도 (ms) | | view | Number | 1 | 페이지 당 아이템 개수 | | gap | Number | 0 | 아이템 사이 간격 (pixel) | | range | Number | 0.15 | 페이지 넘김 판정 범위 | | roll | Boolean | true | 슬라이드 넘김 순환 | | resize | Boolean | true | 자동 리사이즈 | | controls | Boolean | true | prev, next 버튼 생성 | | paging | Boolean | true | page control 생성 | | sidePage | Boolean | false | 측면 페이지 사용 | | transition | Boolean | true | CSS Transition 사용 | | useMouse | Boolean | true | 마우스 드래그 사용 여부 | | btn_prev | Object | null | 사용자 prev 버튼 (jQuery Objec) | | btn_next | Object | null | 사용자 next 버튼 (jQuery Objec) | | autoplay | Object | {enable: false,pauseHover: true,addHoverTarget: '',interval: 3500} | 자동움직임 관련 옵션 | | breakpoints | Object | null | 브레이크 포인트 옵션 |

Method

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

CallBack

| Name | Description | | --- | --- | | initComplete | 슬라이더가 초기화된 후 호출 | | destroyComplete | 슬라이더 기능이 제거된 후 호출 | | counter | 슬라이더를 넘긴 후 호출 |