Update funtions for SVG animations