Islider Mobile Phone Platform JS Slide assembly

Source: Internet
Author: User

Islider mobile phone platform JS sliding components, no plug-in dependencies. It can handle any element, instance, or DOM element. It has the following features: Ability to customize animations, with animations including default, rotate, flip and depth you can easily add callback functions (Onslidestart, Onslide, Onslideend, Onslidechange) We also support sliding attenuation effect, loop effect, auto slide effect, horizontal/vertical slide. Compatible with mainstream browsers, lazy people library recommended download!

How to use:

1, you need to create a good data for islider first:

var data = [{

height:475,

width:400,

Content: "Imgs/1.jpg",

},{

height:527,

width:400,

Content: "Imgs/2.jpg",

},{

height:400,

WIDTH:512,

Content: "Imgs/3.jpg",

}];

Insert the following HTML code on the page:

<div id= "Islider-wrapper" ></div>

2 to make it run, create a new Islider class, as shown in the following example:

<script type= "Text/javascript" >

var islider = new Islider ({

Dom:document.getElementById (' Islider-wrapper '),//Islider-wrapper the ID in the HTML code corresponds

Data:data

});

</script>

3 If you want to add other effects, you can follow our Demo/picture example:

<script type= "Text/javascript" >

var islider = new Islider ({

Data:list,

Dom:document.getElementById ("Islider-wrapper"),

Isvertical:true,

Islooping:false,

Isdebug:true,

Isautoplay:false,

Animatetype: ' Rotate '

});

</script>

4 If you want to slide the DOM element rather than the picture, you can create a new DOM data in the following format:

var data = [{

' Height ': ' 100% ',

' Width ': ' 100% ',

' Content ': ' <div>

},{

' Height ': ' 100% ',

' Width ': ' 100% ',

' Content ': ' <div>

},{

' Height ': ' 100% ',

' Width ': ' 100% ',

' Content ': ' <div>

}];

For additional configuration options, see:

Http://be-fe.github.io/iSlider/index.html

Islider Mobile Phone Platform JS Slide assembly

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.