In this tutorial, we’ll build a simple carousel or slider using less than 15 lines of vanilla JavaScript.