Smooth Page Switch Plugin For Mobile Web Pages slideit js - Download Smooth Page Switch Plugin For Mobile Web Pages - slideit.js

Download Smooth Page Switch Plugin For Mobile Web Pages – slideit.js

Posted on

This time I will share jQuery Plugin and tutorial about Smooth Page Switch Plugin For Mobile Web Pages – slideit.js, hope it will help you in programming stack.

Smooth Page Switch Plugin For Mobile Web Pages slideit js - Download Smooth Page Switch Plugin For Mobile Web Pages - slideit.js
File Size: 4.03 KB
Views Total: 1452
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

slideit.js is a lightweight jQuery plugin that provides smooth, high performance, vertical page switch animations for your mobile website. Based on CSS3 transitions and transforms. Note that you should run the demo on the mobile or mobile simulator (e.g. Google Chrome dev tool).

How to use it:

1. Load the jQuery slideit.js plugin’s CSS file in the header of your html document.

1 <link rel="stylesheet" href="jquery.slideit.css">

2. Split your webpage into several page sections like this:

1 <div id="slideit">
2   <section class='red'></section>
3   <section class='grey'></section>
4   <section class='blue'></section>
5   <section class='yellow'></section>
6   <section class='green'></section>
7 </div>

3. Load jQuery library and the jQuery slideit.js plugin’s CSS file at the bottom of the document.

1 <script src="//code.jquery.com/jquery-2.2.1.min.js"></script>
2 <script src='jquery.slideit.js'></script>

4. Call the function on the top container to initialize the plugin.

1 $('#slideit').slideit({
2   // options here
3 });

5. Possible plugin options.

1 $('#slideit').slideit({
2   range:100, // pixels
3   time:500 // ms
4 });

This awesome jQuery plugin is developed by WangXueZhi. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net