-1
I found a jsfiddle with a working pulsating circle (jQuery 1.8.5 edge)Создание пульсирующей окружности
Моего кода является excactly то же самое.
function addCircle() {
//var rad = $(window).width();
var $circle = $('<div class="circle"></div>');
$circle.animate({
'width': '300px',
'height': '300px',
'margin-top': '-150px',
'margin-left': '-150px',
'opacity': '0'
}, 4000, 'easeOutCirc');
$('body').append($circle);
setTimeout(function __remove() {
$circle.remove();
}, 4000);
}
addCircle();
setInterval(addCircle, 1200);
Он не работает с JQuery 1.11.x консоль ошибок просто:
jquery.min.js:4 Uncaught TypeError: undefined is not a function
The same jsfiddle with the latest jquery (1.11.0)
Что я должен изменить? Благодаря!