jQuery+CSS3鼠标点击按钮加载动画特效

jQuery+CSS3鼠标点击按钮加载动画特效-精品资源网
jQuery+CSS3鼠标点击按钮加载动画特效
此内容为免费资源,请登录后查看
0
免费资源

jQuery+CSS3鼠标点击按钮加载动画特效

多款非常漂亮的基于jQuery+CSS3实现的鼠标点击按钮加载动画特效代码。

js代码

<script src=\"dist/spin.min.js\"></script>
<script src=\"dist/ladda.min.js\"></script>

<script>

	// Bind normal buttons
	Ladda.bind( \'div:not(.progress-demo) button\', { timeout: 2000 } );

	// Bind progress buttons and simulate loading progress
	Ladda.bind( \'.progress-demo button\', {
		callback: function( instance ) {
			var progress = 0;
			var interval = setInterval( function() {
				progress = Math.min( progress + Math.random() * 0.1, 1 );
				instance.setProgress( progress );

				if( progress === 1 ) {
					instance.stop();
					clearInterval( interval );
				}
			}, 200 );
		}
	} );

	// You can control loading explicitly using the JavaScript API
	// as outlined below:

	// var l = Ladda.create( document.querySelector( \'button\' ) );
	// l.start();
	// l.stop();
	// l.toggle();
	// l.isLoading();
	// l.setProgress( 0-1 );

</script>


<script type=\"text/javascript\" src=\"js/prism.js\"></script>

© 版权声明
THE END
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容