隨著互聯(lián)網(wǎng)技術(shù)的發(fā)展,目前pc站的特效也越來越多,下面分享一種css3動(dòng)畫實(shí)現(xiàn)banner的一種特效
<html>
<!--在這里插入內(nèi)容-->
<ul class="box">
<li><span> </span>" />

国产精品一区电影_国产男女无遮挡猛进猛出_日本丰满熟妇videossex8k_中文字幕无码乱人伦,久久综合伊人77777麻豆,亚洲最大在线观看,无码人妻久久一区二区三区app

武漢互贏網(wǎng)絡(luò)科技股份有限公司

為企業(yè)創(chuàng)品牌·從營銷型網(wǎng)站建設(shè)開始·互贏懂技術(shù)·更懂品牌營銷

24小時(shí)熱線

159 7210 9576027-89992189

網(wǎng)頁banner的動(dòng)畫實(shí)現(xiàn)

作者:龍 時(shí)間:2018-07-16 瀏覽:

隨著互聯(lián)網(wǎng)技術(shù)的發(fā)展,目前pc站的特效也越來越多,下面分享一種css3動(dòng)畫實(shí)現(xiàn)banner的一種特效

<html>
<!--在這里插入內(nèi)容-->
<ul class="box">
	<li><span>&nbsp;</span></li>
	<li><span>&nbsp;</span></li>
	<li><span>&nbsp;</span></li>
	<li><span>&nbsp;</span></li>
</ul>
</html>
.box li span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
	-webkit-backface-visibility: hidden;
    -webkit-animation: imageAnimation 24s linear infinite 0s;
    -moz-animation: imageAnimation 24s linear infinite 0s;
    -o-animation: imageAnimation 24s linear infinite 0s;
    -ms-animation: imageAnimation 24s linear infinite 0s;
    animation: imageAnimation 24s linear infinite 0s;
}


.box li:nth-child(1) span {
    background-image: url(../images/banner1.jpg);
}
.box li:nth-child(2) span {
    background-image: url(../images/banner2.jpg);
    -webkit-animation-delay: 6s;
    -moz-animation-delay: 6s;
    -o-animation-delay: 6s;
    -ms-animation-delay: 6s;
    animation-delay: 6s;
}
.box li:nth-child(3) span {
    background-image: url(../images/banner3.jpg);
    -webkit-animation-delay: 12s;
    -moz-animation-delay: 12s;
    -o-animation-delay: 12s;
    -ms-animation-delay: 12s;
    animation-delay: 12s;
}
.box li:nth-child(4) span {
    background-image: url(../images/banner4.jpg);
    -webkit-animation-delay: 18s;
    -moz-animation-delay: 18s;
    -o-animation-delay: 18s;
    -ms-animation-delay: 18s;
    animation-delay: 18s;
}
/* Animation for the slideshow images */
@-webkit-keyframes imageAnimation { 
	0% {
	    opacity: 0;
	    -webkit-animation-timing-function: ease-in;
	}
	8% {
	    opacity: 1;
	    -webkit-transform: scale(1.05);
	    -webkit-animation-timing-function: ease-out;
	}
	17% {
	    opacity: 1;
	    -webkit-transform: scale(1.1);
	}
	25% {
	    opacity: 0;
	    -webkit-transform: scale(1.1);
	}
	100% { opacity: 0 }
}
@-moz-keyframes imageAnimation { 
	0% {
	    opacity: 0;
	    -moz-animation-timing-function: ease-in;
	}
	8% {
	    opacity: 1;
	    -moz-transform: scale(1.05);
	    -moz-animation-timing-function: ease-out;
	}
	17% {
	    opacity: 1;
	    -moz-transform: scale(1.1);
	}
	25% {
	    opacity: 0;
	    -moz-transform: scale(1.1);
	}
	100% { opacity: 0 }
}
@-o-keyframes imageAnimation { 
	0% {
	    opacity: 0;
	    -o-animation-timing-function: ease-in;
	}
	8% {
	    opacity: 1;
	    -o-transform: scale(1.05);
	    -o-animation-timing-function: ease-out;
	}
	17% {
	    opacity: 1;
	    -o-transform: scale(1.1);
	}
	25% {
	    opacity: 0;
	    -o-transform: scale(1.1);
	}
	100% { opacity: 0 }
}
@-ms-keyframes imageAnimation { 
	0% {
	    opacity: 0;
	    -ms-animation-timing-function: ease-in;
	}
	8% {
	    opacity: 1;
	    -ms-transform: scale(1.05);
	    -ms-animation-timing-function: ease-out;
	}
	17% {
	    opacity: 1;
	    -ms-transform: scale(1.1);
	}
	25% {
	    opacity: 0;
	    -ms-transform: scale(1.1);
	}
	100% { opacity: 0 }
}
@keyframes imageAnimation { 
	0% {
	    opacity: 0;
	    animation-timing-function: ease-in;
	}
	8% {
	    opacity: 1;
	    transform: scale(1.05);
	    animation-timing-function: ease-out;
	}
	17% {
	    opacity: 1;
	    transform: scale(1.1);
	}
	25% {
	    opacity: 0;
	    transform: scale(1.1);
	}
	100% { opacity: 0 }
}




此時(shí)效果就是:banner圖在實(shí)現(xiàn)透明的變化的時(shí)候,還會(huì)進(jìn)行縮放,放大。。。。

最新動(dòng)態(tài)

常見問題百寶箱

全國服務(wù)熱線

027-89992189

掃一掃關(guān)注微信

Copyright 2013-2020 All Rights Reserved 武漢互贏網(wǎng)絡(luò)科技股份有限公司 鄂ICP備19027860號

獲取品牌營銷方案

快速填寫

馬上獲取

互聯(lián)網(wǎng)低成本創(chuàng)名牌從此開始!

主站蜘蛛池模板: 光山县| 霞浦县| 乐东| 浏阳市| 德江县| 石景山区| 惠东县| 武川县| 贵定县| 盖州市| 安义县| 汉阴县| 凤山市| 栾城县| 新绛县| 凤庆县| 萨迦县| 武胜县| 西贡区| 龙川县| 宁国市| 汝阳县| 原平市| 高淳县| 原阳县| 新丰县| 贵州省| 新和县| 三明市| 自治县| 南华县| 泉州市| 高淳县| 临武县| 张家口市| 永川市| 元朗区| 靖远县| 彭水| 惠水县| 乌拉特中旗|