css动画之波纹
2020-12-13 05:21
标签:style c class blog code java 样式定义: aspx: 公司名称: 公司邮箱: 联系手机: 公司邮编: 公司地址: 页面效果: css动画之波纹,搜素材,soscw.com css动画之波纹 标签:style c class blog code java 原文地址:http://www.cnblogs.com/shy1766IT/p/3736220.html#ContactAbout { height: auto; position: relative; overflow: hidden; }
#sectioncontact { display: block; width: 100%; position: relative; height: 700px; z-index: 10; }
#sectioncontact .map { width: 370px; height: 280px; position: absolute; left: 45%; 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: 1; border-radius: 73px; }
#sectioncontact .map .tips { width: 370px; height: 170px; background: rgba(0,172,198,.8); -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; position: absolute; left: 20px;
top: 16px; z-index: 2; -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: #333; border-color: rgba(255,255,255,0); border-top-color: rgba(0,172,198,.8); position: absolute; left: 50%;
top: 170px; margin-left: -26px; }
#sectioncontact .map .tips .container { padding: 10px; color: #fff; font-size: 16px; font-weight: 100; line-height: 30px; }
#sectioncontact .map .tips .container small { display: inline-block; width: 80px; color: #eee; font-size: 14px; }
@-webkit-keyframes Swing {
0% { -webkit-transform: rotate(0deg); }
20% { -webkit-transform: rotate(-2deg); }
35% { -webkit-transform: rotate(2deg) scaleY(1); }
50% { -webkit-transform: rotate(-2deg); }
65% { -webkit-transform: rotate(1deg); }
80% { -webkit-transform: rotate(-1deg); }
100% { -webkit-transform: rotate(0deg); }
}
@-moz-keyframes Swing {
0% { -moz-transform: rotate(0deg); }
20% { -moz-transform: rotate(-2deg); }
35% { -moz-transform: rotate(2deg) scaleY(1); }
50% { -moz-transform: rotate(-2deg); }
65% { -moz-transform: rotate(1deg); }
80% { -moz-transform: rotate(-1deg); }
100% { -moz-transform: rotate(0deg); }
}
@-ms-keyframes Swing {
0% { -ms-transform: rotate(0deg); }
20% { -ms-transform: rotate(-2deg); }
35% { -ms-transform: rotate(2deg) scaleY(1); }
50% { -ms-transform: rotate(-2deg); }
65% { -ms-transform: rotate(1deg); }
80% { -ms-transform: rotate(-1deg); }
100% { -ms-transform: rotate(0deg); }
}
@keyframes Swing {
0% { transform: rotate(0deg); }
20% { transform: rotate(-2deg); }
35% { transform: rotate(2deg) scaleY(1); }
50% { transform: rotate(-2deg); }
65% { transform: rotate(1deg); }
80% { transform: rotate(-1deg); }
100% { transform: rotate(0deg); }
}
.halo { -webkit-animation: Halo 6s linear infinite; -moz-animation: Halo 6s linear infinite; animation: Halo 6s linear infinite; }
@-webkit-keyframes Halo {
0% { box-shadow: inset 0 0 25px rgba(255,0,0,0.25),0 0 0 0 rgba(255,0,0,0),0 0 0 0 rgba(255,0,0,0),0 0 0 0 rgba(255,0,0,0); }
25% { box-shadow: inset 0 0 25px rgba(255,0,0,0.25),0 0 0 0 rgba(255,0,0,.75),0 0 0 200px rgba(255,0,0,.25),0 0 0 0 rgba(255,0,0,.25),0 0 0 460px rgba(255,0,0,.1); }
50% { box-shadow: inset 0 0 25px rgba(255,0,0,.25),0 0 0 0 rgba(255,0,0,.75),0 0 0 200px rgba(255,0,0,0),0 0 0 100px rgba(255,0,0,0),0 0 0 1000px rgba(255,0,0,0); }
}
@-moz-keyframes Halo {
0% { box-shadow: inset 0 0 25px rgba(255,0,0,0.25),0 0 0 0 rgba(255,0,0,0),0 0 0 0 rgba(255,0,0,0),0 0 0 0 rgba(255,0,0,0); }
25% { box-shadow: inset 0 0 25px rgba(255,0,0,0.25),0 0 0 0 rgba(255,0,0,.75),0 0 0 200px rgba(255,0,0,.25),0 0 0 0 rgba(255,0,0,.25),0 0 0 460px rgba(255,0,0,.1); }
50% { box-shadow: inset 0 0 25px rgba(255,0,0,.25),0 0 0 0 rgba(255,0,0,.75),0 0 0 200px rgba(255,0,0,0),0 0 0 100px rgba(255,0,0,0),0 0 0 1000px rgba(255,0,0,0); }
}
@keyframes Halo {
0% { box-shadow: inset 0 0 25px rgba(255,0,0,0.25),0 0 0 0 rgba(255,0,0,0),0 0 0 0 rgba(255,0,0,0),0 0 0 0 rgba(255,0,0,0); }
25% { box-shadow: inset 0 0 25px rgba(255,0,0,0.25),0 0 0 0 rgba(255,0,0,.75),0 0 0 200px rgba(255,0,0,.25),0 0 0 0 rgba(255,0,0,.25),0 0 0 460px rgba(255,0,0,.1); }
50% { box-shadow: inset 0 0 25px rgba(255,0,0,.25),0 0 0 0 rgba(255,0,0,.75),0 0 0 200px rgba(255,0,0,0),0 0 0 100px rgba(255,0,0,0),0 0 0 1000px rgba(255,0,0,0); }
}