potrzebuję zrobić latające elementy w tle z różnymi trajektorami.Path plugin(https://github.com/weepy/jquery.path) w jquery robi robotę ,ale obiekt po dotarciu do krawędzi w niewyjaśniony sposób się zmniejsza a ja potrzebuję ,żeby po prostu przeleciał dalej.
Ktoś może pracował na tym pluginie i spotkał się z czymś takim lub może polecić jakieś inne rozwiązanie?
var $screen_height = screen.height, $screen_width = (screen.width+100); setInterval(function(){ $(".gray_bird_4").animate({ path : new $.path.bezier({ start: { x: 0, //here is where you put your start X coordinate y: 0, //here is where you put your start Y coordinate angle: 72.594 }, x:$screen_width,//end X coordinate y:410, //end Y coordinate angle: -60, angle: 133.366, length: 0.25 } }) },9000,"linear",function(e){ }); },2000);
Live: http://marli.sry.pl/me/lifestudio/exampl.html
pozdrawiam