28行填入
@-webkit-keyframes bird-slow{
0% {background-position-x: -0rem}
100% {background-position-x: -9rem}
}
就可以了
@-webkit-keyframes bird-slow{
0% {background-position-x: -0rem}
100% {background-position-x: -9rem}
}
就可以了
2017-05-05
walk: function() {
return new Promise(function (resolve) {
$boy.addClass("boy-walk");
$boy.transition({"right":"4.5rem"},4000,"linear",function(){
resolve();
})
})
},
return new Promise(function (resolve) {
$boy.addClass("boy-walk");
$boy.transition({"right":"4.5rem"},4000,"linear",function(){
resolve();
})
})
},
2017-04-20
walk: function() {
var dfd = $.Deferred();
$boy.addClass("boy-walk");
$boy.transition({"right":"4.5rem"},4000,"linear",function(){
dfd.resolve();
})
return dfd;
},
var dfd = $.Deferred();
$boy.addClass("boy-walk");
$boy.transition({"right":"4.5rem"},4000,"linear",function(){
dfd.resolve();
})
return dfd;
},
2017-04-20