转换背景色 html,html – CSS转换:淡化背景颜色,重置后
我有一個div列表,并允許我的用戶通過發布新的內容動態添加一個新的。如果用戶發布新內容,我想通過將新div的背景顏色淡化為另一種顏色,并將其淡出,從而在屏幕上突出顯示。我很親近
我正在使用這個CSS來觸發轉換:
.backgroundAnimated{
background-color: #AD310B !important;
background-image:none !important;
-webkit-transition: background-color 5000ms linear;
-moz-transition: background-color 5000ms linear;
-o-transition: background-color 5000ms linear;
-ms-transition: background-color 5000ms linear;
transition: background-color 5000ms linear;
-webkit-animation-direction: alternate; /* Chrome,Safari,Opera */
animation-direction: alternate;
-webkit-animation-iteration-count: 2; /* Chrome,Opera */
animation-iteration-count: 2;
}
我可以褪色到另一種顏色,但它不會退色。我想知道有沒有人有建議來完成這個?我意識到有很多方法可以做到這一點,但我希望將其完全包含在CSS中(除了通過jQuery動態添加CSS類外。
感謝任何建議…
總結
以上是生活随笔為你收集整理的转换背景色 html,html – CSS转换:淡化背景颜色,重置后的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php 在线人数 mysql_PHP+M
- 下一篇: 大数据学情分析_多分学情大数据分析