I've never, ever worked with SVG in my live, yet in 10 minutes after a quick google I came up with:
<svg width=200 height=200>
<line id="myLine" x1="5" y1="10" x2="5" y2="10" stroke-width=".5" stroke="red"/>
</svg>
<script>
var line = document.getElementById('myLine');
var count = 0;
var interval = window.setInterval(function() {
line.setAttribute('y2', 2 + +line.getAttribute('y2'));
line.setAttribute('x2', 1 + +line.getAttribute('x2'));
if (count++ > 75)
window.clearInterval(interval);
}, 100);
</script>