0
我是CSS新手,仍然沒有得到很多東西!使用只有 CSS動畫我必須創建一個輪盤上的旋轉動畫。我必須創建一個球體和作爲背景使用輪盤賭img。我的問題是,如何改變每10%動畫的球體位置,以便圍繞輪盤旋轉一圈。 這是我使用爲背景的IMG:http://www.casinoanswers.com/wp-content/uploads/2010/03/american-roulette-wheel.gif如何使用css更改球體加班位置
HTML:
<div id="roulette">
<figure class="circle"></figure>
</div>
CSS:
#roulette{
background-image: url("american-roulette-wheel.gif");
width:395px;
height:400px;
margin:0;
}
.circle {
position:fixed;
top:84px;
left:190px;
border-radius: 50%;
height: 30px;
width: 30px;
margin:0;
background: radial-gradient(circle at 10px 10px, #5cabff, #000);
}
謝謝!
http://jsfiddle.net/raving/e2tt2mao/ – BeNdErR