var biggeranimation = document.createElementNS('http://www.w3.org/2000/svg', 'animate'); biggeranimation.setAttribute('xlink:href', '#boomcirc'); biggeranimation.setAttribute('attributeName', 'r'); biggeranimation.setAttribute('values', '1;30'); biggeranimation.setAttribute('dur', '2s'); biggeranimation.setAttribute('repeatCount', '1'); document.getElementById('boomie').appendChild(biggeranimation); It is necessary to add animation using JavaScript like this ... Add an element on which actions are performed, it turned out, but it is not animated. What's the catch?
setAttributeNS(null, …). - Surfin Bird