我知道可能我有錯誤的東西!但是什麼?動畫jQuery不寫正確的CSS屬性
$(".page-splash-page").bind("mousewheel DOMMouseScroll", function(){
$(this).animate({
-webkit-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
-moz-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
}, 1000, function() {
{ window.location.href = "http:..../work/"; }
});
});
$(".page-splash-page").on("click touchstart", function() {
$(this).animate({
-webkit-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
-moz-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
}, 1000, function() {
{ window.location.href = "http:...../work/"; }
});
});
$(".page-splash-page").on("touchmove", function() {
$(this).animate({
-webkit-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
-moz-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both,
}, 1000, function() {
{ window.location.href = "http:..../work/"; }
});
});
對不起,我希望這個功能可以工作,但我不是那麼專業的js或jQuery! 有些可以幫助我!謝謝!
動畫的'animation' ????這只是錯誤的只是添加一個新的類與該動畫,然後超時去window.location – DaniP
http://stackoverflow.com/help/how-to-ask –
對於初學者,你應該看看開發控制檯對於錯誤。 – Pango