css3动画水波纹、波浪
<!DOCTYPE html>
<html lang="en"> <head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
html{
font-size: 20px;
}
body{
background:#444;
}
@-webkit-keyframes opac{
from {
opacity: 1;
width:0;
height:0;
top:50%;
left:50%;
}
to {
opacity : 0;
width:100%;
height:100%;
top:0;
left:0;
}
}
.animate .w2{
/*延迟1s*/
-webkit-animation-delay:1s;
}
.animate .w3{
-webkit-animation-delay:2s;
}
.animate .w4{
-webkit-animation-delay:3s;
}
.wave{
width: 22.7rem;
height: 22.7rem;
position: absolute;
top: 0;
left: 0;
right: 0;
margin: 0 auto;
}
.wave *{
border:1px solid #fff;
position:absolute;
border-radius:50%;
-webkit-animation:opac 4s infinite;
}
</style>
</head> <body>
<div class="animate wave">
<div class="w1"></div>
<div class="w2"></div>
<div class="w3"></div>
<div class="w4"></div>
</div>
</body> </html>
效果图:

2.波浪
<!DOCTYPE html>
<html lang="en"> <head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{margin:0;padding:0;}
body{ background-color: #522350 }
.water {
position: relative;
width: 200px;
height: 200px;
background-color: rgb(118, 218, 255);
border-radius: 50%;
margin:200px auto 0;
overflow: hidden;
}
.water:before,.water:after{
content: "";
position: absolute;
width: 400px;
height: 400px;
top: 0;
left: 50%;
background-color: rgba(255, 255, 255, .4);
border-radius: 45%;
transform: translate(-50%, -70%) rotate(0);
animation: rotate 6s linear infinite;
z-index: 10;
} .water:after {
border-radius: 47%;
background-color: rgba(255, 255, 255, .9);
transform: translate(-50%, -70%) rotate(0);
animation: rotate 10s linear -5s infinite;
z-index: 20;
} @keyframes rotate {
50% {
transform: translate(-50%, -70%) rotate(180deg);
} 100% {
transform: translate(-50%, -70%) rotate(360deg);
}
} </style>
</head> <body>
<div class="water"></div>
</body> </html>
效果:

3.波浪
<!DOCTYPE html>
<html lang="en"> <head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
* {
padding: 0px;
margin: 0px;
font-family: "微软雅黑";
font-size: 100%;
font-style: normal
} dd,
dl,
dt,
em,
i,
p,
textarea,
a,
div {
padding: 0px;
margin: 0px;
} a {
text-decoration: none;
} img {
border: 0px;
} ul,
li {
padding: 0px;
margin: 0px;
list-style: none;
} .fl {
float: left
} .fr {
float: right
} body {
margin: 0px;
padding: 0px;
color: #000;
background: #fff;
} a {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
} .none {
display: none
} .fensug {
width: 168px;
height: 168px;
background: #fff;
border: 9px #5576ac solid;
margin: 100px auto;
padding: 5px;
-webkit-border-radius: 25em;
-moz-border-radius: 25em;
border-radius: 25em;
overflow: hidden;
position: relative
} .fensug .wavenum {
width: 168px;
height: 168px;
overflow: hidden;
-webkit-border-radius: 50%;
border-radius: 50%;
text-align: center;
display: table-cell;
vertical-align: middle;
position: absolute;
left: 5px;
top: 5px;
z-index: 5;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
} .fensug .wavenum b {
color: #fff;
font-size: 43px;
text-align: center;
display: block;
position: relative;
z-index: 2;
line-height: 45px;
} .fensug .wavenum tt {
color: #fff;
font-size: 20px;
text-align: center;
display: block;
position: relative;
z-index: 2;
font-weight: bold;
width: 140px;
border-top: 2px #fff solid;
margin: 3px auto;
line-height: 35px;
} .waven {
width: 168px;
height: 168px;
webkit-border-radius: 25em;
-moz-border-radius: 25em;
border-radius: 25em;
background: #5576ac;
overflow: hidden;
position: relative
} .wave {
width: 408px;
height: 80%;
position: absolute;
left: 0px;
bottom: 0;
background: url(http://www.17sucai.com/preview/5730/2018-09-20/images/images/wave.png) no-repeat;
animation: move_wave 1s linear infinite;
-webkit-animation: move_wave 1s linear infinite;
} @-webkit-keyframes move_wave {
0% {
-webkit-transform: translateX(0)
} 50% {
-webkit-transform: translateX(-25%)
} 100% {
-webkit-transform: translateX(-50%)
}
} @keyframes move_wave {
0% {
transform: translateX(0)
} 50% {
transform: translateX(-25%)
} 100% {
transform: translateX(-50%)
}
}
</style>
</head> <body>
<div class="fensug">
<div class="wavenum "><b id="denfenjs">61%</b><tt>2018 Q1</tt></div>
<div class="waven">
<div class="wave" style="height: 60%;"> </div>
</div>
</div>
<script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
var waveHeight = 0;
var waveNum = 61; function waves() {
if (waveHeight < waveNum) {
$(".wave").css("height", waveHeight + "%");
waveHeight++;
}
setTimeout(function() { waves() }, 15);
} $(function() {
$("#denfenjs").html(waveNum + "%");
waves();
})
</script>
</body> </html>
效果图:

css3动画水波纹、波浪的更多相关文章
- html5 +css3 点击后水波纹扩散效果 兼容移动端
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content ...
- css3动画图片波纹效果
这里的图片很有特点,下面有演示图片样式 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &quo ...
- css 实现水波纹,波浪动画效果
<div class="wave"> 水波纹效果 <div class="wave1"></div> <div cla ...
- Android -- 贝塞尔实现水波纹动画(划重点!!)
1,昨天看到了一个挺好的ui效果,是使用贝塞尔曲线实现的,就和大家来分享分享,还有,在写博客的时候我经常会把自己在做某种效果时的一些问题给写出来,而不是像很多文章直接就给出了解决方法,这里给大家解释一 ...
- CSS3 水波纹
css3 动画设置水波纹,效果如下图: 源码: <!DOCTYPE html> <html lang="en"> <head> <meta ...
- HTML5 Canvas水波纹动画特效
HTML5的Canvas特性非常实用,我们不仅可以在Canvas画布上绘制各种图形,也可以制作绚丽的动画,比如这次介绍的水波纹动画特效.以前我们也分享过一款基于HTML5 WebGL的水波荡漾动画,让 ...
- 用path动画绘制水波纹
用path动画绘制水波纹 效果 源码 // // ViewController.m // PathAnimation // // Created by YouXianMing on 15/7/3. / ...
- css3+jQuery实现按钮水波纹效果
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name ...
- 8个超震撼的HTML5和纯CSS3动画源码
HTML5和CSS3之所以强大,不仅因为现在大量的浏览器的支持,更是因为它们已经越来越能满足现代开发的需要.Flash在几年之后肯定会消亡,那么HTML5和CSS3将会替代Flash.今天我们要给大家 ...
随机推荐
- PHP截取中文不乱吗
function utf_substr($str, $len) { for ($i = 0; $i < $len; $i++) { $temp_str = substr($str, 0, 1); ...
- CommonDialog控件
'要先单击“工程-部件”,显示“部件”对话框,将“Microsoft Common Dialog control 6.0(SP6)”选中,在工具栏就多出了一个CommonDialog控件图标,将其添加 ...
- .NET高级软件工程师面试题排行榜(转载)
原文引用:https://m.sanwen8.cn/p/104gMSd.html 一.对于 Web 性能优化,您有哪些了解和经验吗? 出现指数:五颗星 主要考点:这道题是博主在博客园的新闻里面看到的, ...
- window.btoa()方法;使字符编码成base64的形式
atob() 函数能够 解码 通过base-64编码的字符串数据.相反地, btoa() 函数能够从二进制数据“字符串” 创建 一个base-64编码的ASCII字符串.
- centOs 安装NPM 记录
1. 关闭npm严格认证 npm config set strict-ssl false
- shader一般都是用工具调试的
N卡的话用nvidia的nVidia FX Composer, A卡的话用ATI的render monkey 顶点着色器从何方拿到这些数据?在U3D环境下,答案是从绑定到game object中的Me ...
- 网页截图API接口,一键自动生成网页截图
背景 最近在开发一个小程序,其中有一个帮助模块,内容为帮助文章列表,文章内容为网站后台编辑的富文本格式.鉴于小程序的特殊性,其对html格式的富文本支持并不友好. 刚开始有人开发了wxparse插件, ...
- 删除链表中的元素 · Remove Linked List Elements
[抄题]: Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> ...
- c语言伪常量const理解
const是伪常量,无法用于数组的初始化和全局变量的初始化,本质就是限定一个变量不能直接赋值. 如以下代码: #define A 10 int arr[A]; //const本质,伪常量 ,无法用于数 ...
- CentOS7.2部署采集系统
rm -rf /etc/yum.repos.d/*scp root@192.168.48.81:/etc/yum.repos.d/* /etc/yum.repos.d/vim /etc/hosts(添 ...