A simple image slider in pure Javascript and CSS3