2015-04-17 112 views
0

我想使用CSS3動畫將3D跳躍效果添加到跨度。我上傳了一張顯示方向的圖片。CSS3跳躍動畫

我嘗試使用下面的例子,但跨度上下跳動。我需要一個3D跳躍效果。我已經擺弄我的演示here

上傳的圖片是here

HTML

<a class="bounce" href="#">hover me</a> 

CSS

*{ 

    background-color:yellow; 

} 
@-webkit-keyframes bounce { 
    0%, 20%, 50%, 80%, 100% { 
     -webkit-transform: translateY(0); 
    } 
    30% { 
     -webkit-transform: translateY(30px); 
    } 
    100%{ 
     -webkit-transform: translateY(0px); 
    } 
} 
.bounce:hover { 
    -webkit-animation-name: bounce; 
    -moz-animation-name: bounce; 
    -o-animation-name: bounce; 
    animation-name: bounce; 
    -webkit-animation-duration:1s; 
} 
+0

如果我正確地讀這篇文章,從您的樣品圖像,你想跨度在一個圓圈內旋轉 - 這是正確的嗎? – Shaggy

+0

也許看看[animate.css](http://daneden.github.io/animate.css/) – Kerstomaat

+0

改進的語法和格式。 – Mohamad

回答