loading.html 插件,jQuery炫酷页面预加载Loading特效插件

fakeLoader.js是一款轻量级的 jQuery 炫酷页面预加载Loading特效插件。它能帮助我们创建一个全屏遮罩效果的旋转loading效果来模拟页面预加载过程。

Bower安装

bower install fakeloader

使用方法

标签中引入fakeLoader.css文件。

在页面底部引入jQuery和fakeLoader.min.js文件。

基本使用方法:

$("#fakeloader").fakeLoader();

带参数调用:

$("#fakeloader").fakeLoader({

timeToHide:1200, //Time in milliseconds for fakeLoader disappear

zIndex:999, // Default zIndex

spinner:"spinner1",//Options: 'spinner1', 'spinner2', 'spinner3', 'spinner4', 'spinner5', 'spinner6', 'spinner7'

bgColor:"#2ecc71", //Hex, RGB or RGBA colors

imagePath:"yourPath/customizedImage.gif" //If you want can you insert your custom image

});

可用参数

timeToHidenumbers:fakeLoader消失的时间,单位毫秒。

zIndex:默认的zIndex。

spinner:可选的spinner:'spinner1', 'spinner2', 'spinner3', 'spinner4', 'spinner5', 'spinner6', 'spinner7'。

bgColor:全屏遮罩的背景颜色。可以是hex、RGB 或 RGBA 颜色值。

imagePath:如果你想自定义图片,使用该选项。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值