-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