jQuery滑块插件Divas Slider

所属分类:媒体-滑块和旋转

 43978  351  查看评论 (4)
分享到微信朋友圈
X
jQuery滑块插件Divas Slider ie兼容10

======以下内容由会员 只看不发了 提供============

1.引入样式表

<link rel="stylesheet" type="text/css" media="screen" href="css/CSSreset.min.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/divas_instructions_style.css" />
<link id="skin" rel="stylesheet" type="text/css" media="screen" href="css/divas_free_skin.css" />

2.引入js

<script type="text/javascript" src="js/jquery.divas-1.0.min.js"></script>
<script type="text/javascript">
	$(document).ready(function()
	{
		$("#slider").divas({
			slideTransitionClass: "divas-slide-transition-left",
			titleTransitionClass: "divas-title-transition-left",
			titleTransitionParameter: "left",
			titleTransitionStartValue: "-999px",
			titleTransitionStopValue: "0px",
			wingsOverlayColor: "rgba(0,0,0,0.6)"  //设置两侧遮罩层透明度
		});
	});
</script>

3.html部分

<section id="slider_wrapper">
	<div id="slider" class="divas-slider">
		<ul class="divas-slide-container">
           <li class="divas-slide"><img src="images/placeholder.gif" alt="" data-src="images/slider/img1.jpg" data-title="<h1>Divas Slider</h1><p>Title is visible only if you use the attribute 'data-title' of your image</p>"/></li>
           <li class="divas-slide"><img src="images/placeholder.gif" alt="" data-src="images/slider/img2.jpg" data-title="<h1>Divas Slider</h1><p>Gives you the full freedom of clickable images</p>" /></li>
           <li class="divas-slide"><img src="images/placeholder.gif" alt="" data-src="images/slider/img4.jpg" data-title="<h1>Divas Slider</h1><p>Images use lazy loading via deferred object</p>"/></li>
           <li class="divas-slide"><img src="images/placeholder.gif" alt="" data-src="images/slider/img3.jpg" data-title="<h1>Divas Slider</h1><p>You can style it as you wish via CSS</p>"/></li>
           <li class="divas-slide"><img src="images/placeholder.gif" alt="" data-src="images/slider/img5.jpg" data-title="<h1>Divas Slider</h1><p>Uses CSS3 transitions or jQuery.animate() as a fallback</p>" /></li>
           <li class="divas-slide"><img src="images/placeholder.gif" alt="" data-src="images/slider/img6.jpg" data-title="<h1>Divas Slider</h1><p>You can set up almost any slider style your desire</p>" /></li>
           <li class="divas-slide"><img src="images/placeholder.gif" alt="" data-src="images/slider/img7.jpg" data-title="<h1>Divas Slider</h1><p>Gives you extensive documentation and friendly support</p>" /></li>
	    </ul>
	    <div class="divas-navigation">
	        <span class="divas-prev">&nbsp;</span>
	        <span class="divas-next">&nbsp;</span>
	    </div>
        <div class="divas-controls">
        	<span class="divas-start"><i class="fa fa-play"></i></span>
	        <span class="divas-stop"><i class="fa fa-pause"></i></span>
        </div>
	</div>
</section>
相关插件-滑块和旋转

轮播切换图片

随箭头点击,四张图片动态移动
  滑块和旋转
 38236  498

animation滑动组件

可拖动滑块选择区间
  滑块和旋转
 31181  312

移动端左右滑动插件

移动端左右滑动插件
  滑块和旋转
 58405  398

jQuery 3d旋转木马

使用TweenMax创造3d旋转木马,它在Chrome或Safari效果最好,然后FF.
  滑块和旋转
 55248  449

讨论这个项目(4)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

    释放 0
    2018/12/13 17:31:24
    可以显示五张图片吗? 回复
    王瑞平 0
    2016/2/18 16:02:03
    $("#slider").divas({	                                       
        start: "auto",	                                       
        slideInterval: 1000	                                      
    });

    加上这个属性后可以自动播放,但是设置这个后,点击上一页和下一页的按钮就没有效果了

    回复
    YG。 0
    2015/10/22 16:10:33

    哪个属性可以自动轮播啊?  看到回复一下好吗 !  谢谢亲!

    回复
    七杀梦魇 0
    2014/11/14 7:11:45
    能自动滚动就更好了 回复
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复