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 作品,也可以欣赏到世界各地的优秀开发者在网页中实现的各种令人惊奇的效果. 今天这篇文 ...
随机推荐
- UVALive - 2965 Jurassic Remains (LA)
Jurassic Remains Time Limit: 18000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu [Sub ...
- linux中C语言获取高精度时钟gettimeofday函数
前言: 在开发中,很多时候需要知道各个函数或者是某些设备对命令的操作用时,因此需要用到 gettimeofday 来获取当前时钟. 一,函数说明 #include int gettimeofd ...
- css shorthand属性简写
一.什么是shorthand 属性简写(shorthand)就是一次性声明一组相关的属性.好处呢当然是众所周知的,让css从臃肿无序升级为简洁有效具有高可读性. 大多数的人都使用属性简写,我也用,但是 ...
- 【NOIP合并果子】uva 10954 add all【贪心】——yhx
Yup!! The problem name reects your task; just add a set of numbers. But you may feel yourselvesconde ...
- uva 10976 fractions again(水题)——yhx
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAB3gAAAM+CAIAAAB31EfqAAAgAElEQVR4nOzdO7KtPJum69GEpAcVQQ ...
- Java实现事件机制
java中的事件机制的参与者有3种角色: 1.event object:事件状态对象,用于listener的相应的方法之中,作为参数,一般存在与listerner的方法之中 2.event sourc ...
- TestNG之执行顺序
如果很有个测试方法,并且这几个方法又有先后顺序,那么如果让TestNG按照自己想要的方法执行呢 一.通过Dependencies 1.在测试类中添加Dependencies @Test public ...
- 边工作边刷题:70天一遍leetcode: day 89
Word Break I/II 现在看都是小case题了,一遍过了.注意这题不是np complete,dp解的time complexity可以是O(n^2) or O(nm) (取决于inner ...
- 边工作边刷题:70天一遍leetcode: day 84-2
要点:这题是combination的应用,从左向右想比从右向左容易. 因为有结果从小到大的要求,暗示用combintion而不是permutation 其实就是从小到大验证因子,每个因子和其对称因子立 ...
- McCall的软件质量模型
McCall等认为,特性是软件质量的反映,软件属性可用做评价准则,定量化地度量软件属性可知软件质量的优劣 McCall认为软件的质量模型应该包括 产品的修正.产品的转移,产品的运行 而产品的修正又包括 ...