Flexslider is a jquery content scrolling plug-in based on. It allows you to easily create content scrolling effect, with very high customization. Developers can use Flexslider easy to create a variety of pictures of the carousel effect, focus graph effect, graphic mixed scrolling effect.
Download source
Flexslider has the following characteristics:
supports sliding and fading effects.
Supports horizontal and vertical sliding.
Support Keyboard Direction key control.
Supports touch sliding.
supports a variety of HTML elements with graphics and text blending.
Adaptive screen size.
The number of sliding units can be controlled.
More option settings and callback functions.
Html
First, you load the jquery library file and the Flexslider plug-in in the head of the page, as well as the basic CSS style files required for Flexslider.
<link rel= "stylesheet" type= "Text/css" href= "Flexslider.css"/> <script type= "Text/javascript" src= "
Jquery-1.7.2.min.js "></script>
<script type=" Text/javascript "src=" Jquery.flexslider-min.js "> </script>
Then add the following HTML code to the body:
<div class= "Flexslider" >
<ul class= "Slides" >
<li></ li>
<li></li> <li>
<li></li>
</ul>
</div>
We used. Flexslider to include all content elements that need to be scrolled, and then use <ul class= "Slides" > This class is critical, and the internal scrolling content is for. Slides and then in <li> Add any HTML elements inside, including pictures and text.
Jquery
Calling the Flexslider plug-in is very simple, using the following code:
$ (function () {
$ ('. Flexslider '). Flexslider ();
});
Then preview the page effect, a content switch effect is complete, of course, want more personalization, Flexslider provides a rich choice of configuration and callback function can definitely meet the needs of most developers.
Flexslider option settings
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.
This article source: helloweba.com