Update content when H5 slides left or right

1. There is a data content ["axiaxiajiaoyuzhong"] content is dynamic [more than 5]
when a screen displays only one element in the array and changes the content when it slides on the screen. How should I write this? If you use rotation, do you have any good ideas about whether there will be a performance impact when there is a lot of content in the array?

Menu