懒人之家--可能是JS网页特效代码收集最全的懒站!

jQuery动画弹出效果对话框插件gDialog

作者/代码整理:  (转载请附加本文地址,带有“懒人原生”字样的谢绝转载) 发布日期:2017-08-10
gDialog是一款扁平样式风格带有动画弹出效果的jQuery对话框插件,jQuery对话框代码,适用于移动端,并平滑兼容IE浏览器,配合animate.css能实现许多炫酷的效果。


js代码

<script src="src/jquery.gDialog.js"></script>
<script>
$('.demo-1').click(function(){
  $.gDialog.alert("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse libero erat, scelerisque sit amet dolor nec, euismod feugiat massa.", {
    title: "Alert Dialog Box",
    animateIn: "bounceIn",
    animateOut: "bounceOut"
  });
});  
$('.demo-2').click(function(){
  $.gDialog.prompt("懒人素材", "www.lanrenzhijia.com", {
    title: "Prompt Dialog Box",
    required: true,
	animateIn : "rollIn",
    animateOut: "rollOut"
  });
}); 
$('.demo-3').click(function(){
  $.gDialog.confirm("Are You Sure?", {
    title: "Confirm Dialog Box",
	animateIn : "bounceInDown",
    animateOut: "bounceOutUp"
  });
});                         
</script>