Home > Article > Web Front-end > jQuery realizes the special effect of fading in and out of small pictures when clicking on them to display large pictures_jquery
Share a click-to-fade display image effect based on jQuery . This is a picture switching special effects code based on jQuery CSS3 to achieve cool effects. The rendering is as follows:
Online preview Source code download
html code:
<center><p style="color:#334960">点击图标进行展示</p></center> <div class="main"> <div id="coolShow"></div> <div id="handBar"></div> </div> <script type="text/javascript"> /*定义需要展示的图片以及图片的展示时间*/ $(document).ready(function () { $('#coolShow').coolShow({ imgSrc: ['images/1.png', 'images/2.png', 'images/3.png'], speed: 40 }); }); </script>