πŸ”” Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

partialScroll.js is a jQuery one page scroll plugin for modern web app that enables the user to scroll through fullscreen pages using navigation buttons and/or mousewheel.

One-Page-Scrolling

Documentation

Partial Scroll JS

Installation

Step 1

Link the required files.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="js/jquery.partialScroll.js"></script>

Step 2

Creating HTML.

<div class="partialscroll">     <div class="section"></div>     <div class="section"></div>     <div class="section"></div>     <div class="section"></div> </div>

Step 3

Creating CSS.

html, body {     width: 100%;     height: 100%;     overflow: hidden; } .partialscroll {     width: 1920px;     height: 980px; }

Step 4

Call the partialScroll method.

$(document).ready(function () {   $('.partialscroll').partialScroll(); });

Options

General

$('.partialscroll').partialScroll({   mode: 'vertical',  // ['vertical', 'horizontal'] / κ°€λ‘œ, μ„Έλ‘œ λͺ¨λ“œ   secWidth: 0,  // INTEGER / 슀크둀 μ˜μ—­μ˜ κ°€λ‘œ λ„ˆλΉ„   secHeight: 0,  // INTEGER / 슀크둀 μ˜μ—­μ˜ μ„Έλ‘œ λ„ˆλΉ„   secLength: 0,  // INTEGER / μ„Ήμ…˜μ˜ 개수   scrollingSpeed: 900,  // INTEGER / μ„Ήμ…˜ 속도   throttleScrolling: 100,  // INTEGER / 슀크둀 체크 속도   footer: false,  // BOOLEAN / FOOTER μ‚¬μš© 유무   globalWheel: true,  // 전체 μ˜μ—­μ—μ„œ Mouse Wheel μ‚¬μš©   globalSelector: 'html',  // 기쀀이 될 전체 μ˜μ—­μ˜ μ„ νƒμž   sliderBefore: function (oldIndex, newIndex) {  },  // μŠ¬λΌμ΄λ“œ 직전    sliderAfter: function (oldIndex, newIndex) {  }  // μŠ¬λΌμ΄λ“œ 직후 });

Public methods

moveTo

μ›ν•˜λŠ” μ„Ήμ…˜μœΌλ‘œ 이동 (zero-based)

var slider = $('partialscroll').partialScroll(); slider.moveTo(3);  // 2번째 νŽ˜μ΄μ§€λ‘œ 이동

silentMoveTo

μ›ν•˜λŠ” μ„Ήμ…˜μœΌλ‘œ 쑰용히(μ• λ‹ˆλ©”μ΄μ…˜ 없이) 이동 (zero-based)

var slider = $('partialscroll').partialScroll(); slider,silentMoveTo(2);  // 1번재 νŽ˜μ΄μ§€λ‘œ 쑰용히 이동

moveToUp

λ°”λ‘œ μœ„ μ„Ήμ…˜μœΌλ‘œ 이동

var slider = $('partialscroll').partialScroll(); slider.moveToUp();

moveToDown

λ°”λ‘œ μ•„λž˜ μ„Ήμ…˜μœΌλ‘œ 이동

var slider = $('partialscroll').partialScroll(); slider.moveToDown();

stopWheel

마우슀 휠 μ‚¬μš© 정지

마우슀 휠(Mouse wheel)을 μ œμ™Έν•œ κΈ°λŠ₯듀은 μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

var slider = $('partialscroll').partialScroll(); slider.stopWheel();

startWheel

마우슀 휠 μ‚¬μš© κ°€λŠ₯

var slider = $('partialscroll').partialScroll(); slider.startWheel();

stopScroll

슀크둀 정지

λͺ¨λ“  슀크둀 λ©”μ†Œλ“œλ₯Ό μ‚¬μš©ν•  수 μ—†μŠ΅λ‹ˆλ‹€.

var slider = $('partialscroll').partialScroll(); slider.stopScroll();

startScroll

슀크둀 μ‹œμž‘

λͺ¨λ“  슀크둀 λ©”μ†Œλ“œλ₯Ό μ‚¬μš© κ°€λŠ₯ν•©λ‹ˆλ‹€.

var slider = $('partialscroll').partialScroll(); slider.startScroll();

You May Also Like