Giter Site home page Giter Site logo

slider.js's Introduction

slider.js

// 제이쿼리 방식 초기화
$('.slider').slider({ 옵션 });
$('.slider').slider('메소드 이름');
// 논 제이쿼리 방식 초기화
const slider = new Slider(셀렉터 또는 엘리먼트, { 옵션 });
slider.refresh();
slider.slide(3);

옵션 목록

  • interval (기본 값: 3000): 페이지당 대기시간
  • duration (기본 값: 1000): 다음 페이지로 넘어가는데 걸리는 시간
  • page_index (기본 값: 0): 시작 페이지 인덱스
  • page_offset (기본 값: 0): 초기 슬라이드 위치
  • sensivility (기본 값: 100): 터치 민감도
  • auto (기본 값: true): 자동으로 넘어가는지에 대한 여부
  • easing (기본 값: 'easeInOutSine'): 슬라이드가 넘어가는 애니메이션에 사용할 easing 함수

easing 함수 목록

  • linear
  • easeInQuad
  • easeOutQuad
  • easeInOutQuad
  • easeInCubic
  • easeOutCubic
  • easeInOutCubic
  • easeInQuart
  • easeOutQuart
  • easeInOutQuart
  • easeInQuint
  • easeOutQuint
  • easeInOutQuint
  • easeInSine
  • easeOutSine
  • easeInOutSine
  • easeInExpo
  • easeOutExpo
  • easeInOutExpo
  • easeInCirc
  • easeOutCirc
  • easeInOutCirc
  • easeInElastic
  • easeOutElastic
  • easeInOutElastic
  • easeInBack
  • easeOutBack
  • easeInOutBack
  • easeInBounce
  • easeOutBounce
  • easeInOutBounce

참고 자료

Coding Math: Episode 27 - Easing and Tweening: easing 함수 관련

Coding Math: Episode 31 - Tweening Part III: 애니메이션 관련

IE9 이하의 구버전 브라우저에 대한 requestAnimationFrame 지원

slider.js's People

Contributors

ahas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.