1
我有代碼至極basicaly的該位定義了一個循環,在過渡期結束旋轉的圖像:http://jsfiddle.net/bolaoch8/k8XtU/1/TweenMax JS轉動不靈預期
$('#avion').css('left', '0%');
var animacionAvion = TweenMax.to($('#avion'), 5, {css:{left:'100%'}, delay:0, repeat:-1, yoyo:true});
setInterval(giraAvion, 5000);
var rotationValue = 180;
function giraAvion()
{
console.log('giraAvion a:', rotationValue);
TweenMax.to($('#avion'), 0.8, {css:{transform:'rotate('+rotationValue+'deg)'}, delay:5});
rotationValue == 180?rotationValue = 0:rotationValue = 180;
}
giraAvion();
只是想知道,爲什麼第二次的圖像旋轉,它做那件奇怪的事...任何想法?
這就是它!它總算解決了它,並且完美地工作! Thansk很多! –