Abandoning other effects, the simplest carousel only has one statement:
parent.appendChild(parent.firstChild), which continuously adds an element of the list to the last one. appendChild will change the node from the original The position is removed, so it can produce a switching effect.
One point, IE treats text nodes differently from other browsers. You need to pay attention when getting child nodes. In addition, in different versions of FF, the children attribute also needs to be paid attention to.
The demo below does not set the overflow:hidden of #view.
demo_1: