Home > Web Front-end > JS Tutorial > body text

jQuery plug-in slick implements responsive mobile slideshow image switching effects_jquery

WBOY
Release: 2016-05-16 16:04:37
Original
1259 people have browsed it

jQuery responsive mobile slideshow image switching special effects plug-in slick, based on jQuery, is very powerful and supports left and right button switching, dot switching, custom switching number, custom switching speed, and image preset Loading and supporting automatic playback definitions, the effect is very good, many parameter customization support, if you think it is possible, you can refer to their parameter configuration, it is still worth learning and using.

Usage:

1. Load plug-ins and jQuery

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> 
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> 
<script type="text/javascript" src="slick/slick.js"></script> 
<link rel="stylesheet" type="text/css" href="slick/slick.css"/> 
Copy after login

2.HTML content

<div class="slider fade"> 
<div><div class="image"><img src="img/fonz1.png"/></div></div> 
<div><div class="image"><img src="img/fonz2.png"/></div></div> 
<div><div class="image"><img src="img/fonz3.png"/></div></div> 
</div> 
Copy after login

3. Function call

<script type="text/javascript"> 
$(document).ready(function() { 
  $('.fade').slick({ 
    dots: true, 
    infinite: true, 
    speed: 500, 
    fade: true, 
    slide: 'div', 
    cssEase: 'linear' 
  }); 
}); 
</script> 
Copy after login

View DEMO Download now

The above is the entire content of this article, I hope you all like it.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template