Edit on
<svg width="500" height="350">
  <circle id="orange-circle" r="30" cx="50" cy="50" fill="orange" />
  
  <animate 
           xlink:href="#orange-circle"
           attributeName="cx"
           from="50"
           to="450" 
           dur="2s"
           begin="click"
           values="50; 490; 350; 450"
           keyTimes="0; 0.5; 0.8; 1"
           fill="freeze" 
           id="circ-anim"/>
  
  
</svg>
<p>Click on the circle to start the animation.</p>
svg {
  border: 3px solid #eee;
  display: block;
  margin: 1em auto;
}
p {
  color: #aaa;
  text-align: center;
  margin: 2em 0;
}
Rerun