Home >Web Front-end >JS Tutorial >jQuery plug-in slick implements responsive mobile slideshow image switching effects_jquery

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 16:04:371352browse

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"/> 

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> 

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> 

View DEMO Download now

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

Statement:
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