当前位置: 首页 > news >正文

手机网站发号系统源码全网推广系统

手机网站发号系统源码,全网推广系统,珠海蓝迪装饰公司官网,参与网站建设的人员最近在网上看到了可以对Bootstrap模态框增加打开和关闭的动画效果#xff0c;故记录一下。原文地址点这里 此动画效果需要引入animate.css#xff0c;可以在animate.css官方网址中点击下载animate.css. 这篇文章和这篇有对animate的简介。 将如下代码放入JS文件全局引入… 最近在网上看到了可以对Bootstrap模态框增加打开和关闭的动画效果故记录一下。原文地址点这里       此动画效果需要引入animate.css可以在animate.css官方网址中点击下载animate.css. 这篇文章和这篇有对animate的简介。 将如下代码放入JS文件全局引入 //animate.css动画触动一次方法 $.fn.extend({animateCss: function (animationName) {var animationEnd webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend;this.addClass(animated animationName).one(animationEnd, function() {$(this).removeClass(animated animationName);});}}); /*** 显示模态框方法* param targetModel 模态框选择器jquery选择器* param animateName 弹出动作* callback 回调方法*/ var modalShow function(targetModel, animateName, callback){var animationIn [bounceIn,bounceInDown,bounceInLeft,bounceInRight,bounceInUp,fadeIn, fadeInDown, fadeInLeft, fadeInRight, fadeOutUp,fadeInDownBig, fadeInLeftBig, fadeOutRightBig, fadeOutUpBig,flipInX,flipInY,lightSpeedIn,rotateIn,rotateInDownLeft,rotateInDownRight,rotateInUpLeft,rotateInUpRight,zoomIn,zoomInDown,zoomInLeft,zoomInRight,zoomInUp,slideInDown,slideInLeft,slideInRight, slideInUp,rollIn];if(!animateName || animationIn.indexOf(animateName)-1){console.log(animationIn.length);var intRandom Math.floor(Math.random()*animationIn.length);animateName animationIn[intRandom];}console.log(targetModel animateName);$(targetModel).show().animateCss(animateName);//callback.apply(this); } /*** 隐藏模态框方法* param targetModel 模态框选择器jquery选择器* param animateName 隐藏动作* callback 回调方法*/ var modalHide function(targetModel, animateName, callback){var animationOut [bounceOut,bounceOutDown,bounceOutLeft,bounceOutRight,bounceOutUp,fadeOut, fadeOutDown, fadeOutLeft, fadeOutRight, fadeOutUp,fadeOutDownBig, fadeOutLeftBig, fadeOutRightBig, fadeOutUpBig,flipOutX,flipOutY,lightSpeedOut,rotateOut,rotateOutDownLeft,rotateOutDownRight,rotateOutUpLeft,rotateOutUpRight,zoomOut,zoomOutDown,zoomOutLeft,zoomOutRight,zoomOutUp,zoomOut,zoomOutDown,zoomOutLeft,zoomOutRight,zoomOutUp,slideOutDown,slideOutLeft,slideOutRight, slideOutUp,rollOut];if(!animateName || animationOut.indexOf(animateName)-1){console.log(animationOut.length);var intRandom Math.floor(Math.random()*animationOut.length);animateName animationOut[intRandom];}$(targetModel).children().click(function (e) {e.stopPropagation()});$(targetModel).animateCss(animateName);$(targetModel).delay(900).hide(1,function(){$(this).removeClass(animated animateName);});//callback.apply(this); } var modalDataInit function(info){//alert(info);//填充数据对弹出模态框数据样式初始化或修改 } 以下是HTML代码 button typebutton classbtn btn-primary test-btn onclickmodalShow(#bigModal, , modalDataInit(test));模态框测试 /button div classmodal bs-example-modal-lg onclickmodalHide(#bigModal, ); idbigModaldiv classmodal-dialog modal-lgdiv classmodal-contentdiv classmodal-headerbutton typebutton onclickmodalHide(#bigModal, ); classclosedata-dismissmodalspan aria-hiddentrue×/spanspan classsr-onlyClose/span/buttonh4 classmodal-title模态框标题/h4/divdiv classmodal-body/div/div/div /div 在刚开始或刷新页面时点击对话框会自动隐藏添加以下代码可以解决问题 $(function(){$(#bigModal).children().click(function(e){e.stopPropagation()}); }); 每次打开和关闭模态框时会随机选择一个动画效果也可以自己代码里写死效果棒
http://www.yutouwan.com/news/135493/

相关文章:

  • 南京网站定制开发公司青岛seo培训
  • 做影视网站存储视频会侵权吗无锡梦燕服饰网站谁做的
  • 网上服装商城网站建设方案策划书房屋租赁网站开发需求分析
  • 关于做网站公司周年大促销物联网平台功能
  • 国外字体设计网站wordpress for sae4.5
  • 免费室内设计素材网站网站容易被百度收录
  • 推荐做那个的电影网站wordpress仿站实战教程
  • 嵊州建设局网站网站建设项目清单价格
  • 咸阳企业网站建设永定区建设局网站
  • 深圳百度推广代理谷歌网站优化
  • 烟台百度做网站多少钱如何自己做众筹网站
  • p2p的网站建设乐清网站开发公司
  • 深圳海外医疗网站建设wordpress国内主题公园
  • 广东企业网站建设国内外网站开发技术有哪些
  • 网站建设合同属于技术服务么电销系统软件
  • 制作公司网站 价格游戏推广拉人渠道
  • 有关网站建设的视频wordpress仿百度软件中学主题
  • wordpress多本小说站出售北京近期传染病情况
  • 网站打开速度与服务器网站快速优化排名app
  • 如何做网站文件响应式网站是怎么做的
  • 南京网站建设公司 ww大连今天最新通知
  • 太原高端网站建设给我免费看播放片
  • 一般建站公司用什么cms做php网站用mvc多吗
  • 韩国优秀网站网站数据分析课程
  • 金融互助网站建设做网站的优势有哪些
  • 项目经理招聘网最新招聘信息佛山网站建设乐云seo在线制作
  • 广州建设网站广西城乡建设厅官网
  • 恩施网站建设农安县建设局官方网站
  • 淘客软件自动做网站?景点网站建设方案
  • 软件开发建设网站河南建设工程信息网 高级职称 赵静飞 证书