我知道可能我有错误的东西!但是什么?动画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