css动画之波纹
样式定义:
#ContactAbout { height: auto; position: relative; overflow: hidden; }
#sectioncontact { display: block; width: %; position: relative; height: 700px; z-index: ; }
#sectioncontact .map { width: 370px; height: 280px; position: absolute; left: %; margin-left: -105px; }
#sectioncontact .map .button { width: 73px; height: 63px; background: url(../images/map-button.png) no-repeat; position: absolute; bottom: 0px; left: 165px; z-index: ; border-radius: 73px; }
#sectioncontact .map .tips { width: 370px; height: 170px; background: rgba(,,,.); -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; position: absolute; left: 20px;
top: 16px; z-index: ; -webkit-animation: Swing 2s ease-in-out infinite; -moz-animation: Swing 2s ease-in-out infinite; -ms-animation: Swing 2s ease-in-out infinite; -o-animation: Swing 2s ease-in-out
infinite; animation: Swing 2s ease-in-out infinite; }
#sectioncontact .map .tips:before { content: ''; border: 26px solid; border-color: #; border-color: rgba(,,,); border-top-color: rgba(,,,.); position: absolute; left: %;
top: 170px; margin-left: -26px; }
#sectioncontact .map .tips .container { padding: 10px; color: #fff; font-size: 16px; font-weight: ; line-height: 30px; }
#sectioncontact .map .tips .container small { display: inline-block; width: 80px; color: #eee; font-size: 14px; }
@-webkit-keyframes Swing {
% { -webkit-transform: rotate(0deg); }
% { -webkit-transform: rotate(-2deg); }
% { -webkit-transform: rotate(2deg) scaleY(); }
% { -webkit-transform: rotate(-2deg); }
% { -webkit-transform: rotate(1deg); }
% { -webkit-transform: rotate(-1deg); }
% { -webkit-transform: rotate(0deg); }
}
@-moz-keyframes Swing {
% { -moz-transform: rotate(0deg); }
% { -moz-transform: rotate(-2deg); }
% { -moz-transform: rotate(2deg) scaleY(); }
% { -moz-transform: rotate(-2deg); }
% { -moz-transform: rotate(1deg); }
% { -moz-transform: rotate(-1deg); }
% { -moz-transform: rotate(0deg); }
}
@-ms-keyframes Swing {
% { -ms-transform: rotate(0deg); }
% { -ms-transform: rotate(-2deg); }
% { -ms-transform: rotate(2deg) scaleY(); }
% { -ms-transform: rotate(-2deg); }
% { -ms-transform: rotate(1deg); }
% { -ms-transform: rotate(-1deg); }
% { -ms-transform: rotate(0deg); }
}
@keyframes Swing {
% { transform: rotate(0deg); }
% { transform: rotate(-2deg); }
% { transform: rotate(2deg) scaleY(); }
% { transform: rotate(-2deg); }
% { transform: rotate(1deg); }
% { transform: rotate(-1deg); }
% { transform: rotate(0deg); }
}
.halo { -webkit-animation: Halo 6s linear infinite; -moz-animation: Halo 6s linear infinite; animation: Halo 6s linear infinite; }
@-webkit-keyframes Halo {
% { box-shadow: inset 25px rgba(,,,0.25), rgba(,,,), rgba(,,,), rgba(,,,); }
% { box-shadow: inset 25px rgba(,,,0.25), rgba(,,,.), 200px rgba(,,,.), rgba(,,,.), 460px rgba(,,,.); }
% { box-shadow: inset 25px rgba(,,,.), rgba(,,,.), 200px rgba(,,,), 100px rgba(,,,), 1000px rgba(,,,); }
}
@-moz-keyframes Halo {
% { box-shadow: inset 25px rgba(,,,0.25), rgba(,,,), rgba(,,,), rgba(,,,); }
% { box-shadow: inset 25px rgba(,,,0.25), rgba(,,,.), 200px rgba(,,,.), rgba(,,,.), 460px rgba(,,,.); }
% { box-shadow: inset 25px rgba(,,,.), rgba(,,,.), 200px rgba(,,,), 100px rgba(,,,), 1000px rgba(,,,); }
}
@keyframes Halo {
% { box-shadow: inset 25px rgba(,,,0.25), rgba(,,,), rgba(,,,), rgba(,,,); }
% { box-shadow: inset 25px rgba(,,,0.25), rgba(,,,.), 200px rgba(,,,.), rgba(,,,.), 460px rgba(,,,.); }
% { box-shadow: inset 25px rgba(,,,.), rgba(,,,.), 200px rgba(,,,), 100px rgba(,,,), 1000px rgba(,,,); }
}
aspx:
<div id="ContactAbout">
<div id="sectioncontact">
<div class="baidumapsite" id="dituContent"></div>
<div class="map">
<div class="tips">
<div class="container">
<p><small>公司名称:</small><asp:Literal ID="cName" runat="server"></asp:Literal></p>
<p><small>公司邮箱:</small><asp:Literal ID="cEmail" runat="server"></asp:Literal></p>
<p><small>联系手机:</small><asp:Literal ID="cTel" runat="server"></asp:Literal></p>
<p><small>公司邮编:</small><asp:Literal ID="cPostcode" runat="server"></asp:Literal></p>
<p><small>公司地址:</small><asp:Literal ID="cAddr" runat="server"></asp:Literal></p>
</div>
</div>
<div class="button halo"></div>
</div> <div id="messageus" title="点击给我留言吧"></div>
<div id="pop-login" style="display: none"> <div class="subline">
<span>客户姓名:</span>
<input name="txtName" runat="server" type="text" id="txtName" class="txtinput" />
</div>
<div class="subline">
<span>邮箱地址:</span>
<input name="txtEmail" runat="server" type="text" id="txtEmail" class="txtinput" />
</div>
<div class="subline">
<span>联系电话:</span>
<input name="txtTel" runat="server" type="text" id="txtTel" class="txtinput" />
</div>
<div class="subcontent">
<span>留言内容:</span>
<textarea name="txtMsgContent" id="txtMsgContent" runat="server" class="txtMsgContent" />
</div>
<div class="subline">
<span>验证码:</span>
<img src="VerifyImage.ashx" class="txtverity" onclick="this.src=this.src+'?'" />
<input name="txtCode" runat="server" type="text" id="txtCode" class="txtinput1" />
<asp:Button ID="Button1" runat="server" Text="提交" OnClientClick="return check()" class="btn" OnClick="btnSendMsg_Click" />
</div>
</div>
<script type="text/javascript" src="js/baidumap.js"></script>
</div>
</div>
页面效果:

css动画之波纹的更多相关文章
- 梅须逊雪三分白,雪却输梅一段香——CSS动画与JavaScript动画
CSS动画并不是绝对比JavaScript动画性能更优越,开源动画库Velocity.js等就展现了强劲的性能. 一.两者的主要区别 先开门见山的说说两者之间的区别. 1)CSS动画: 基于CSS的动 ...
- Css 动画的回调
在做项目中经常会遇到使用动画的情况.以前的情况是用js写动画,利用setTimeout函数或者window.requestAnimationFrame()实现目标元素的动画效果.虽然后者解决了刷新频率 ...
- 【译】css动画里的steps()用法详解
原文地址:http://designmodo.com/steps-c... 原文作者:Joni Trythall 我想你在css 动画里使用steps()会和我一样有很多困惑.一开始我不清楚怎样使用它 ...
- css动画属性性能
性能主要表现:流量.功耗与流畅度 在现有的前端动画体系中,通常有两种模式:JS动画与CSS3动画. JS动画是通过JS动态改写样式实现动画能力的一种方案,在PC端兼容低端浏览器中不失为一种推荐方案. ...
- Css动画形式弹出遮罩层,内容区上下左右居中于不定宽高的容器中
<!DOCTYPE html> <html> <head> </head> <body id="body"> <! ...
- css动画与js动画的区别
CSS动画 优点: (1)浏览器可以对动画进行优化. 1. 浏览器使用与 requestAnimationFrame 类似的机制,requestAnimationFrame比起setTimeout ...
- CSS动画与GPU
写在前面 满世界的动画性能优化技巧,例如: 只允许改变transform.opacity,其它属性不要动,避免重新计算布局(reflow) 对动画元素应用transform: translate3d( ...
- 15个来自 CodePen 的酷炫 CSS 动画效果【下篇】
CodePen 是一个在线的前端代码编辑和展示网站,能够编写代码并即时预览效果.你在上面可以在线分享自己的 Web 作品,也可以欣赏到世界各地的优秀开发者在网页中实现的各种令人惊奇的效果. 今天这篇文 ...
- 赞!15个来自 CodePen 的酷炫 CSS 动画效果
CodePen 是一个在线的前端代码编辑和展示网站,能够编写代码并即时预览效果.你在上面可以在线分享自己的 Web 作品,也可以欣赏到世界各地的优秀开发者在网页中实现的各种令人惊奇的效果. 今天这篇文 ...
随机推荐
- linux基本命令学习笔记
这个几天在研究linux的常用基本命令.以下是此时间内的幻灯片截图笔记,在这里留个脚印. linux 常用命令 1,命令的基本格式 2,文件处理命令 3,文件搜索命令 4,帮助命令 5,压缩解压缩命令 ...
- Linux objcopy命令
一.简介 [功能] 将目标文件的一部分或者全部内容拷贝到另外一个目标文件中,或者实现目标文件的格式转换. [描述] objcopy工具使用BFD库读写目标文件,它可以将一个目标文件的内容拷贝到另外一个 ...
- td内元素居顶,td元素不随高度的撑开而变位置
如下图,右边内容变高了,左边元素位置就下降到居中 设置居顶不变的方法 <table width="200" border="1"> <tr&g ...
- 通用cube refresh方案
通用cube refresh c# script 解决方法: 需要设置的变量如下: User::varcubename,User::varolapconnstr,User::varolapdbname ...
- CANopen DS301协议中文翻译V03版
V0.1版PDF格式供下载参考,只是全面框架翻译,会有大量错误和不确定的地方,希望读者积极参与校对,提供修改意见,完善译文.下载 V0.2版校对提前完成,下载地址 V0.3版使用GitBook编辑(h ...
- (转)u3d设计模式
Unity3d中UI开发的MVC模式 ,和游戏开发的其他模块类似,UI一般需要通过多次迭代开发,直到用户体验近似OK.另外至关重要的是, 我们想尽快加速迭代的过程.使用MVC模式来进行设计,已经被业界 ...
- 2014 Super Training #7 F Power of Fibonacci --数学+逆元+快速幂
原题:ZOJ 3774 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3774 --------------------- ...
- 2014 Super Training #10 C Shadow --SPFA/随便搞/DFS
原题: FZU 2169 http://acm.fzu.edu.cn/problem.php?pid=2169 这题貌似有两种解法,DFS和SPFA,但是DFS怎么都RE,SPFA也要用邻接表表示边, ...
- Android组件---四大布局的属性详解
[声明] 欢迎转载,但请保留文章原始出处→_→ 文章来源:http://www.cnblogs.com/smyhvae/p/4372222.html Android常见布局有下面几种: LinearL ...
- centos下安装xampp,Zend Guard,memcached
这里说的生产环境是php5.4x,要高版本的其实也一样 第一步:安装xampp xampp它是跨平台的,且自带很多拓展,安装之后会为我们省去很多事,使用起来很方便. i>http://sourc ...