怎么制作焦点幻灯轮播大图js特效

发布时间:2022-02-28 10:01:24 作者:小新
来源:亿速云 阅读:171

这篇文章给大家分享的是有关怎么制作焦点幻灯轮播大图js特效的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

Html部分:

<!doctype html>

<html lang="zh">

<head>

         <meta charset="UTF-8">

         <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

         <meta name="viewport" content="width=device-width, initial-scale=1.0">

         <title>焦点幻灯轮播大图js特效</title>

         <meta name="keywords" content="焦点幻灯轮播大图js特效" />

    <meta name="description" content="焦点幻灯轮播大图js特效" />

         <link rel="stylesheet" type="text/css" href="css/style.css">

</head>

<body>    

                  

                   <!-- <div class="container"> -->

                            <div class="content" style="width:1000px;height:300px;margin:30px auto;overflow:hidden;">

                                     <div id="slider">

                                               <a href="#"><img src="img/demo1.jpg"/></a>

                                               <a href="#"><img src="img/demo2.jpg"/></a>

                                               <a href="#"><img src="img/demo3.jpg"/></a>

                                              <a href="#"><img src="img/demo4.jpg"/></a>

                                               <a href="#"><img src="img/demo5.jpg"/></a>

                                               <a href="#"><img src="img/demo6.jpg"/></a>

                                     </div>

                            </div>

                   <!-- </div> -->

                  

        

        

         <script src="js/jquery-1.10.2.js"></script>

         <script>window.jQuery || document.write('<script src="js/jquery-1.11.0.min.js"><\/script>')</script>

         <script type="text/javascript" src="js/vmc.slider.full.min.js"></script>

         <script type="text/javascript">

                   $(function() {

                            $('#slider').vmcSlider({

                                     width: 1000,

                                     height: 300,

                                     gridCol: 10,

                                     gridRow: 5,

                                     gridVertical: 20,

                                     gridHorizontal: 10,

                                     autoPlay: true,

                                     ascending: true,

                                     effects: [

                                               'fade', 'fadeLeft', 'fadeRight', 'fadeTop', 'fadeBottom', 'fadeTopLeft', 'fadeBottomRight',

                                               'blindsLeft', 'blindsRight', 'blindsTop', 'blindsBottom', 'blindsTopLeft', 'blindsBottomRight',

                                               'curtainLeft', 'curtainRight', 'interlaceLeft', 'interlaceRight', 'mosaic', 'bomb', 'fumes'

                                     ],

                                     ie6Tidy: false,

                                     random: false,

                                     duration: 2000,

                                     speed: 900

                            });

                   });

         </script>

</body>

</html>

CSS部分:

h4{ text-align: center; color:#828282 }

body{ background-color:#2D2D2D}

.vui-slider {

         position:relative;

         overflow:hidden;

         background:#999;

}

.vui-slider .vui-items {

         overflow:hidden;

         width:100%;

         height:100%;

}

.vui-slider .vui-item {

         display:none;

         position:absolute;

         top:0;

         left:0;

         width:100%;

         height:100%;

}

.vui-slider .vui-item a,

.vui-slider .vui-item img {

         display:block;

         padding:0;

         margin:0;

         border:none;

}

.vui-slider .vui-buttons {

         position:absolute;

         z-index:5;

         bottom:16px;

         left:50%;

         float:left;

         display:inline;

         filter:alpha(Opacity=80);

         -moz-opacity:0.8;

         opacity: 0.8;

}

.vui-slider .vui-button {

         float:left;

         display:inline;

         overflow:hidden;

         height:12px;

         width:12px;

         margin:0 10px;

         padding:0;

         border:none;

         border-radius:6px;

         background:#FFF;

         cursor:pointer;

}

.vui-slider .vui-button-cur {

         background-color:#C00;

}

.vui-slider .vui-transfer {

         display:none;

         position:absolute;

         top:0;

         left:0;

         width:100%;

         height:100%;

         z-index:3;

}

.vui-slider .vui-prev {

         position:absolute;

         top:50%;

         left:0;

         z-index:5;

         width:60px;

         height:150px;

         margin-top:-75px;

         border-radius:0 10px 10px 0;

         background:url(prev.gif) no-repeat;

         cursor:pointer;

         filter:alpha(opacity=30);

         -moz-opacity:0.3;

         -khtml-opacity:0.3;

         opacity:0.3;

         transition:0.5s ease;

         -o-transition:0.5s ease;

         -webkit-transition:0.5s ease;

}

.vui-slider .vui-next {

         position:absolute;

         top:50%;

         right:0;

         z-index:5;

         width:60px;

         height:150px;

         margin-top:-75px;

         border-radius:10px 0 0 10px;

         background:url(next.gif) no-repeat;

         cursor:pointer;

         filter:alpha(opacity=30);

         -moz-opacity:0.3;

         -khtml-opacity:0.3;

         opacity:0.3;

         transition:0.5s ease;

         -o-transition:0.5s ease;

         -webkit-transition:0.5s ease;

}

.vui-slider .vui-sidebutton-hover {

         filter:alpha(opacity=40);

         -moz-opacity:0.4;

         -khtml-opacity:0.4;

         opacity:0.4;

         background-color:#000;

}

感谢各位的阅读!关于“怎么制作焦点幻灯轮播大图js特效”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

推荐阅读:
  1. JS特效轮播图
  2. js焦点轮播图(网摘)

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

js

上一篇:怎么利用canvas画布制作逼真的水滴特效

下一篇:Java中的惰性评估是什么及怎么实现

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》