Original: They were initially horse-drawn, but latterly powered by electricity.
Simplified: At first the trams were horse-drawn, but later they were powered by electricity.