I implemented a slider using an array. I was able to implement the slider but I\'m unable to implement the transition which happens between the slider. In the below code i\'