I am using latest JQuery version 3.0 animate method to animate SVG Circle element. This is working fine in JQuery-2.2.4. Firefox only have this console issue.
var fx = {
_animateCircle: function (element, delayInterval) {
var radius = element.attr("r");
var box = $(element)[0].getBoundingClientRect(),
centerX = box.left + (box.width / 2),
centerY = box.top + (box.height / 2);
var scaleVal;
element.delay(delayInterval).each(function () { }).animate({
r: radius
}, {
duration: 700,
step: function (now) {
scaleVal = now;
$(element)[0].setAttribute("r", scaleVal);
}
});
}
}
fx._animateCircle($("circle"), 500)
Any one advise me on this.
Thanks, Bharathi