New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

frontloadingpackage

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frontloadingpackage

一个关于css loading的小插件

latest
npmnpm
Version
0.0.7
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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支持

Keywords

loading

FAQs

Package last updated on 30 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts