纯css手画表情emoji

效果样式

emoji

Html

  <div class="face-smile">
    <span></span>
  </div>
   <div class="face-smile face-cry">
    <span></span>
  </div>

Css

.face-smile{
    width: 50px;
    height: 50px;
    display: inline-block;
    background-color: #fbd971;
    border-radius: 50%;
    position: relative;
}
.face-smile::before,.face-smile::after{
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transform: rotate(225deg);
    border: 3px solid #f0c419;
    border-right-color: transparent!important;
    border-bottom-color: transparent!important;
    position: absolute;
    bottom: 8px;
    left: 11px;
}
.face-smile::before, .face-smile::after{
    content: "";
    width: 6px;
    height: 6px;
    left: 8px;
    top: 14px;
    border-color: #f0c419;
    transform: rotate(45deg);    
}
.face-smile::after{
    left: auto;
    right: 8px;
}
.face-smile>span{
   width: 22px;
    height: 22px;
    border-radius: 50%;
    transform: rotate(225deg);
    border: 3px solid #f0c419;
    border-right-color: transparent!important;
    border-bottom-color: transparent!important;
    position: absolute;
    bottom: 8px;
    left: 11px;
}

.face-cry>span{
    transform: rotate(45deg);
    bottom: -6px;
}
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容