Я создал простую анимированную волнистую линию для использования в качестве разделителя на одном из моих веб-сайтов. В сафари выглядит идеально, но в Chrome выглядит странно.
Вот скриншот сафари: ![enter image description here](https://i.stack.imgur.com/eECYR.png)
Вот скриншот Chrome: ![enter image description here](https://i.stack.imgur.com/91TTI.png)
Сафари идеально подходит для меня, но кажется, что хром не нравится.
Я пытался добавить ВСЕ префиксы поставщиков в начало селекторов и различных мест, но я не могу решить эту проблему.
Может кто-нибудь сказать, пожалуйста, где я иду не так?
Вот CODEPEN и вот фрагмент кода:
.wavy-line {
width: 150px;
height: 50px;
overflow: hidden;
margin: 0 auto 0 auto;
}
.wavy-line:before {
content: attr(data-text);
position: relative;
top: -35px;
color: rgba(0,0,0,0);
width: calc(100% + 27px);
font-size: 4em;
text-decoration-style: wavy;
text-decoration-color: #25173A;
text-decoration-line: underline;
animation: animate .9s linear infinite;
-webkit-animation: animate .9s linear infinite;
}
@keyframes animate {
0% { left: -0px; }
100% { left: -30px;}
}
@-webkit-keyframes animate {
0% { left: -0px; }
100% { left: -30px;}
}
.wavy-line-green:before { text-decoration-color: #56AE5F; }
.wavy-line-blue:before { text-decoration-color: #1FB5D1; }
.wavy-line-yellow:before { text-decoration-color: #F9B930; }
<div class="wavy-line wavy-line-green" data-text="xxxxxxxxxxxxxx"></div>
<div class="wavy-line wavy-line-blue" data-text="xxxxxxxxxxxxxx"></div>
<div class="wavy-line wavy-line-yellow" data-text="xxxxxxxxxxxxxx"></div>