我已經做了一個CSS動畫,將文本動畫給它一個閃耀的效果。該效果目前僅適用於水平。我想知道是否有一種方法可以改變動畫的方向,使其看起來像一個現實的對角線閃耀?有沒有辦法使CSS動畫對角工作?
這裏是我當前的代碼:
h1 {
font-family: 'BebasRegular', sans-serif;
font-size: 150px;
padding-bottom: 100px;
padding-top: 50px;
background: #E9AB17 -webkit-gradient(linear, left top, right top, from(#e8a917), to(#f4b011), color-stop(0.5, #fff)) 0 0 no-repeat;
-webkit-background-size: 155px;
color: rgba(255, 255, 255, 0.1);
-webkit-background-clip: text;
-webkit-animation-name: shine;
-webkit-animation-duration: 5s;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes shine
{
0%
{
background-position: top left;
}
28%,100%
{
background-position: top right;
}
}
感謝您的幫助我熟悉的,真是又感激。 – fabregilkas 2013-05-14 23:38:09