jquery plug-in Flexslider to achieve picture carousel, graphics and text combined with sliding switching effect _jquery

Source: Internet
Author: User
Tags jquery library

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

Related Article

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.