一、不规则圆,旋转实现波浪效果

  .info {
width: 200px;
height: 200px;
;
background: #009A61;
border-radius: 45%;
color: white;
text-align: center;
line-height: 200px; animation: roateOne 2s linear infinite;
} @keyframes roateOne {
from {
transform: rotate(0);
} to {
transform: rotate(180deg);
}
}

二、2个大圆的旋转

.info {
height: 100vh;
align-items: center;
position: relative;
border: 1px solid red;
background-color: rgb(118, 218, 255);
overflow: hidden;
} .info::before,
.info::after {
content: "";
position: absolute;
left: 50%;
min-width: 300vw;
min-height: 300vw;
background: #fff;
animation: roateOne 10s linear infinite;
} .info::before {
bottom: 15vh;
border-radius: 45%;
} .info::after {
bottom: 12vh;
opacity: 0.5;
border-radius: 47%;
} @keyframes roateOne {
0% {
transform: translate(-50%, 0) rotateZ(0deg);
} 50% {
transform: translate(-50%, -2%) rotateZ(180deg);
} 100% {
transform: translate(-50%, 0%) rotateZ(360deg);
}
}

三、常见样式

.container {
position: absolute;
width: 200px;
height: 200px;
padding: 5px;
border: 5px solid rgb(118, 218, 255);
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
overflow: hidden;
} .info {
width: 200px;
height: 200px;
position: relative; background-color: rgb(118, 218, 255);
border-radius: 50%;
overflow: hidden;
} .info::before,
.info::after {
content: "";
position: absolute;
left: 50%;
min-width: 400px;
min-height: 400px;
background: #fff;
animation: roateOne 10s linear infinite;
} .info::before {
bottom: 50px;
border-radius: 45%;
} .info::after {
bottom: 40px;
opacity: 0.5;
border-radius: 47%;
} @keyframes roateOne {
0% {
transform: translate(-50%, 0) rotateZ(0deg);
} 50% {
transform: translate(-50%, -2%) rotateZ(180deg);
} 100% {
transform: translate(-50%, 0%) rotateZ(360deg);
}
}
    <div class="container">
<div class="info">
Wave
</div>
</div>

显示效果:

更多:

Css3实现波浪线效果1

HTML5 background-color和background-image问题共用问题

CSS网页布局垂直居中整理

Css3实现波浪效果2的更多相关文章

  1. Css3实现波浪效果3-静态波纹

    一.外框宽度等比例3个椭圆拼合 .container { position: absolute; width: 400px; height: 200px; border: 5px solid rgb( ...

  2. Image Wall - jQuery & CSS3 图片墙效果

    今天我们要为您展示如何基于 jQuery 和 CSS3 创建一个整洁的图片墙效果.我们的想法是在页面上洒上一些大小不同的缩略图,并在当我们点击图片时候显示丝带,会显示一些描述,再次点击缩略图时,丝带将 ...

  3. css3的transition效果和transfor效果

    <!doctype html> <html> <head> <meta charset="utf-8" /> <title&g ...

  4. Canvas之动态波浪效果_陈在真Sunny_chen_新浪博客

    Canvas之动态波浪效果_陈在真Sunny_chen_新浪博客 Canvas之动态波浪效果 (2012-04-26 09:04:51) 转载▼

  5. css3幻灯片换位效果

    <title>css3幻灯片换位效果</title> <style type="text/css">  .flowGallery {width: ...

  6. 第八十节,CSS3边框图片效果

    CSS3边框图片效果 学习要点: 1.属性初探 2.属性解释 3.简写和版本 本章主要探讨HTML5中CSS3中边框图片背景的效果,通过这个新属性让边框更加的丰富多彩. 一.属性解释     CSS3 ...

  7. 纯 CSS 实现波浪效果!

    一直以来,使用纯 CSS 实现波浪效果都是十分困难的. 因为实现波浪的曲线需要借助贝塞尔曲线. 而使用纯 CSS 的方式,实现贝塞尔曲线,额,暂时是没有很好的方法. 当然,借助其他力量(SVG.CAN ...

  8. html+css3实现长方体效果

    网上大都是正方体的效果,由于做一个东西需要,写了一个HTML+css3实现的长方体,有需要的也可以看看.                   2017-07-25         21:30:23 h ...

  9. iOS 波浪效果的实现

    iOS 波浪效果的实现 p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo; color: #4f8187; background-c ...

随机推荐

  1. Codeforces 229E Gifts 概率dp (看题解)

    Gifts 感觉题解写的就是坨不知道什么东西.. 看得这个题解. #include<bits/stdc++.h> #define LL long long #define LD long ...

  2. CSS改变插入光标颜色caret-color

    CSS代码: input { color: #333; caret-color: red; } @supports (-webkit-mask: none) and (not (caret-color ...

  3. python--pip出错

    问题: 1.使用pip install时,出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None) ...

  4. Linux用过的命令集合

    1,查看是否安装过openssl:(openssl version -a)(rpm -qa|grep -i openssl) 2,安装gcc:(yum install gcc-c++) 3,查看主机名 ...

  5. JavaSE| 泛型

    泛型 泛型:对后续所有操作的类型做约束,对后续操作起作用,对之前的不起作用: 对类型进行约束:  父 ----> 子,从范围上,父范围小,子范围大:把范围小的给范围大的, JDK1.5改写了集合 ...

  6. bootstrapTable

    一个详细的教程 table参数 bootstrap table使用总结 BootstrapTable使用实例 事件event 事件函数的用法: 方法1 $('#table').bootstrapTab ...

  7. pacman 命令

    安装 pacman -S  删除 pacman -R  移除已安装不需要软件包 pacman -Rs  删除一个包,所有依赖 pacman -Rsc  升级包 pacman -Syu  查询包数据库 ...

  8. Kafka、RabbitMQ、RocketMQ等消息中间件的对比 —— 消息发送性能和区别

    https://blog.csdn.net/yunfeng482/article/details/72856762

  9. K1 K2作为中断源控制红色LED灯,实现任意键按一下LED灯亮或者灭

    #include "stm32f10x.h" // 相当于51单片机中的 #include <reg51.h> #include "stm32f10x_gpi ...

  10. git 撤销更改的文件

    在没有git add之前: 1.撤销所有更改:git checkout . 2.撤销指定文件的更改:git checkout -- file.txt git add之后: git reset HEAD ...