-1
我有這樣的代碼:https://jsfiddle.net/xuj0uu2k/4/移動通過CSS3動畫在相反方向上的兩行
標記
<div class="lline"></div>
<div class="projekt"><h1>SERVICES</h1></div>
<div class="rline"></div>
CSS
@keyframes anima {
from {width: 0%; }
to { width: 40%; }
}
.lline {
margin-top: 20px;
width: 40%;
background-color: #333;
animation-name: anima;
animation-duration:1s;
height: 2px;
float: left; }
.projekt {
text-align: center;
width: 14%;
margin: 0 auto; }
.rline {
margin-top: -38px;
width: 40%;
background-color: #333;
animation-name: anima;
animation-duration:1s;
height: 2px;
float: right; }
我需要兩條線從文本SERVICES
進行動畫它的邊界。
我試圖用animation-direction
屬性來設置它,但它不起作用。線條必須具有響應性,所以我必須使用一些媒體查詢,但如果您知道更好的方式來做到這一點,我會很高興。謝謝
請不要規避質量過濾器。 – BoltClock
謝謝Fabrizio。我需要在相反方向製作動畫,因爲它在示例中有效(不適用於Opera和Safari) – culter
等待重新打開您的問題並請考慮您的下一個問題的@BoltClock建議 – fcalderan