title: How can I move Raphael.js sets to specific locations?
body: <p>If I were animating an individual element with raphael.js <strong>to a specific location</strong>, then I could use the following code that sets the elements <code>x</code> attribute:</p>
  
  <pre><code>elem.animate({x: specific_X_Location}, 1000);
  </code></pre>
  
  <p>but I have found no way to move a <code>set</code> to a specific location.</p>
  
  <p>There are two SO articles:
  <a href="https://stackoverflow.com/questions/4959778/accessing-a-set-inside-a-set-in-raphael-js">accessing a set inside a set in raphael js</a>, and<br>
  <a href="https://stackoverflow.com/questions/8279009/how-is-set-animation-done-in-raphael">How is set animation done in Raphael?</a><br>
  that discuss how to translate a set a given distance (i.e. move the set right by 100, or up by 100) which use transformation or translation, e.g.</p>
  
  <pre><code>var mySet = paper.set();
  mySet.push(...add elements to set);
  mySet.animate({transform: "t100,0"}, 1000); // move my set right by 100
  </code></pre>
  
  <p>but there doesn't seem to be a way to move the whole set to a specific location.</p>
  
  <p>Looking at things in firebug, I guess a set is just an array in the end, which is why is doesn't have <code>x</code> or <code>y</code> attributes.</p>
  
  <p>Is it possible to access any information about the elements of the set without addressing them individually?</p>
  
  <p>In order to transform a set to a specific location, do you think I will have to work out the transformation for a specific element and then apply that movement to the whole set? Or is there a better way that I've missed?</p>
  
  <p>Thanks a lot</p>