css实现两种不同光照下晶莹剔透水滴效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现两种不同光照下晶莹剔透水滴效果代码

代码标签: css 两种 不同 光照 晶莹剔透 水滴

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
  
<style>
main {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  /* padding: 10px; */
  width: 400px;
  height: 400px;
  background-color: hsl(210,100%,50%);
  /* TODO: gradient */
}

.drop {
  background-color: #54abfb;  /* TODO: can we not use this? */
  opacity: 0.8;
  position: absolute;
  left: 100px;
  top: 100px;
  width: 200px;
  height: 200px;
  border: 2px solid #3d93ff;
  border-radius: 51% 49% 48% 52% / 62% 44% 56% 38%;
}

.drop:before {.........完整代码请登录后点击上方下载按钮下载查看

网友评论0