Css marquee like效果有时会闪烁。动画并不像我们预期的那样平滑。它有时会卡住。我尝试了diff stackoverflow帖子上提供的解决方案,但这对我没什么帮助。
http://codepen.io/anon/pen/vmLGXJ
.marquee {
width: 100%;
line-height: 50px;
background-color: red;
color: white;
white-space: nowrap;
overflow: hidden;
box-sizing: border-box;
}
.marquee p {
display: inline-block;
padding-left: 100%;
-webkit-backface-visibility: hidden;
-webkit-transform-style: preserve-3d;
animation: marquee 15s linear infinite;
}
@keyframes marquee {
from { transform: translate(0, 0); }
100% { transform: translate(-100%, 0); }
}
答案 0 :(得分:0)
animation: marquee 15s linear infinite; // you can change the time like 15s to 50s
答案 1 :(得分:0)
尝试写
rendered="#{sidebarController.isGrantedAcess("Admin")}
您也可以尝试使用所有前缀,-moz-和-webkit -