Html ionic应用程序中的Css动画在iOS模拟器中不起作用
我的应用程序中有一个字幕。它在chrome中工作,但当我在iOS模拟器中启动应用程序时,动画速度要慢得多,无法正常运行 股票代码文本在chrome中从右向左运行并重复 在iOS模拟器中,速度太慢,文本从右侧移动约30px,然后完全停止并再次启动 我犯了什么错 这是我的CSS:Html ionic应用程序中的Css动画在iOS模拟器中不起作用,html,ios,css,ionic-framework,webkit,Html,Ios,Css,Ionic Framework,Webkit,我的应用程序中有一个字幕。它在chrome中工作,但当我在iOS模拟器中启动应用程序时,动画速度要慢得多,无法正常运行 股票代码文本在chrome中从右向左运行并重复 在iOS模拟器中,速度太慢,文本从右侧移动约30px,然后完全停止并再次启动 我犯了什么错 这是我的CSS: @-webkit-keyframes ticker { 0% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0
@-webkit-keyframes ticker {
0% {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
visibility: visible;
}
100% {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
.ticker-wrap {
position: fixed;
top: 0;
width: 100%;
overflow: hidden;
height: 4rem;
background-color: rgba(0, 0, 0, 0.9);
padding-left: 100%;
}
.ticker {
display: inline-block;
height: 4rem;
line-height: 4rem;
white-space: nowrap;
font-family: "Teko", sans-serif;
padding-right: 100%;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-name: ticker;
animation-name: ticker;
-webkit-animation-duration: 20s;
animation-duration: 20s;
}
.ticker__item {
display: inline-block;
padding: 0 2rem;
font-size: 2rem;
color: white;
}
以及HTML:
<div class="ticker-wrap">
<div class="ticker">
<div class="ticker__item">{{lt}}</div>
<div class="ticker__item">{{lt}}</div>
</div>
</div>
{{lt}}
{{lt}}