可关闭缩放展开的底部浮动广告特效

广告简介

打开网页后在底部会显示横向的广告图像,可以点击缩放关闭,关闭后也可预留在左侧底部的位置上,效果非常不错,这里推荐给大家。

广告图片

H545f7ebd99ed4587b8b4aad7091ddfc81

CSS


    *{ margin:0; border:0;}  
      
    .fix-bottombottom-container{  
        width: 100%;  
        height: 222px;  
        position: fixed;  
        bottombottom: 0;  
        left: 0;  
        z-index: 999;  
        background: url(“../images/AprilFools’DayBanner.png”) center no-repeat;  
    }  
    .fix-bottombottom-container .close-icon{  
        width: 24px;  
        height: 25px;  
        position: absolute;  
        top: 100px;  
        rightright: 50%;  
        margin-right: –590px;  
        cursor: pointer;  
        -webkit-transition: -webkit-transform .3s;  
        -moz-transition: -moz-transform .3s;  
        -ms-transition: -ms-transform .3s;  
        -o-transition: -o-transform .3s;  
        transition: transform .3s;  
        background: url(“../images/close-afd-icon.png”) center no-repeat;  
    }  
    .fix-bottombottom-container .close-icon:hover{  
        -webkit-transform: rotate(180deg);  
        -moz-transform: rotate(180deg);  
        -ms-transform: rotate(180deg);  
        -o-transform: rotate(180deg);  
        transform: rotate(180deg);  
    }  
      
      
    .fix-bottombottom-pack{  
        width: 155px;  
        height: 130px;  
        position: fixed;  
        left: –155px;  
        bottombottom: 0;  
        cursor: pointer;  
        z-index: 999;  
        background: url(“../images/AprilFools’DayMini.png”) left no-repeat;  
    }  
      
      
    .xcx-ad-container{  
        width: 100%;  
        height: 130px;  
        position: fixed;  
        bottombottom: 0;  
        left: 0;  
        z-index: 999;  
        background: url(../images/xcx-ad-bg.png) center no-repeat;  
    }  
      
    .xcx-ad-container .close-ico{  
        width: 26px;  
        height: 26px;  
        position: absolute;  
        top: 15px;  
        rightright: 50%;  
        margin-right: –575px;  
        cursor: pointer;  
        -webkit-transition: -webkit-transform .3s;  
        -moz-transition: -moz-transform .3s;  
        -ms-transition: -ms-transform .3s;  
        -o-transition: -o-transform .3s;  
        transition: transform .3s;  
        background: url(../images/xcx-ad-close-ico.png) center no-repeat;  
    }  
    .xcx-ad-container .close-ico:hover{  
        -webkit-transform: rotate(180deg);  
        -moz-transform: rotate(180deg);  
        -ms-transform: rotate(180deg);  
        -o-transform: rotate(180deg);  
        transform: rotate(180deg);  
    }  
      
    .xcx-ad-container .more{  
        position: absolute;  
        rightright: 50%;  
        margin-right: –466px;  
        top: 60px;  
        width: 108px;  
        height: 28px;  
        line-height: 28px;  
        border: 2px solid #01bafe;  
        border-radius: 20px;  
        color: #fff;  
        font-size: 14px;  
        text-align: center;  
        background: #01a8fe;  
    }  
    .xcx-ad-container .more-two{  
        position: absolute;  
        rightright: 42%;  
        margin-right: –320px;  
        top: 50px;  
        width: 100px;  
        height: 28px;  
        line-height: 28px;  
        border-radius: 5px;  
        color: #fff;  
        font-size: 14px;  
        text-align: center;  
        text-decoration: none;  
        background: #fd3dce;  
        border: 2px solid #fd3dce;  
    }  
    .xcx-ad-container .more-two i{  
        display: inline–block;  
        width: 17px;  
        height: 17px;  
        background: url(“../images/ej-ico.png”) no-repeat;  
        vertical-align: middle;  
        margin-right: 6px;  
    }  
    .xcx-ad-back{  
        width: 144px;  
        height: 130px;  
        left:0;  
        position: fixed;  
        bottombottom: 0;  
        cursor: pointer;  
        z-index: 998;  
        background: url(../images/xcx-left–float-bg.png) left no-repeat;  
    }  

 

JS


    function target_dis(){  
        var  target=document.getElementById(“xcx-ad”);  
        target.style.display=“none”;  
        }  
    function target_disa(){  
        var  target=document.getElementById(“xcx-ad”);  
        target.style.display=“block”;  
        }  

 

HTML


    <div id=“xcx-ad” class=“xcx-ad-container”>  
           <div id=“close-ad” class=“close-ico” onclick=“target_dis();” ></div>  
           <a class=“more-two” target=“_blank” href=“https://www.sbkko.com/”>查看详情</a>  
    </div>  
    <div id=“xcx-ad-back” class=“xcx-ad-back” onclick=“target_disa();” ></div>  

 

声明: 1、本站所有文章仅供参考,如有侵权 请联系我们删除 meng#yimiaonet.com #换成@ 2、文章大部分源自网络或ai生成,文章不作为任何依据,仅供参考。 3、本站的所有源码都是在网络上转载或由用户投稿,仅供参考学习使用,请您务必在下载后24小时内删除。 4、本站下载的所有源码等内容不得用于任何违反相关法律法规的用途,一经发现 我们立即向有关部门报备。 5、### 本站除商业栏目外 其他资源均来自于网络或用户投稿,如有侵权 请及时联系我们删除,感谢您的支持与理解,让我们一起支持创作者权益。 6、如果您需要商用,可以联系客服定制开发或购买商业源码栏目内的内容,当然也可以联系部分源码的原作者;我们最终一切版权。 7、您注册本站会员后,如果需要注销账号等适宜,请联系客服。