Slideshow Manual and Automatic

I used the code from W3 for create a manual Slideshow, now i want to add the automatic part, how can i do it?

CSS transitions? Keyframes?