2
嗨,大家好,我想做出類似這個網站的菜單:http://tommasoraspo.com/creativepartners/DesignLovers/index.html動畫容易,容易出懸停在鏈接
但我不知道我怎麼會動畫書籤展現出來時,我一懸停鏈接。我想在使用animate.css(slideInDown動畫),但它只會顯示時懸停結束,但懸停時不會回來。
啓動懸停動畫:
function animationHover(element, animation){
element = $(element);
element.hover(
function() {
element.addClass('animated ' + animation);
},
function(){
//wait for animation to finish before removing classes
window.setTimeout(function(){
element.removeClass('animated ' + animation);
}, 2000);
});
}
這比我想象的要簡單!謝謝! – Jonhz