The code found on Baidu for the image carousel effect or image sliding switching effect of AngularJS is basically based on the bootstrap control.
How to implement pure AngularJS without jQ or other. Achieve the effect of sliding to switch pictures like the top banner of the baby details page on mobile Taobao?
It is recommended to search a lot on github. If you plan to implement it yourself, you first need to understand the ng instructions. The rest of the principles are the same.
1. Define a swipe command
2. To encapsulate touch events, ng officially provides ngTouch
3. Monitor events and use CSS control to create animation transition effects (it depends on you whether to use CSS3 or old-fashioned easing)
4. Put it into the page and use it...