弹框消失效果

所属分类:其他-动画效果

 24719  318  查看评论 (3)
分享到微信朋友圈
X
弹框消失效果 ie兼容7
<html>
 <head>
  <link rel="stylesheet" href="css/base/jquery.ui.all.css" /> 
  <script src="js/jquery-1.6.2.js"></script> 
  <script src="js/jquery.effects.core.js"></script> 
  <script src="js/jquery.effects.blind.js"></script> 
  <script src="js/jquery.effects.bounce.js"></script> 
  <script src="js/jquery.effects.clip.js"></script> 
  <script src="js/jquery.effects.drop.js"></script> 
  <script src="js/jquery.effects.explode.js"></script> 
  <script src="js/jquery.effects.fold.js"></script> 
  <script src="js/jquery.effects.highlight.js"></script> 
  <script src="js/jquery.effects.pulsate.js"></script> 
  <script src="js/jquery.effects.scale.js"></script> 
  <script src="js/jquery.effects.shake.js"></script> 
  <script src="js/jquery.effects.slide.js"></script> 
  <link rel="stylesheet" href="css/demos.css" /> 
  <style>
	.toggler { width: 500px; height: 200px; }
	#button { padding: .5em 1em; text-decoration: none; }
	#effect { width: 240px; height: 135px; padding: 0.4em; position: relative; }
	#effect h3 { margin: 0; padding: 0.4em; text-align: center; }
	</style> 
  <script>
	$(function() {
		// run the currently selected effect
		function runEffect() {
			// get effect type from 
			var selectedEffect = $( "#effectTypes" ).val();

			// most effect types need no options passed by default
			var options = {};
			// some effects have required parameters
			if ( selectedEffect === "scale" ) {
				options = { percent: 0 };
			} else if ( selectedEffect === "size" ) {
				options = { to: { width: 200, height: 60 } };
			}

			// run the effect
			$( "#effect" ).hide( selectedEffect, options, 1000, callback );
		};

		// callback function to bring a hidden box back
		function callback() {
			setTimeout(function() {
				$( "#effect" ).removeAttr( "style" ).hide().fadeIn();
			}, 1000 );
		};

		// set effect from select menu value
		$( "#button" ).click(function() {
			runEffect();
			return false;
		});
	});
	</script>
 </head>
 <body></body>
</html>
<html>
 <head></head>
 <body>
  <div class="toggler"> 
   <div id="effect" class="ui-widget-content ui-corner-all"> 
    <h3 class="ui-widget-header ui-corner-all">Hide</h3> 
    <p> Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. </p> 
   </div> 
  </div>
 </body>
</html>


相关插件-动画效果

html5 canvas粒子星空

html5 canvas鼠标跟随粒子星空动画
  动画效果
 74855  736

jQuery css3手机页面转换动画特效

jQuery css3手机页面转换动画特效
  动画效果
 39007  452

粒子动画插件particle.js

炫酷的粒子动画,代码注释全方便修改
  动画效果
 42977  351

文字散开重组动效

文字散开,重组
  动画效果
 50207  669

讨论这个项目(3)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

    junyi5d 0
    2016/6/23 11:06:10
    个别消失的动画有点长,其实速度很快的消失就好了,没必要重复动画 回复
    今天 0
    2016/1/16 13:01:03
    哎吆~我去 0
    2015/11/12 11:11:21

    看上去挺不错的

    回复
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复