所以我知道選取框動畫就像是完全1999年,但我真的需要爲我的項目滾動文本。爲什麼我的CSS3選框動畫重新啓動?
基本上,我有一個文本,應該瀏覽器窗口(視口?)一路滾動,並在整個重新開始之前一路重新開始之前一路屏蔽。一個簡單的選取框。但是,當我加載頁面時,文本只會滾動頁面的一部分,然後在沒有完成滾動的情況下重置爲開頭。
這裏是我的代碼(鏈接文本是從早期的問題,我遇到了,但已經解決了。)
a {
\t margin: auto;
text-decoration: none;
\t -webkit-animation: marquee 10s linear infinite;
\t }
@-webkit-keyframes marquee {
\t 0% { -webkit-transform: translateX(1500px) }
\t 100% { -webkit-transform: translateX(-500px) }
\t }
<!DOCTYPE html>
<html>
<head>
</head>
<body>
\t \t <a href="www.nytimes.com">It looks like each element is running into the next because they are all separate objects and each one subtracts
a certain amount of space from the total width, causing the others behind it to move faster.</a>
\t
</body>
</html>
我試圖改變的元素的定位性能和動畫的持續時間,但似乎沒有給我我非常渴望的結果?
我剛剛運行你的代碼,它工作正常。我不明白你的問題 – 2015-10-16 22:05:54