当前位置: 首页 > news >正文

css实现水滴效果图

效果图: 

 

<template><div style="width: 100%;height:500px;padding:20px;"><div class="water"></div></div>
</template>
<script>
export default {data() {return {};},watch: {},created() {},methods: {},
};
</script>
<style lang='less' scoped>
.water {width: 300px;height: 300px;box-shadow: 10px 20px 30px 0px rgba(0, 0, 0, 0.2) inset,10px 20px 30px rgba(0,0,0,0.3),15px 15px 30px rgba(0,0,0,0.05),-15px -15px 30px rgba(255,255,255,0.8) inset;border-radius: 59% 41% 71% 29% / 54% 43% 57% 46% ;margin: 0 auto;margin-top:300px;/**box-sizing 用于控制元素的盒模型,决定了元素的宽度和高度是如何计算的;默认值是content-box, 元素的宽度和高度只包含内容区域,border-box , 元素的宽度和高度包含内容区域,内边距,边框;*/box-sizing: border-box;animation: action 3s linear infinite;
}
@keyframes action {0%{border-radius: 59% 41% 71% 29% / 54% 43% 57% 46% ;}25%{border-radius:43% 57% 55% 45% / 63% 37% 63% 37% ;}50%{border-radius:37% 63% 39% 61% / 69% 26% 74% 31% ;}75%{border-radius:53% 47% 44% 56% / 50% 58% 42% 50%  ;}100%{border-radius: 59% 41% 71% 29% / 54% 43% 57% 46% ;}
}
</style>


http://www.mrgr.cn/news/962.html

相关文章:

  • 电磁手术导航系统市场报告:未来几年年复合增长率CAGR为6.1%
  • 力扣面试经典算法150题:轮转数组
  • 如何保证Redis缓存和数据库的数据一致性
  • 简易双端视频通信实现
  • 16.FreeRTOS内存管理
  • 基于SpringBoot的论坛系统设计与实现(源码+lw+部署文档+讲解等)
  • 正则表达式入门:Python ‘ re ‘ 模块详解
  • TCP/IP 协议及其协议号
  • Java-HttpURLConnection 从服务器获取输入流和使用RestTemplate来获取输入流。
  • 一个简单的WEB开发案例
  • 7.实时时钟(RTC)
  • 深入解析CDN(内容分发网络):架构、优势与实现
  • 微分方程(Blanchard Differential Equations 4th)中文版Section3.2
  • ansible
  • SQL - 汇总与分组
  • 机器学习(3)-- 一元线性回归
  • Linux内核(5)——从udev/mdev工作原理到亲手实现SD卡热插拔
  • CentOS7下制作openssl1.1.1i RPM包并升级
  • BUUCTF PWN wp--warmup_csaw_2016
  • MySQL面试相关精选