All Projects → tianxiangbing → Loading

tianxiangbing / Loading

loading...正在加载中的动画效果

Programming Languages

javascript
184084 projects - #8 most used programming language
js
455 projects

Projects that are alternatives of or similar to Loading

Waitme
jquery plugin for easy creating loading css3/images animations
Stars: ✭ 302 (+738.89%)
Mutual labels:  loader, loading, jquery
Rsup Progress
❤️ A simple progress bar with promises support
Stars: ✭ 290 (+705.56%)
Mutual labels:  loader, loading
Ngx Skeleton Loader
Make beautiful, animated loading skeletons that automatically adapt to your Angular apps
Stars: ✭ 278 (+672.22%)
Mutual labels:  loader, loading
Jquery Loading
Easily add and manipulate loading states of any element on the page.
Stars: ✭ 321 (+791.67%)
Mutual labels:  loading, jquery
busy-load
A flexible loading-mask jQuery-plugin
Stars: ✭ 76 (+111.11%)
Mutual labels:  loader, loading
redux-global-loader
A Redux middleware for global loader
Stars: ✭ 13 (-63.89%)
Mutual labels:  loader, loading
Loading Bar
Flexible, light weighted and super fast Progress Bar Library
Stars: ✭ 300 (+733.33%)
Mutual labels:  loader, loading
spinners-angular
Lightweight SVG/CSS spinners for Angular
Stars: ✭ 21 (-41.67%)
Mutual labels:  loader, loading
Ngx Ui Loader
Multiple Loaders / spinners and Progress bar for Angular 5, 6, 7 and 8+
Stars: ✭ 368 (+922.22%)
Mutual labels:  loader, loading
Whirl
CSS loading animations with minimal effort!
Stars: ✭ 774 (+2050%)
Mutual labels:  loader, loading
Vue Loading Overlay
Vue.js component for full screen loading indicator 🌀
Stars: ✭ 784 (+2077.78%)
Mutual labels:  loader, loading
ngx-loader-indicator
Awesome loader for angular applications. No wrappers only you elements
Stars: ✭ 44 (+22.22%)
Mutual labels:  loader, loading
vue-loading
Loading bar for Vue.js apps using axios
Stars: ✭ 19 (-47.22%)
Mutual labels:  loader, loading
ngx-smart-loader
Smart loader handler to manage loaders everywhere in Angular apps.
Stars: ✭ 28 (-22.22%)
Mutual labels:  loader, loading
SSSwiftUISpinnerButton
SSSwiftUISpinnerButton is a collection of various spinning animations for buttons in SwiftUI.
Stars: ✭ 37 (+2.78%)
Mutual labels:  loader, loading
Create Content Loader
✏️ Tool to create your own react-content-loader easily.
Stars: ✭ 937 (+2502.78%)
Mutual labels:  loader, loading
Vue Element Loading
⏳ Loading inside a container or full screen for Vue.js
Stars: ✭ 234 (+550%)
Mutual labels:  loader, loading
Spinners React
Lightweight SVG/CSS spinners for React
Stars: ✭ 254 (+605.56%)
Mutual labels:  loader, loading
Ssspinnerbutton
Forget about typical stereotypic loading, It's time to change. SSSpinnerButton is an elegant button with a diffrent spinner animations.
Stars: ✭ 357 (+891.67%)
Mutual labels:  loader, loading
Statefullayout
Android layout to show template for loading, empty, error etc. states
Stars: ✭ 813 (+2158.33%)
Mutual labels:  loader, loading

loading

loading... 效果图如下: loading

DEMO请点击这里查看.

http://tianxiangbing.github.io/loading/example/有对loading作一个完美的演示

调用示例

html:

<p>
	<input type="button" id="loading1" value="loading我自己">
	<input type="button" id="loading2" value="loading下面这个div">
	<input type="button" id="loading3" value="loading全屏">
</p>
<div id="loading-content" style="width:300px;height:200px;border:1px solid #ccc;background-color:#f2f2f2;">这是个内容的例子</div>
<script src="../src/jquery-1.11.2.js"></script>
<script src="../src/loading.js"></script>

js:

//loading我自己
$('#loading1').click(function(){
	var load = new Loading();
	load.init({
		target: this
	});
	load.start();
	setTimeout(function() {
		load.stop();
	}, 3000)
});
//loading下面这个div
$('#loading2').click(function(){
	var load = new Loading();
	load.init({
		target: "#loading-content"
	});
	load.start();
	setTimeout(function() {
		load.stop();
	}, 3000)
});
//loading全屏
$('#loading3').click(function(){
	var load = new Loading();
	load.init();
	load.start();
	setTimeout(function() {
		load.stop();
	}, 30000)
});

API

属性

target:string||dom

需要显示loading的节点,不传值时显示全屏的loading

方法

start:function()

开始loading

stop:function()

结束loading,这里会销毁loading节点

事件

stop

target的stop事件触发时,结束loading. 如
$('html').trigger('stop')会结束全屏的loading动画.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].