Edit on
<svg width="500" height="350">
  <circle id="orange-circle" r="30" cx="50" cy="50" fill="orange" />
  <circle id="green-circle" r="30" cx="50" cy="150" fill="#009966" />
  
  <animate 
           xlink:href="#orange-circle"
           attributeName="cx"
           from="50"
           to="450" 
           dur="30s"
           begin="0s"
           end="gCircAnim.begin"
           fill="freeze" 
           id="oCircAnim"/>
  <animate 
           xlink:href="#green-circle"
           attributeName="cx"
           from="50"
           to="450" 
           dur="1s"
           begin="click"
           fill="freeze"
           id="gCircAnim"/>
</svg>
svg {
  border: 3px solid #eee;
  display: block;
  margin: 1em auto;
}
Rerun