frontloadingpackage
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

1.frontLoadingPlugin

一个关于css loading的小插件

1.1 html原生

暂时有四种实例

实例看 test/test.html,下面是图片示例.目前支持四种loading


 <script src="https://cdn.jsdelivr.net/npm/frontloadingpackage@0.0.6/dist/loadingPlugin.min.js"></script>

<script src="../dist/LoadingPlugin.min.js"></script>
console.log(LoadingPlugin)
let temp =new LoadingPlugin.init(
    {
        circleColor: "rgb(0,0,0,0.7)",
        maskColor: "rgb(0,0,0,0.1)",
        bgId: 1
    }
)
// 添加 loading
temp.add()
// 删除 loading
temp.remove()

1.2 npm 安装

npm install frontloadingpackage

import loadingPlugin from "frontloadingpackage/dist/loadingPlugin.min.js"


let temp =new loadingPlugin(
        {
            circleColor: "rgb(0,0,0,0.7)",
            maskColor: "rgb(0,0,0,0.1)",
            bgId:1
        }
    )

temp.add()
setTimeout(()=>{
    temp.remove()
},2000)

ver0.0.6 添加ts支持

Readme

Keywords

Package Sidebar

Install

npm i frontloadingpackage

Weekly Downloads

29

Version

0.0.7

License

MIT

Unpacked Size

351 kB

Total Files

35

Last publish

Collaborators

  • electrolux_