JQuery plug-in Flexslider implements image rotation and text-based sliding switching. jqueryflexslider

Source: Internet
Author: User

JQuery plug-in Flexslider implements image rotation and text-based sliding switching. jqueryflexslider

FlexsliderIs a jQuery-based content scrolling plug-in. It allows you to easily create the scrolling Effect of content, with very high customization. Developers can use Flexslider to easily create a variety of image carousel effects, focus chart effects, and text-and-image mixed scrolling effects.

Download source code

Flexslider has the following features:
Supports sliding and fade-in and fade-out effects.
Supports horizontal and vertical sliding.
Supports keyboard direction keys.
Supports touch slide.
Supports text/Text mixing and various html elements.
Adaptive screen size.
The number of sliding units can be controlled.
More options and callback functions.

HTML
First, load the jquery library file and Flexslider plug-in the page head, as well as the basic css style files required by 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></li>  </ul> </div> 

We used. flexslider is used to include all the content elements that need to be rolled, and then the <ul class = "slides"> class is very critical, and the internal scrolling content is targeted. slides, and add any html elements, including images and text, to <li>.

JQuery
Calling the Flexslider plug-in is very simple. Use the following code:

$(function() {  $(".flexslider").flexslider(); }); 

Then preview the webpage effect, and a content switching effect will be completed. Of course, if you want more personalized settings, flexslider provides a wide range of options and callback functions to meet the needs of most developers.

Flexslider option settings

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.