Simple Cross platform Background Slider Plugin With jQuery Morda - Download Simple Cross-platform Background Slider Plugin With jQuery - Morda

Download Simple Cross-platform Background Slider Plugin With jQuery – Morda

Posted on

This time I will share jQuery Plugin and tutorial about Simple Cross-platform Background Slider Plugin With jQuery – Morda, hope it will help you in programming stack.

Simple Cross platform Background Slider Plugin With jQuery Morda - Download Simple Cross-platform Background Slider Plugin With jQuery - Morda
File Size: 8.7 KB
Views Total: 2102
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Morda is a simple, cross-platform jQuery plugin which lets you create a responsive, touch-enabled background image slider with smooth animations.

More features:

  • Auto resizes images depending on the screen size.
  • Keyboard/Arrow/Dot navigation.
  • Supports swipe events on touch devices.
  • Autoplay with pause on hover.
  • Dead simple to use and CSS less.
  • Smooth animations with variable speed.

How to use it:

1. Add a group of background images into the slider using html5 data-bg attribute:

1 <div id="slider"
2   <section data-bg="1.jpg"></section>
3   <section data-bg="2.jpg"></section>
4   <section data-bg="3.jpg"></section>
5   <section data-bg="4.jpg"></section>
6   <section data-bg="5.jpg"></section>
7 </div>

2. Set the width/height for the slider.

1 #slider {
2   width: 100%;
3   height: 100%;
4 }

3. Download and put the jQuery Morda plugin’s script after you’ve loaded jQuery library.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="morda.js"></script>

4. Initialize the slider with default options.

1 $("#slider").Morda();

5. To customize the slider, just pass the following options as an object during initialization.

01 $("#slider").Morda({
02   //  <a href="https://www.jqueryscript.net/animation/">Animation</a> speed in ms
03   speed: 600,
04    
05   //  <a href="https://www.jqueryscript.net/tags.php?/Navigation/">Navigation</a> visible
06   navigation: true,
07    
08   //  Arrows visible
09   arrows: true,
10    
11   //  Autoplay slides
12   autoplay: false,
13    
14   //  Autoplay delay (ms)
15   autoplayDelay: 5000,
16    
17   //  Autoplay pause on cursor over slider
18   autoplayPause: false,
19    
20   //  Arrays color
21   arraysColor: "#fff",
22    
23   //  Active navigation item color
24   navColor: "#fff",
25    
26   //  Active navigation item color
27   activeNavColor: "#fff"
28 });

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

source : jqueryscript.net