JQuery 大图轮播还有遮罩效果

这篇博客分享了一种在微信大屏幕上看到的大图轮播效果,通过JQuery实现,并带有遮罩。作者提取了代码,供读者参考和使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

效果如下图:

 Html:

    <!DOCTYPE html>  
    <html xmlns=" http://www.w3.org/1999/xhtml" xml:lang="en">  
    <head>  
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">  
    <title>jquery中的大图轮播还有遮罩效果</title>  
    <script src=" http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>  
    </head>  
    <body>  
    <script type="text/javascript" src="http://wxscreen.alltosun.net/js/jquery.carouFredSel-6.2.1-packed.js"></script>  
    <script>  
    $(function(){   
      $('.case-list li:nth-child(3n)').css('marginRight', 0);  
        
      //顶部轮播  
      $('#caseList3,#caseLeft3, #caseRight3').mouseover(function(){  
        $('#caseLeft3, #caseRight3').css({ opacity:'1',zIndex:'10' });  
      }).mouseout(function(){  
        $('#caseLeft3, #caseRight3').css({ opacity:'0',zIndex:'-10' });  
      });  
      $('#caseList3').carouFredSel({  
        direction:"left",  
        //width: '260',  
        circular:true,  
        prev: '#caseLeft3',  
        next: '#caseRight3',  
        pagination  : {  
            container: "#casePager3",  
            anchorBuilder: false  
        },  
        items: {  
          visible: 1,  
          width: 900,  
          height: 518  
        },  
        scroll:{  
          items:1
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值