1.0.1 • Published 5 years ago
banner_simple v1.0.1
banner_simple
plain banner library.
intallation
npm install banner_simple -S
usage
<script src="./node_modules/banner_simple/banner.js"></script>
<script>
//new Banner(ulObj:HTMLDomElement,indicatorActiveClassName:string).init().baning()
window.onload=function(){
...
new Banner(ul,"active").init().baning() ;
...
}
</script>
explaination
This is a library written by native JavaScript to produce rotation effects. However, after introducing the library, you have to manually write the layout style of some parent elements to take effect.