做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當(dāng)前位置: 首頁(yè) - 科技 - 知識(shí)百科 - 正文

如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼)

來(lái)源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-27 18:47:30
文檔

如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼)

如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼):本篇文章給大家?guī)?lái)的內(nèi)容是關(guān)于如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼),有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)你有所幫助。效果預(yù)覽源代碼下載https://github.com/comehope/front-end-daily-challenges/tree/m
推薦度:
導(dǎo)讀如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼):本篇文章給大家?guī)?lái)的內(nèi)容是關(guān)于如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼),有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)你有所幫助。效果預(yù)覽源代碼下載https://github.com/comehope/front-end-daily-challenges/tree/m
本篇文章給大家?guī)?lái)的內(nèi)容是關(guān)于如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼),有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)你有所幫助。

效果預(yù)覽

703328925-5b19b87fe6507_articlex.png

源代碼下載

https://github.com/comehope/front-end-daily-challenges/tree/master/016-colorful-gradient-animated-border

代碼解讀

定義 dom,一個(gè)容器中包含一些文字:

<div class="box">
 you are my<br>
 FAVORITE
</div>

居中顯示:

html,
body,
.box {
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
}

設(shè)置頁(yè)面背景色:

body {
 background: #222;
}

設(shè)置容器和文字樣式:

.box {
 color: white;
 font-size: 2.5em;
 width: 10em;
 height: 5em;
 background: #111;
 font-family: sans-serif;
 line-height: 1.5em;
 text-align: center;
 border-radius: 0.2em;
}

用偽元素增加一個(gè)背板:

.box {
 position: relative;
}

.box::after {
 content: '';
 position: absolute;
 width: 102%;
 height: 104%;
 background-color: orange;
 z-index: -1;
 border-radius: 0.2em;
}

把背板設(shè)置為漸變色的:

.box::after {
 /*background-color: orange;*/
 background-image: linear-gradient(60deg, aquamarine, cornflowerblue, goldenrod, hotpink, salmon, lightgreen, sandybrown, violet);
}

為背板設(shè)置動(dòng)畫效果:

.box::after {
 background-size: 300%, 300%;
 animation: animate_bg 5s ease infinite alternate;
}

@keyframes animate_bg {
 0% {
 background-position: 0%, 50%;
 }

 50% {
 background-position: 100%, 50%;
 }

 100% {
 background-position: 0%, 50%;
 }
}

最后,再為文字增加變色效果:

.box {
 animation: animate_text 2s linear infinite alternate;
}

@keyframes animate_text {
 from {
 color: lime;
 }

 to {
 color: yellow;
 }
}

大功告成!

聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼)

如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼):本篇文章給大家?guī)?lái)的內(nèi)容是關(guān)于如何使用CSS實(shí)現(xiàn)漸變色動(dòng)畫邊框的效果(附代碼),有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)你有所幫助。效果預(yù)覽源代碼下載https://github.com/comehope/front-end-daily-challenges/tree/m
推薦度:
標(biāo)簽: 如何用 使用 顏色
  • 熱門焦點(diǎn)

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 宿松县| 婺源县| 新竹县| 临沧市| 齐河县| 西丰县| 江华| 淮南市| 镇巴县| 安溪县| 新丰县| 东乡县| 临猗县| 柳河县| 新营市| 林州市| 金乡县| 盐边县| 当涂县| 丰城市| 大余县| 宁陵县| 正镶白旗| 罗江县| 榕江县| 恩平市| 丹阳市| 宁国市| 临沂市| 宁安市| 射阳县| 深州市| 扎赉特旗| 丰原市| 施秉县| 筠连县| 时尚| 普洱| 化州市| 凌源市| 兴化市|