css实现彩色表情图标效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现彩色表情图标效果代码

代码标签: 表情 图标 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
<style>
body {
  display: grid;
  place-content: center;
  height: 100vh;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
}
.grid .cell {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}
.grid .cell .text {
  font-size: 50px;
  position: relative;
  z-index: 1;
}
.grid .cell .blur {
  font-size: 150px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px) opacity(0.4);
}
</style>


</head>

<body>
  <div class='grid'>
  <div class='cell'>
    <div class='text'>🙌</div>
    <div class='blur'>🙌</div>
  </div>
  <div class='cell'>
    <div class='text'>🎉</div>
    <div class='blur'>🎉</div>
  </div>
  <di.........完整代码请登录后点击上方下载按钮下载查看

网友评论0