Lightweight jQuery Carousel With Image Panning Effect Visual Pan - Download Lightweight jQuery Carousel With Image Panning Effect - Visual Pan

Download Lightweight jQuery Carousel With Image Panning Effect – Visual Pan

Posted on

This time I will share jQuery Plugin and tutorial about Lightweight jQuery Carousel With Image Panning Effect – Visual Pan, hope it will help you in programming stack.

Lightweight jQuery Carousel With Image Panning Effect Visual Pan - Download Lightweight jQuery Carousel With Image Panning Effect - Visual Pan
File Size: 13.4 KB
Views Total: 1817
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   



Visual Pan is a lightweight jQuery carousel plugin that slides infinitely through a set of images with a subtle panning effect on mouse move.

How to use it:

1. Place jQuery library and the jQuery visual pan plugin’s file into the html page.

1 <link href="dist/css/vispan.css" rel="stylesheet">
2 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
3 <script src="dist/js/vispan.js"></script>

2. Insert a set of images into a DIV container.

1 <div id="example">
2   <div><img src="1.jpg"></div>
3   <div><img src="2.jpg"></div>
4   <div><img src="3.jpg"></div>
5 </div>

3. Set the height of the carousel in the CSS

1 #example {
2   height: 450px;
3   max-width:960px;
4 }

4. Initialize the plugin and done.

1 $('#example').vispan();

5. Plugin’s default settings.

1 $('#example').vispan({
2   scroll_duration: 400,
3   back_to_top_duration: 1000,
4   slide_change_duration: 500,
5   dead_zone: 0.1,
6   shadow_overlay_opacity: 0,
7   button_toggle_duration: 200,
8   refresh_interval: 100
9 });

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




source : jqueryscript.net