[jQuery] [SVG] change position without animation
I need to change the position for a group as reaction for a mouse movement so i wrote this
- this.dragged.attr('transform').baseVal.getItem(0).setTranslate(x, y)
but this does not integrate well with the animation
- this.dragged.animate({svgTransform:'translate('+(-x)+' '+(-y)+')'},delay)
i do later. I know that the frist may be not the best way to go so any hint is apreciated!