Das Animieren der Hintergrundposition funktioniert in jQuery 1.4.4, jedoch nicht in 1.7.2

Ich bin auf ein Problem gestoßen.

Ich habe ein Drehbuch, an dem ich bastele. Alles läuft gut, aber nur auf jQuery 1.4.4. Wenn ich eine Version hochziehe, sagen wir die neueste (1.7.2), wird das Skript nicht ausgeführt. Was gibt?!

<code>var bouncespeed = 450;

function bounce(currentA) {
    newx = Math.floor(10 * Math.random());
    newy = Math.floor(3 * Math.random());
    newspeed = bouncespeed + Math.floor(10 * Math.random());
    $(currentA).animate({
        backgroundPosition: newx + 'px ' + newy + 'px'
    }, newspeed, 'linear', function() {
        bounce(currentA);
    });
}

$('.bubble').each(

function() {
    $(this).css({
        backgroundPosition: '5px 5px'
    });
    bounce(this);
});
</code>

Spielzeit !:http://jsfiddle.net/mdecler/rgBeW/2/

Antworten auf die Frage(1)

Ihre Antwort auf die Frage