<template>
<div class="container">
    <div class="wave"></div>
</div>
</template>
<script>
export default {
}
</script>
<style lang="scss">
.container {
    position: absolute;
    width: 200px;
    height: 200px;
    padding: 5px;
    border: 5px solid rgb(118, 218, 255);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
}
.wave {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: rgb(118, 218, 255);
    border-radius: 50%;
 
    &::before,
    &::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;
    }
   
    &::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%, -73%) rotate(180deg);
    } 100% {
        transform: translate(-50%, -70%) rotate(360deg);
    }
}
</style>
转自: https://csscoco.com/inspiration/#/./border/border-wave-percent.md

最新文章

  1. Leetcode 259. 3Sum Smaller
  2. Windows 终端服务器授权 激活
  3. Android微信登陆
  4. JBOSS EAP 6.0+ Standalone模式安装成Windows服务
  5. 【poj1041】 John&#39;s trip
  6. (转) C#如何使用异步编程
  7. Apache配置多个网站的方法
  8. POJ2263 Heavy Cargo
  9. spring中Bean的注入参数详解
  10. [转载]IOS项目打包除去NSLog和NSAssert处理之阿堂教程
  11. v4l2视频采集摄像头
  12. springboot 集成spring-session redis 实现分布式session
  13. PHP超全局变量$_SERVER
  14. Java将数据写入word文档(.doc)
  15. Java中Math.round()函数
  16. Docker Compose 原理
  17. Alienware R8外星人台式机安装双系统(WIN10+Ubuntu)的总结
  18. Spring常用注解总结(1)
  19. Codeforces Round #467 Div. 1
  20. phantomjs 解码url

热门文章

  1. Asp.net Core Filter过滤器异常处理
  2. Windows 如何打开 .md 文件
  3. 什么?Android上面跑Linux?
  4. CF1404E Bricks (最大权独立集)
  5. ioctl以及read阻塞型引发的思考
  6. 深度优先算法--对DFS的一些小小的总结(一)
  7. Mysql查询优化器之基本优化
  8. Java代码查错部分?
  9. Struts2的Action中获取request对象的几种方式?
  10. SpringBoot和SpringCloud?