第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

怎么做那個導(dǎo)航欄 首頁文章頁,border-bottom 的向左向右消失,顯示的過渡效果呢

怎么做那個導(dǎo)航欄 首頁文章頁,border-bottom 的向左向右消失,顯示的過渡效果呢

正在回答

2 回答

直接上代碼吧:


HTML:

????????????????<div?id="banner">
			<div?class="inner">
				<h1?class="banner-title">西風(fēng)博客
				<span?class="line?line-top"></span>
				<span?class="line?line-bottom"></span>
				</h1>
				<div?class="sub-heading">Lorem?ipsum?dolor?sit?amet,?consectetur?adipisicing?elit.?</div>
				<button>了解我</button>
				<div?class="more">
					更多
					<i?class="icon-angle-down?icon-2x"></i>
					<!--?<p><i?class="icon-angle-down?icon-2x"></i></p>?-->
				</div>
				
			</div>
		</div>

CSS:

#banner?.inner{
	max-width:?300px;
	text-align:?center;
	margin:?0?auto;
	position:?relative;
	top:?160px;
	color:#fff;
}

.banner-title{
	position:?relative;
	height:?38px;
	line-height:?38px;
	padding:?10px?0;
	border-top:?2px?solid?#ddd;
	border-bottom:?2px?solid?#ddd;?

}

.banner-title?.line{
	display:?block;
	position:?absolute;
	background:?none;
	background-color:?#fff;
}
@keyframes?left-right{
	0%,30%{
		width:?0;
	left:?-100px;
	}
	100%{
		width:?100%;
		left:0;
	}
}
@keyframes?right-left{
	0%,30%{
		width:?0;
	right:?-100px;
	}
	100%{
		width:?100%;
		right:0;
	}
}
.banner-title?.line-top{
	height:?2px;
	width:?100%;
	top:?-2px;
	animation:left-right?1s?ease;
}?

.banner-title?.line-bottom{
	width:?100%;
	height:?2px;
	bottom:?-2px;
	animation:right-left?1s?ease;
}


0 回復(fù) 有任何疑惑可以回復(fù)我~

用css3的transition吧。

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
CSS3扁平化博客之文章頁及常用組件
  • 參與學(xué)習(xí)       36309    人
  • 解答問題       54    個

又一波 CSS3扁平化博客

進(jìn)入課程

怎么做那個導(dǎo)航欄 首頁文章頁,border-bottom 的向左向右消失,顯示的過渡效果呢

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號